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,225 @@
|
||||
# Workflow Crystallizer v2
|
||||
# Observes a conversation thread, extracts the workflow pattern, crystallizes into .prose
|
||||
#
|
||||
# Key design decisions:
|
||||
# - Author fetches latest prose.md spec + patterns/antipatterns from GitHub
|
||||
# - Single self-verifying author session (Design+Author+Overseer consolidated)
|
||||
# - Single user checkpoint (scope + placement combined)
|
||||
# - Scoper uses Sonnet (analytical work, not creative)
|
||||
# - Parallel: observation + research, collision + scope options
|
||||
|
||||
input thread: "The conversation thread to analyze"
|
||||
input hint: "Optional: What aspect to focus on"
|
||||
|
||||
# Always fetch latest guidance from source of truth
|
||||
const PROSE_SPEC_URL = "https://raw.githubusercontent.com/openprose/prose/refs/heads/main/skills/open-prose/prose.md"
|
||||
const PATTERNS_URL = "https://raw.githubusercontent.com/openprose/prose/refs/heads/main/skills/open-prose/guidance/patterns.md"
|
||||
const ANTIPATTERNS_URL = "https://raw.githubusercontent.com/openprose/prose/refs/heads/main/skills/open-prose/guidance/antipatterns.md"
|
||||
|
||||
agent observer:
|
||||
model: opus
|
||||
prompt: """
|
||||
Identify implicit workflows in conversation threads.
|
||||
Look for: repeated patterns, multi-step processes, decision points,
|
||||
parallelization opportunities, validations performed.
|
||||
Be specific - quote actions from the thread.
|
||||
"""
|
||||
|
||||
agent researcher:
|
||||
model: sonnet
|
||||
prompt: "Research codebases thoroughly. Report what exists and patterns used."
|
||||
permissions:
|
||||
read: ["**/*.prose", "**/*.md"]
|
||||
|
||||
agent scoper:
|
||||
model: sonnet
|
||||
prompt: """
|
||||
Determine the right abstraction level for workflows.
|
||||
Too specific = only works for one case
|
||||
Too general = loses essence, becomes vague
|
||||
Find the sweet spot: capture the pattern, parameterize the variables.
|
||||
"""
|
||||
|
||||
agent author:
|
||||
model: opus
|
||||
prompt: """
|
||||
Write idiomatic OpenProse. Follow existing example patterns.
|
||||
Prefer explicit over clever. Use agents for distinct roles.
|
||||
Use parallel for independent tasks. Use try/catch for reversible operations.
|
||||
"""
|
||||
permissions:
|
||||
write: ["**/*.prose", "**/*.md"]
|
||||
|
||||
agent compiler:
|
||||
model: sonnet
|
||||
prompt: "Validate OpenProse syntax. Report specific errors with line numbers."
|
||||
permissions:
|
||||
bash: allow
|
||||
|
||||
# ============================================================
|
||||
# Phase 1: Observe and Research (parallel)
|
||||
# ============================================================
|
||||
|
||||
parallel:
|
||||
raw_observation = session: observer
|
||||
prompt: """
|
||||
Analyze this conversation thread. Identify:
|
||||
1. What manual process was executed?
|
||||
2. What were the distinct steps?
|
||||
3. What decisions were made?
|
||||
4. What could have been parallelized?
|
||||
5. What validations were performed?
|
||||
6. What artifacts were created?
|
||||
Be concrete. Quote specific actions.
|
||||
"""
|
||||
context: { thread, hint }
|
||||
|
||||
existing_examples = session: researcher
|
||||
prompt: "List all .prose examples with one-line summaries"
|
||||
context: "skills/open-prose/examples/"
|
||||
|
||||
existing_ops = session: researcher
|
||||
prompt: "What operational .prose files already exist?"
|
||||
context: "OPERATIONS.prose.md"
|
||||
|
||||
patterns_used = session: researcher
|
||||
prompt: "What patterns does this codebase favor?"
|
||||
context: "skills/open-prose/examples/*.prose"
|
||||
|
||||
# ============================================================
|
||||
# Phase 2: Scope (parallel analysis, then synthesis)
|
||||
# ============================================================
|
||||
|
||||
parallel:
|
||||
collision_check = session: scoper
|
||||
prompt: """
|
||||
Does the observed workflow overlap with existing examples?
|
||||
If yes: how different? What unique value would a new file add?
|
||||
If no: what category does it belong to?
|
||||
"""
|
||||
context: { raw_observation, existing_examples, existing_ops }
|
||||
|
||||
scope_options_raw = session: scoper
|
||||
prompt: """
|
||||
Propose 3 scoping options:
|
||||
1. NARROW: Specific to exactly what happened (precise but may not generalize)
|
||||
2. MEDIUM: Captures pattern with key parameters (reusable, clear)
|
||||
3. BROAD: Abstract template (widely applicable but may lose details)
|
||||
For each: describe inputs, agents, key phases.
|
||||
"""
|
||||
context: { raw_observation, patterns_used }
|
||||
|
||||
let scope_options = session: scoper
|
||||
prompt: "Refine scope options considering collision analysis"
|
||||
context: { scope_options_raw, collision_check }
|
||||
|
||||
let placement_suggestion = session: scoper
|
||||
prompt: """
|
||||
Where should this file live?
|
||||
1. examples/XX-name.prose - If reusable pattern (determine next number)
|
||||
2. Custom location - If project-specific
|
||||
Is this operational (used to run this project)? Note for OPERATIONS.prose.md
|
||||
"""
|
||||
context: { raw_observation, existing_examples, existing_ops }
|
||||
|
||||
# ============================================================
|
||||
# Phase 3: User Decision (single checkpoint)
|
||||
# ============================================================
|
||||
|
||||
input user_decision: """
|
||||
OBSERVED WORKFLOW:
|
||||
{raw_observation}
|
||||
|
||||
COLLISION CHECK:
|
||||
{collision_check}
|
||||
|
||||
SCOPE OPTIONS:
|
||||
{scope_options}
|
||||
|
||||
PLACEMENT RECOMMENDATION:
|
||||
{placement_suggestion}
|
||||
|
||||
YOUR DECISIONS:
|
||||
1. Which scope? (1/2/3 or describe custom)
|
||||
2. Confirm placement or specify different location:
|
||||
"""
|
||||
|
||||
let final_decisions = session: scoper
|
||||
prompt: "Parse user's scope choice and placement confirmation into structured form"
|
||||
context: { scope_options, placement_suggestion, user_decision }
|
||||
|
||||
# ============================================================
|
||||
# Phase 4: Author with Self-Verification
|
||||
# ============================================================
|
||||
|
||||
let draft = session: author
|
||||
prompt: """
|
||||
Design and write the complete .prose file.
|
||||
|
||||
IMPORTANT: First fetch and read the guidance documents:
|
||||
- prose.md spec: {PROSE_SPEC_URL}
|
||||
- patterns.md: {PATTERNS_URL}
|
||||
- antipatterns.md: {ANTIPATTERNS_URL}
|
||||
|
||||
Then:
|
||||
1. DESIGN: Plan inputs, agents, phases, parallelism, error handling
|
||||
2. WRITE: Complete .prose following the spec and patterns
|
||||
3. SELF-REVIEW: Check against antipatterns and remove cruft:
|
||||
- Remove sessions that just run single commands
|
||||
- Remove over-abstracted agents that don't add value
|
||||
- Remove comments that restate what code does
|
||||
- Remove unnecessary variables and single-item parallel blocks
|
||||
- Keep: clear agent roles, meaningful parallelism, genuine error handling
|
||||
|
||||
Include header comment explaining what it does.
|
||||
Output only the final, clean version.
|
||||
"""
|
||||
context: { final_decisions, existing_examples }
|
||||
permissions:
|
||||
network: [PROSE_SPEC_URL, PATTERNS_URL, ANTIPATTERNS_URL]
|
||||
|
||||
# ============================================================
|
||||
# Phase 5: Compile with Bounded Retry
|
||||
# ============================================================
|
||||
|
||||
let current = draft
|
||||
loop until **compilation succeeds** (max: 3):
|
||||
let result = session: compiler
|
||||
prompt: """Validate this .prose file against the spec.
|
||||
Fetch spec from: {PROSE_SPEC_URL}
|
||||
Report SUCCESS or specific errors with line numbers."""
|
||||
context: current
|
||||
permissions:
|
||||
network: [PROSE_SPEC_URL]
|
||||
|
||||
if **compilation has errors**:
|
||||
current = session: author
|
||||
prompt: "Fix these syntax errors, return corrected version"
|
||||
context: { current, result }
|
||||
permissions:
|
||||
network: [PROSE_SPEC_URL]
|
||||
|
||||
# ============================================================
|
||||
# Phase 6: Write All Files
|
||||
# ============================================================
|
||||
|
||||
let written = session: author
|
||||
prompt: """
|
||||
Write the .prose file and update indices:
|
||||
1. Write .prose to confirmed location
|
||||
2. If this is an example, add entry to examples/README.md
|
||||
3. If this is operational, add entry to OPERATIONS.prose.md
|
||||
|
||||
Return: { file_path, readme_updated: bool, ops_updated: bool }
|
||||
"""
|
||||
context: { current, final_decisions, existing_examples, existing_ops }
|
||||
|
||||
# ============================================================
|
||||
# Output
|
||||
# ============================================================
|
||||
|
||||
output crystallized = {
|
||||
observation: raw_observation,
|
||||
decisions: final_decisions,
|
||||
file: written
|
||||
}
|
||||
Reference in New Issue
Block a user