Vendor OpenClaw source as Adolf fork baseline
Some checks failed
ClawSweeper Dispatch / dispatch (push) Has been cancelled
CodeQL / Security High (actions) (push) Has been cancelled
CodeQL / Security High (channel-runtime-boundary) (push) Has been cancelled
CodeQL / Security High (core-auth-secrets) (push) Has been cancelled
CodeQL / Security High (mcp-process-tool-boundary) (push) Has been cancelled
CodeQL / Security High (network-ssrf-boundary) (push) Has been cancelled
CodeQL / Security High (plugin-trust-boundary) (push) Has been cancelled
CodeQL / Security High (process-exec-boundary) (push) Has been cancelled
Docs Sync Publish Repo / sync-publish-repo (push) Has been cancelled
Docs / docs (push) Has been cancelled
OpenClaw Stable Main Closeout / Resolve stable release closeout inputs (push) Has been cancelled
OpenClaw Stable Main Closeout / Verify stable main closeout (push) Has been cancelled
Workflow Sanity / no-tabs (push) Has been cancelled
Workflow Sanity / actionlint (push) Has been cancelled
Workflow Sanity / generated-doc-baselines (push) Has been cancelled
CI / runner-admission (push) Has been cancelled
CI / preflight (push) Has been cancelled
CI / security-fast (push) Has been cancelled
CI / pnpm-store-warmup (push) Has been cancelled
CI / build-artifacts (push) Has been cancelled
CI / native-i18n (push) Has been cancelled
CI / ${{ matrix.check_name }} (push) Has been cancelled
CI / ${{ matrix.checkName }} (push) Has been cancelled
CI / checks-node-compat-node22 (push) Has been cancelled
CI / check-bundled-channel-config-metadata (push) Has been cancelled
CI / check-dependencies (push) Has been cancelled
CI / check-guards (push) Has been cancelled
CI / check-lint (push) Has been cancelled
CI / check-prod-types (push) Has been cancelled
CI / check-shrinkwrap (push) Has been cancelled
CI / check-test-types (push) Has been cancelled
CI / check-additional-boundaries-a (push) Has been cancelled
CI / check-additional-boundaries-bcd (push) Has been cancelled
CI / check-additional-extension-bundled (push) Has been cancelled
CI / check-additional-extension-channels (push) Has been cancelled
CI / check-additional-extension-package-boundary (push) Has been cancelled
CI / check-additional-runtime-topology-architecture (push) Has been cancelled
CI / check-session-accessor-boundary (push) Has been cancelled
CI / check-session-transcript-reader-boundary (push) Has been cancelled
CI / check-docs (push) Has been cancelled
CI / skills-python (push) Has been cancelled
CI / macos-swift (push) Has been cancelled
CI / ios-build (push) Has been cancelled
CI / ci-timings-summary (push) Has been cancelled
Native App Locale Refresh / Refresh native fa (push) Has been cancelled
Native App Locale Refresh / Refresh native fr (push) Has been cancelled
Native App Locale Refresh / Refresh native hi (push) Has been cancelled
Native App Locale Refresh / Refresh native id (push) Has been cancelled
Native App Locale Refresh / Refresh native it (push) Has been cancelled
Native App Locale Refresh / Refresh native ja-JP (push) Has been cancelled
Control UI Locale Refresh / plan (push) Has been cancelled
Control UI Locale Refresh / Refresh ${{ matrix.locale }} (push) Has been cancelled
Control UI Locale Refresh / Commit control UI locale refresh (push) Has been cancelled
Live Media Runner Image / Build live media runner image (push) Has been cancelled
Native App Locale Refresh / Refresh native ar (push) Has been cancelled
Native App Locale Refresh / Refresh native de (push) Has been cancelled
Native App Locale Refresh / Refresh native es (push) Has been cancelled
Native App Locale Refresh / Refresh native ko (push) Has been cancelled
Native App Locale Refresh / Refresh native nl (push) Has been cancelled
Native App Locale Refresh / Refresh native pl (push) Has been cancelled
Native App Locale Refresh / Refresh native pt-BR (push) Has been cancelled
Native App Locale Refresh / Refresh native ru (push) Has been cancelled
Native App Locale Refresh / Refresh native sv (push) Has been cancelled
Native App Locale Refresh / Refresh native th (push) Has been cancelled
Native App Locale Refresh / Refresh native tr (push) Has been cancelled
Native App Locale Refresh / Refresh native uk (push) Has been cancelled
Native App Locale Refresh / Refresh native vi (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-CN (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-TW (push) Has been cancelled
Native App Locale Refresh / Commit native locale refresh (push) Has been cancelled
Plugin Init Scaffold Validation / Validate provider scaffold (push) Has been cancelled
Plugin NPM Release / preview_plugins_npm (push) Has been cancelled
Plugin NPM Release / Validate release publish approval (push) Has been cancelled
Plugin NPM Release / preview_plugin_pack (push) Has been cancelled
Plugin NPM Release / publish_plugins_npm (push) Has been cancelled
Sandbox Common Smoke / sandbox-common-smoke (push) Has been cancelled
Website Installer Sync / static (push) Has been cancelled
Website Installer Sync / linux-docker (push) Has been cancelled
Website Installer Sync / macos-installer (push) Has been cancelled
Website Installer Sync / windows-installer (push) Has been cancelled
Website Installer Sync / sync-website (push) Has been cancelled
Some checks failed
ClawSweeper Dispatch / dispatch (push) Has been cancelled
CodeQL / Security High (actions) (push) Has been cancelled
CodeQL / Security High (channel-runtime-boundary) (push) Has been cancelled
CodeQL / Security High (core-auth-secrets) (push) Has been cancelled
CodeQL / Security High (mcp-process-tool-boundary) (push) Has been cancelled
CodeQL / Security High (network-ssrf-boundary) (push) Has been cancelled
CodeQL / Security High (plugin-trust-boundary) (push) Has been cancelled
CodeQL / Security High (process-exec-boundary) (push) Has been cancelled
Docs Sync Publish Repo / sync-publish-repo (push) Has been cancelled
Docs / docs (push) Has been cancelled
OpenClaw Stable Main Closeout / Resolve stable release closeout inputs (push) Has been cancelled
OpenClaw Stable Main Closeout / Verify stable main closeout (push) Has been cancelled
Workflow Sanity / no-tabs (push) Has been cancelled
Workflow Sanity / actionlint (push) Has been cancelled
Workflow Sanity / generated-doc-baselines (push) Has been cancelled
CI / runner-admission (push) Has been cancelled
CI / preflight (push) Has been cancelled
CI / security-fast (push) Has been cancelled
CI / pnpm-store-warmup (push) Has been cancelled
CI / build-artifacts (push) Has been cancelled
CI / native-i18n (push) Has been cancelled
CI / ${{ matrix.check_name }} (push) Has been cancelled
CI / ${{ matrix.checkName }} (push) Has been cancelled
CI / checks-node-compat-node22 (push) Has been cancelled
CI / check-bundled-channel-config-metadata (push) Has been cancelled
CI / check-dependencies (push) Has been cancelled
CI / check-guards (push) Has been cancelled
CI / check-lint (push) Has been cancelled
CI / check-prod-types (push) Has been cancelled
CI / check-shrinkwrap (push) Has been cancelled
CI / check-test-types (push) Has been cancelled
CI / check-additional-boundaries-a (push) Has been cancelled
CI / check-additional-boundaries-bcd (push) Has been cancelled
CI / check-additional-extension-bundled (push) Has been cancelled
CI / check-additional-extension-channels (push) Has been cancelled
CI / check-additional-extension-package-boundary (push) Has been cancelled
CI / check-additional-runtime-topology-architecture (push) Has been cancelled
CI / check-session-accessor-boundary (push) Has been cancelled
CI / check-session-transcript-reader-boundary (push) Has been cancelled
CI / check-docs (push) Has been cancelled
CI / skills-python (push) Has been cancelled
CI / macos-swift (push) Has been cancelled
CI / ios-build (push) Has been cancelled
CI / ci-timings-summary (push) Has been cancelled
Native App Locale Refresh / Refresh native fa (push) Has been cancelled
Native App Locale Refresh / Refresh native fr (push) Has been cancelled
Native App Locale Refresh / Refresh native hi (push) Has been cancelled
Native App Locale Refresh / Refresh native id (push) Has been cancelled
Native App Locale Refresh / Refresh native it (push) Has been cancelled
Native App Locale Refresh / Refresh native ja-JP (push) Has been cancelled
Control UI Locale Refresh / plan (push) Has been cancelled
Control UI Locale Refresh / Refresh ${{ matrix.locale }} (push) Has been cancelled
Control UI Locale Refresh / Commit control UI locale refresh (push) Has been cancelled
Live Media Runner Image / Build live media runner image (push) Has been cancelled
Native App Locale Refresh / Refresh native ar (push) Has been cancelled
Native App Locale Refresh / Refresh native de (push) Has been cancelled
Native App Locale Refresh / Refresh native es (push) Has been cancelled
Native App Locale Refresh / Refresh native ko (push) Has been cancelled
Native App Locale Refresh / Refresh native nl (push) Has been cancelled
Native App Locale Refresh / Refresh native pl (push) Has been cancelled
Native App Locale Refresh / Refresh native pt-BR (push) Has been cancelled
Native App Locale Refresh / Refresh native ru (push) Has been cancelled
Native App Locale Refresh / Refresh native sv (push) Has been cancelled
Native App Locale Refresh / Refresh native th (push) Has been cancelled
Native App Locale Refresh / Refresh native tr (push) Has been cancelled
Native App Locale Refresh / Refresh native uk (push) Has been cancelled
Native App Locale Refresh / Refresh native vi (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-CN (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-TW (push) Has been cancelled
Native App Locale Refresh / Commit native locale refresh (push) Has been cancelled
Plugin Init Scaffold Validation / Validate provider scaffold (push) Has been cancelled
Plugin NPM Release / preview_plugins_npm (push) Has been cancelled
Plugin NPM Release / Validate release publish approval (push) Has been cancelled
Plugin NPM Release / preview_plugin_pack (push) Has been cancelled
Plugin NPM Release / publish_plugins_npm (push) Has been cancelled
Sandbox Common Smoke / sandbox-common-smoke (push) Has been cancelled
Website Installer Sync / static (push) Has been cancelled
Website Installer Sync / linux-docker (push) Has been cancelled
Website Installer Sync / macos-installer (push) Has been cancelled
Website Installer Sync / windows-installer (push) Has been cancelled
Website Installer Sync / sync-website (push) Has been cancelled
Adolf is a fork/vendored clone of github.com/openclaw/openclaw (v2026.6.11), free to diverge. Tree copied sans upstream .git; upstream remote added for future syncs. Node pinned to 24 (.nvmrc); engines already require >=22.19. Preserves docs/ARCHITECTURE.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LeqyaxJF2nbRXJtae2kNB2
This commit is contained in:
@@ -0,0 +1,210 @@
|
||||
# Prose Run Retrospective
|
||||
# Analyzes a completed run to extract learnings and produce an improved version.
|
||||
|
||||
input run_id: "Path to the completed run directory"
|
||||
input prose_path: "Path to the .prose file that was executed"
|
||||
|
||||
const PATTERNS_PATH = "prose/skills/open-prose/guidance/patterns.md"
|
||||
const ANTIPATTERNS_PATH = "prose/skills/open-prose/guidance/antipatterns.md"
|
||||
|
||||
agent analyst:
|
||||
model: sonnet
|
||||
prompt: """You analyze OpenProse run artifacts to identify issues and classify outcomes.
|
||||
Checklist-style evaluation: read systematically, identify issues with evidence, classify outcomes.
|
||||
|
||||
Classification criteria:
|
||||
- success: Program completed, outputs are correct
|
||||
- transient-error: External failure (API timeout, network) - not a program flaw
|
||||
- architectural-issue: Structural problem in .prose design
|
||||
- antipattern-instance: Program exhibits a known antipattern"""
|
||||
|
||||
agent extractor:
|
||||
model: opus
|
||||
prompt: """You extract generalizable patterns from specific experiences.
|
||||
Deep reasoning: identify abstract success/failure factors, distinguish situational from generalizable,
|
||||
reason about trade-offs, synthesize observations into principles.
|
||||
Be conservative - avoid over-generalizing from single instances."""
|
||||
|
||||
parallel:
|
||||
run_artifacts = session: analyst
|
||||
prompt: """Read and catalog all artifacts in {run_id}.
|
||||
Look for bindings/*.md, state.md, outputs/, error files.
|
||||
Summarize what exists and its content."""
|
||||
context:
|
||||
file: "{run_id}/state.md"
|
||||
|
||||
source_analysis = session: analyst
|
||||
prompt: """Parse the .prose file structure at {prose_path}.
|
||||
Identify: inputs, agents and models, phase structure, error handling, decision points, outputs."""
|
||||
context:
|
||||
file: prose_path
|
||||
|
||||
let classification = session: analyst
|
||||
prompt: """Classify the run outcome.
|
||||
|
||||
Run artifacts: {run_artifacts}
|
||||
Source structure: {source_analysis}
|
||||
|
||||
Determine:
|
||||
- outcome_type: success | transient-error | architectural-issue | antipattern-instance
|
||||
- confidence: high | medium | low
|
||||
- evidence: Specific quotes supporting classification
|
||||
- summary: One-line description"""
|
||||
|
||||
if **classification indicates transient error (API timeout, network failure) not caused by program**:
|
||||
output result = {
|
||||
status: "transient-error",
|
||||
classification: classification,
|
||||
recommendation: "Re-run the program; no structural changes needed"
|
||||
}
|
||||
|
||||
let improvements = session: analyst
|
||||
prompt: """Identify improvement opportunities in the .prose file.
|
||||
|
||||
Classification: {classification}
|
||||
Source structure: {source_analysis}
|
||||
|
||||
For each improvement:
|
||||
- What: Specific change
|
||||
- Why: Problem it solves
|
||||
- Priority: high | medium | low
|
||||
|
||||
Focus on structural improvements: model selection, parallelization, error handling, context management."""
|
||||
context:
|
||||
file: PATTERNS_PATH
|
||||
file: ANTIPATTERNS_PATH
|
||||
|
||||
let pattern_candidates = session: extractor
|
||||
prompt: """Extract generalizable patterns from this run.
|
||||
|
||||
Classification: {classification}
|
||||
Improvements: {improvements}
|
||||
|
||||
For genuinely novel patterns/antipatterns (not already in guidance):
|
||||
- Name (kebab-case)
|
||||
- Category
|
||||
- Description
|
||||
- Example code
|
||||
- Rationale
|
||||
|
||||
Be conservative. Only propose broadly applicable patterns supported by evidence."""
|
||||
context:
|
||||
file: PATTERNS_PATH
|
||||
file: ANTIPATTERNS_PATH
|
||||
|
||||
let improved_prose = session: extractor
|
||||
prompt: """Write an improved version of the .prose file.
|
||||
|
||||
Source structure: {source_analysis}
|
||||
Improvements: {improvements}
|
||||
|
||||
Write the complete improved file:
|
||||
- Keep same purpose and inputs
|
||||
- Apply identified improvements
|
||||
- Follow patterns from guidance
|
||||
- Add brief header comment on what changed"""
|
||||
context:
|
||||
file: prose_path
|
||||
file: PATTERNS_PATH
|
||||
|
||||
if **pattern_candidates contains no novel patterns worth documenting**:
|
||||
let new_patterns = { count: 0, entries: [] }
|
||||
let new_antipatterns = { count: 0, entries: [] }
|
||||
else:
|
||||
parallel:
|
||||
new_patterns = session: analyst
|
||||
prompt: """Draft new pattern entries for patterns.md.
|
||||
|
||||
Candidates: {pattern_candidates}
|
||||
|
||||
For genuinely novel patterns, follow exact format from patterns.md.
|
||||
Output: count, names, and full markdown entries."""
|
||||
context:
|
||||
file: PATTERNS_PATH
|
||||
|
||||
new_antipatterns = session: analyst
|
||||
prompt: """Draft new antipattern entries for antipatterns.md.
|
||||
|
||||
Candidates: {pattern_candidates}
|
||||
|
||||
For genuinely novel antipatterns, follow exact format from antipatterns.md.
|
||||
Output: count, names, and full markdown entries."""
|
||||
context:
|
||||
file: ANTIPATTERNS_PATH
|
||||
|
||||
input approval_response: """
|
||||
## Retrospective Complete
|
||||
|
||||
**Classification**: {classification.outcome_type} ({classification.confidence})
|
||||
**Summary**: {classification.summary}
|
||||
|
||||
**Improvements**: {improvements}
|
||||
|
||||
**New Patterns**: {new_patterns.count} proposed
|
||||
**New Antipatterns**: {new_antipatterns.count} proposed
|
||||
|
||||
Approve: `all` | `prose-only` | `docs-only` | `none`
|
||||
"""
|
||||
|
||||
choice **user approval**:
|
||||
|
||||
option "all":
|
||||
session "Write improved prose"
|
||||
prompt: "Write to {run_id}/outputs/improved.prose:\n{improved_prose}"
|
||||
permissions:
|
||||
write: ["{run_id}/outputs/*"]
|
||||
|
||||
if **new_patterns.count > 0**:
|
||||
session "Update patterns.md"
|
||||
prompt: "Append to {PATTERNS_PATH}:\n{new_patterns.entries}"
|
||||
permissions:
|
||||
write: [PATTERNS_PATH]
|
||||
|
||||
if **new_antipatterns.count > 0**:
|
||||
session "Update antipatterns.md"
|
||||
prompt: "Append to {ANTIPATTERNS_PATH}:\n{new_antipatterns.entries}"
|
||||
permissions:
|
||||
write: [ANTIPATTERNS_PATH]
|
||||
|
||||
output result = {
|
||||
status: classification.outcome_type,
|
||||
improved_prose_path: "{run_id}/outputs/improved.prose",
|
||||
patterns_added: new_patterns.names,
|
||||
antipatterns_added: new_antipatterns.names
|
||||
}
|
||||
|
||||
option "prose-only":
|
||||
session "Write improved prose"
|
||||
prompt: "Write to {run_id}/outputs/improved.prose:\n{improved_prose}"
|
||||
permissions:
|
||||
write: ["{run_id}/outputs/*"]
|
||||
|
||||
output result = {
|
||||
status: classification.outcome_type,
|
||||
improved_prose_path: "{run_id}/outputs/improved.prose"
|
||||
}
|
||||
|
||||
option "docs-only":
|
||||
if **new_patterns.count > 0**:
|
||||
session "Update patterns.md"
|
||||
prompt: "Append to {PATTERNS_PATH}:\n{new_patterns.entries}"
|
||||
permissions:
|
||||
write: [PATTERNS_PATH]
|
||||
|
||||
if **new_antipatterns.count > 0**:
|
||||
session "Update antipatterns.md"
|
||||
prompt: "Append to {ANTIPATTERNS_PATH}:\n{new_antipatterns.entries}"
|
||||
permissions:
|
||||
write: [ANTIPATTERNS_PATH]
|
||||
|
||||
output result = {
|
||||
status: classification.outcome_type,
|
||||
patterns_added: new_patterns.names,
|
||||
antipatterns_added: new_antipatterns.names
|
||||
}
|
||||
|
||||
option "none":
|
||||
output result = {
|
||||
status: "review-complete",
|
||||
learnings: pattern_candidates
|
||||
}
|
||||
Reference in New Issue
Block a user