agentera 3.0.0-dev.28 → 3.0.0-dev.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/bundle/CHANGELOG.md +7 -2
- package/bundle/README.md +7 -6
- package/bundle/UPGRADE.md +27 -16
- package/bundle/references/adapters/package-surface-characterization.md +1 -2
- package/bundle/references/adapters/runtime-lifecycle-authority.yaml +2 -3
- package/bundle/references/adapters/runtime-retired-resources.yaml +78 -14
- package/bundle/references/artifacts/state-storage-authority.yaml +10 -1
- package/bundle/references/cli/audience-namespace-cli-migration.yaml +1 -1
- package/bundle/references/cli/bundle-skill-vocabulary.yaml +1 -1
- package/bundle/references/cli/capability-instruction-contract.yaml +0 -3
- package/bundle/references/cli/routing-execution-vocabulary.yaml +0 -4
- package/bundle/references/cli/vocabulary.md +1 -2
- package/bundle/skills/agentera/capabilities/orchestrate/schemas/artifacts.yaml +10 -6
- package/bundle/skills/agentera/capabilities/orchestrate/schemas/exit.yaml +3 -2
- package/bundle/skills/agentera/capabilities/orchestrate/schemas/validation.yaml +6 -5
- package/bundle/skills/agentera/schemas/artifacts/health.yaml +25 -7
- package/bundle/skills/agentera/schemas/artifacts/plan.yaml +0 -1
- package/dist/capabilities/orchestrate/instructions.js +22 -2
- package/dist/capabilities/orchestrate/instructions.js.map +1 -1
- package/dist/cli/capabilityContext/startup.js +2 -0
- package/dist/cli/capabilityContext/startup.js.map +1 -1
- package/dist/cli/commands/schema.js +21 -23
- package/dist/cli/commands/schema.js.map +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/upgrade.js.map +1 -1
- package/dist/cli/commands/validate.js +2 -119
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/dispatch/check.js +2 -7
- package/dist/cli/dispatch/check.js.map +1 -1
- package/dist/cli/dispatch/lifecycle.js +7 -5
- package/dist/cli/dispatch/lifecycle.js.map +1 -1
- package/dist/cli/help.js +4 -4
- package/dist/cli/help.js.map +1 -1
- package/dist/runtime/lifecycleAuthority.js +10 -11
- package/dist/runtime/lifecycleAuthority.js.map +1 -1
- package/dist/runtime/nativeResourceCleanup.js +317 -0
- package/dist/runtime/nativeResourceCleanup.js.map +1 -0
- package/dist/setup/codex/cli.js +9 -40
- package/dist/setup/codex/cli.js.map +1 -1
- package/dist/setup/codex/configToml.js +2 -83
- package/dist/setup/codex/configToml.js.map +1 -1
- package/dist/setup/codex/constants.js +0 -15
- package/dist/setup/codex/constants.js.map +1 -1
- package/dist/setup/codex/state.js +2 -20
- package/dist/setup/codex/state.js.map +1 -1
- package/dist/setup/codex.js +2 -4
- package/dist/setup/codex.js.map +1 -1
- package/dist/state/healthEntities.js +43 -4
- package/dist/state/healthEntities.js.map +1 -1
- package/dist/state/healthEntityValidation.js +14 -1
- package/dist/state/healthEntityValidation.js.map +1 -1
- package/dist/state/write/explain.js +2 -1
- package/dist/state/write/explain.js.map +1 -1
- package/dist/upgrade/lifecycleUpgrade.js +14 -14
- package/dist/upgrade/lifecycleUpgrade.js.map +1 -1
- package/dist/upgrade/upgradeOrchestrator.js +12 -12
- package/dist/upgrade/upgradeOrchestrator.js.map +1 -1
- package/package.json +2 -2
- package/bundle/skills/agentera/agents/audit.toml +0 -6
- package/bundle/skills/agentera/agents/build.toml +0 -6
- package/bundle/skills/agentera/agents/design.toml +0 -6
- package/bundle/skills/agentera/agents/discuss.toml +0 -6
- package/bundle/skills/agentera/agents/document.toml +0 -6
- package/bundle/skills/agentera/agents/optimize.toml +0 -6
- package/bundle/skills/agentera/agents/orchestrate.toml +0 -6
- package/bundle/skills/agentera/agents/plan.toml +0 -6
- package/bundle/skills/agentera/agents/profile.toml +0 -6
- package/bundle/skills/agentera/agents/research.toml +0 -6
- package/bundle/skills/agentera/agents/status.toml +0 -6
- package/bundle/skills/agentera/agents/vision.toml +0 -6
- package/dist/runtime/retiredRuntimeCleanup.js +0 -238
- package/dist/runtime/retiredRuntimeCleanup.js.map +0 -1
- package/dist/setup/codex/agents.js +0 -96
- package/dist/setup/codex/agents.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Capability instructions for orchestrate
|
|
2
2
|
// Served via `agentera prime --context orchestrate --format json`. RFC 2119 modal vocab.
|
|
3
|
-
export const instructions = JSON.parse(String.raw `"# ORCHESTRATE\n\n**Orchestration Runtime: Knowledge-coordinated Execution Strategy, Targeted Routing. Evaluate, Resolve, Adapt.**\n\nGlyph: ⎈ (protocol ref: SG12).\n\nA meta-orchestrator that delegates capabilities as subagents, evaluates each task with audit, and loops through plans until work is done. The thin orchestrator: reads plans, routes tasks, gates quality. Never touches code. All creativity happens in delegated capabilities; orchestrate follows a deterministic state machine.\n\nEach invocation = one orchestration session. Multiple plan cycles within a single session. In orchestrate only, \u0060dispatch\u0060 and \u0060chain\u0060 are autonomous verbs inside the approved orchestration flow; \u0060suggest\u0060 waits for user confirmation before invoking.\n\n---\n\n## State artifacts\n\nOrchestrate produces no new artifact files. It reads and updates existing artifacts. Normal startup begins from \u0060agentera prime --context orchestrate --format json\u0060.\n\nTrust \u0060orchestration_context.source_contract\u0060. When \u0060complete_for_orchestration_context\u0060 is true, the context is authoritative — no raw plan, progress, health, TODO, or decisions reads for task selection or evaluator handoff. When incomplete, run listed fallback commands before any raw artifact read. Raw reads are last-resort diagnostics, not normal startup.\n\nThe \u0060agentera\u0060 CLI is a state interface. Do not run capability-name commands such as \u0060agentera build\u0060 or \u0060agentera plan\u0060.\n\n| Artifact | Role | Purpose |\n|----------|------|---------|\n| \u0060plan\u0060 | produces_and_consumes | Task queue. Use \u0060orchestration_context.task_queue\u0060 and \u0060selected_next_task\u0060; update status (pending → complete/blocked) only after evaluation. |\n| \u0060progress\u0060 | consumes | Cross-cycle context. Use \u0060orchestration_context.progress_verification\u0060; dispatched capabilities write their own entries. |\n| \u0060health\u0060 | consumes | Health context after plan completion to decide whether to start a new plan. |\n| \u0060todo\u0060 | produces | Blocked task logging. Write when a task exhausts its retry budget. |\n| \u0060decisions\u0060 | consumes | Decision context. Use included caveats or \u0060agentera state decisions list --limit 20 --format json\u0060; preserve \u0060missing_fields\u0060, \u0060compacted\u0060, \u0060caveats\u0060, and \u0060satisfaction.review_needed\u0060. |\n| \u0060vision\u0060 | consumes | Direction context for bootstrap. If missing from context, treat as a caveat. |\n| \u0060profile\u0060 | consumes | Persona context. Preserve stale or missing caveats; do not refresh profile during orchestration. |\n| \u0060docs\u0060 | consumes | Artifact path resolution for write targets. |\n\n### Decision satisfaction authority\n\nWhen orchestration touches decision satisfaction, agents may mark provisional satisfaction with evidence only. Orchestrate MUST NOT mark, infer, or user-confirm final satisfaction; only the user confirms final satisfaction. If decisions are compacted, missing satisfaction state, open, provisional, or review-needed, preserve the caveat and review pressure in dispatch and evaluation context.\n\nVisual tokens: \u0060skills/agentera/protocol.yaml\u0060 (task states VT1-VT4, glyph SG12, exit signals EX1-EX4, severity SI1-SI4, decision labels DL1-DL3).\n\n---\n\n## The orchestration loop\n\nThe orchestrator follows a deterministic state machine. It does not reason creatively about orchestration; it follows the loop.\n\n### Step 0: Assess\n\nStart from \u0060agentera prime --context orchestrate --format json\u0060. Check \u0060orchestration_context.source_contract\u0060, the returned plan summary, and \u0060state_presence\u0060 before considering raw artifacts.\n\n- **No plan in returned state**: bootstrap mode. Delegate to research for vision-gap analysis, then plan for plan creation. If the vision artifact is also absent or caveated, suggest ⛥ vision first and wait for user confirmation.\n- **Plan exists, \u0060header.status: complete\u0060, and all tasks complete**: completed-plan closure. Run the staleness check, archive the plan, then spawn audit for a health check. If clean, chain research then plan for the next plan cycle. Include lineage, staleness findings, health issues, and source-contract caveats as context.\n- **Plan exists, but blocked or incomplete tasks remain**: do not archive it as successful completion. Route to the orchestration loop or replanning so incomplete evidence stays visible.\n- **Plan exists, tasks pending**: proceed to the loop using \u0060orchestration_context\u0060 task selection.\n\n**Staleness check** (plan completion): When all tasks are complete, check whether delegated capabilities updated their expected artifacts.\n\n1. **Identify delegated capabilities** from plan task history and progress summary in CLI context.\n2. **Compare modification dates**: for each expected artifact, check \u0060git log -1 --format=%aI -- <path>\u0060 against the plan's creation date. An artifact is stale if it was not modified since the plan's creation and the owning capability was delegated at least once during the plan.\n3. **Surface findings**: include stale artifact findings as informational context for the next plan cycle. Archive the plan with \u0060agentera state plan archive --format json\u0060. The writer owns immutable archive naming and active-plan removal.\n\n---\n\nStep markers: display \u0060── task N · step M/5: verb\u0060 before each step in the loop. N is the task number from the selected orchestration context task.\n\n### Step 1: Select task\n\nUse \u0060orchestration_context.selected_next_task\u0060 when present. Otherwise, use \u0060orchestration_context.task_queue.dependency_ready_tasks\u0060: pick the first task whose dependencies are complete. Treat \u0060orchestration_context.task_queue.blocked_tasks[*].blocked_reasons\u0060 as the dependency explanation.\n\nIf no tasks are eligible (all remaining tasks are blocked by incomplete dependencies), report \u0060stuck\u0060 with the dependency chain.\n\nUse decision state or caveats from the returned context first. If decisions are missing from startup context, run \u0060agentera state decisions list --limit 20 --format json\u0060. Preserve \u0060missing_fields\u0060, \u0060compacted\u0060, \u0060caveats\u0060, and \u0060satisfaction.review_needed\u0060 in dispatch and evaluation context instead of filling gaps by reconstruction.\n\n### Step 2: Delegate\n\nInfer which capability handles the task based on its description:\n\n| Task signals | Target capability |\n|--------------|-------------------|\n| Implementation, building, coding, feature, fix, refactor | ⧉ build |\n| Documentation, docs, README, CHANGELOG | ▤ document |\n| Health audit, architecture review, code quality check | ⛶ audit |\n| Research, external patterns, library evaluation | ⬚ research |\n| Optimization, performance, metric improvement, benchmark | ⎘ optimize |\n| Visual identity, design tokens, DESIGN.md | ◰ design |\n| Version bump | ⧉ build (with bump instructions from docs artifact) |\n\nIf the task does not clearly map, default to ⧉ build.\n\nSpawn the target capability through the runtime-native subagent substrate. Do not run capability-name CLI commands; the \u0060agentera\u0060 CLI remains a state interface.\n\n\u0060\u0060\u0060\nYou are executing a planned task for [project].\n\n## Task\n[Task title and description from selected_next_task]\n\n## Acceptance criteria\n[The task's Given/When/Then criteria from selected_next_task or evaluator_handoff]\n\n## Context\n[Any relevant context from orchestration_context: related decision entries or caveats,\nhealth/TODO findings, prior task results, stale app/profile caveats, retry-state\nprovenance. Keep brief.]\n\n## Constraints\n- Execute ONLY this task. No scope creep.\n- Follow existing code patterns and conventions.\n- Use the runtime-native subagent descriptor or Task surface for the selected capability.\n- Commit your changes with a conventional commit message.\n- You are working on a plan-driven task. Update the task status in the plan artifact\n to ■ complete when done.\n\u0060\u0060\u0060\n\nWait for the task-notification result.\n\n### Step 3: Evaluate\n\nEvaluation has two surfaces in sequence: an orchestrator-side presence check using latest progress verification, then an audit delegation whose prompt is extended with an evidence audit. Both surfaces must run before the task can be resolved.\n\n**Surface 1: Presence check from progress verification**\n\nWhen the delegated capability was build (or any capability that produces progress cycle entries), perform a cheap evidence presence check before spawning audit:\n\n1. Start with \u0060orchestration_context.progress_verification\u0060 and its \u0060latest_progress_verification_pointer\u0060.\n2. If unavailable or incomplete, run \u0060agentera state progress list --limit 20 --format json\u0060 before any raw artifact read.\n3. Look for a non-empty \u0060verified\u0060 field in the latest relevant progress entry.\n4. **Present and non-empty**: proceed to Surface 2.\n5. **Missing or empty**: treat the task as a failed evaluation. Go straight into Step 4's FAIL branch with \"missing or empty \u0060verified\u0060 field in progress Cycle N\" as the failure reason.\n\n**Surface 2: Audit delegation with evidence audit**\n\nOnce the presence check passes, spawn audit as a subagent to verify the work:\n\n\u0060\u0060\u0060\nYou are evaluating a completed task for [project].\n\n## Task that was completed\n[Task title and description from evaluator_handoff]\n\n## Acceptance criteria to verify\n[The task's Given/When/Then criteria from evaluator_handoff]\n\n## What to check\n- Verify each acceptance criterion against the current codebase state.\n- Check for unintended side effects from the implementation.\n- Verify the project's test/build suite still passes.\n\n## Verification evidence audit\n- Use the latest progress verification pointer and \u0060verified\u0060 evidence supplied by\n the orchestration context or \u0060agentera state progress list --limit 20 --format json\u0060.\n- Compare the recorded evidence to the task's acceptance criteria.\n- Report whether the evidence substantiates the criteria or is merely trivially\n populated (e.g., \"tests pass\" without any observation of the actual feature\n running counts as insufficient).\n- If the field is \u0060N/A: <tag>\u0060, confirm the tag is drawn from the allowlist\n (\u0060docs-only\u0060, \u0060refactor-no-behavior-change\u0060, \u0060chore-dep-bump\u0060,\n \u0060chore-build-config\u0060, \u0060test-only\u0060) AND that the tag fits the nature of the work.\n- If the field is a free-form N/A rationale, confirm it is at least 8 words long AND\n actually explains why the change has no observable behavior.\n- Flag the task as FAIL on the evidence audit if the recorded \u0060verified\u0060 content\n does not substantiate the acceptance criteria.\n\n## Source-contract caveats to preserve\n- Include compacted decision caveats, stale health/profile/app caveats, missing\n state-family caveats, and retry-state provenance exactly as supplied.\n- Do not treat missing retry attempts as an attempt count. If status is\n \u0060not_recorded\u0060 or \u0060unavailable\u0060, keep that status in the evaluation report.\n\n## Output format\nFor each acceptance criterion, report:\n- status: PASS or FAIL\n- evidence: what you checked and what you found\n- citation: \u0060<file>:<line>\u0060 OR \u0060not-applicable: <reason>\u0060 — **required for every FAIL row**\n- verify_command: exact \u0060grep\u0060 or \u0060git show\u0060 invocation — **required for every FAIL row\n with a file:line citation**; the command must reproduce the evidence at the cited line\n\nUse \u0060orchestration_context.evaluator_handoff.output_requirements\u0060 from prime context as\nthe machine-readable citation contract. FAIL rows without a valid citation are incomplete\nand must be treated as evaluation failures.\n\nThen report the verification evidence audit outcome (PASS or FAIL with reasoning).\n\nThen give an overall verdict: PASS (all criteria met and evidence audit passed) or FAIL\n(any criterion failed or evidence audit failed).\n\u0060\u0060\u0060\n\nWait for the audit verdict.\n\n### Step 4: Resolve\n\nBased on audit's verdict:\n\n**PASS**: Mark the task \u0060■ complete\u0060 (VT1) in the plan artifact (if the delegated capability did not already do so). Proceed to Step 5.\n\n**FAIL (retries < 2)**: Increment the retry count. Re-delegate to the same capability with audit's findings as additional context:\n\n\u0060\u0060\u0060\nYou are retrying a task that failed evaluation for [project].\n\n## Original task\n[Task title and description]\n\n## Acceptance criteria\n[The task's Given/When/Then criteria]\n\n## Evaluation findings (what failed)\n[Audit's failure report with evidence]\n\n## What to fix\nAddress each failure point. All acceptance criteria must pass on re-evaluation.\n\u0060\u0060\u0060\n\nReturn to Step 3.\n\n**FAIL (retries = 2)**: The task has exhausted its retry budget. Mark the task \u0060▨ blocked\u0060 (VT4) in the plan artifact. Log the failure to TODO.md with audit's findings as context. Proceed to Step 5.\n\nWhen writing to the plan artifact or TODO.md, use the task identity and caveats from \u0060orchestration_context\u0060. Do not refresh installed app/profile state, edit the vision artifact, or invent retry attempt counts.\n\n### Step 5: Log and loop\n\nCheck the plan state:\n\n- **More pending tasks with satisfied dependencies?** Return to Step 1.\n- **All tasks complete?** Return to Step 0 for completed-plan closure.\n- **Complete + blocked or incomplete tasks?** Keep the plan active and route to replanning or TODO logging; do not archive as successful completion.\n- **Context approaching budget limit?** Stop the session, report current progress.\n- **User interrupt?** Stop the session, report current progress.\n\n---\n\n## Safety rails\n\n<critical>\n\n- MUST NOT read implementation source code. The orchestrator delegates; it does not implement. Artifact files (\u0060.agentera/*.yaml\u0060, \u0060TODO.md\u0060) are state records, not source code; raw reads are last-resort after CLI context and listed fallback commands.\n- MUST NOT run tests, builds, linters, or implementation project commands directly. Delegated capabilities handle all verification.\n- MUST NOT modify the vision artifact. The orchestrator reads direction; it does not set it.\n- MUST NOT delegate to a capability without an active plan task justifying it (except during bootstrap in Step 0).\n- MUST NOT push to any remote. Local operations only.\n- MUST NOT retry a task more than 2 times. After the second failure, mark blocked and move on.\n- MUST NOT skip evaluation. Every completed task must be verified by audit before being marked complete.\n- MUST NOT make implementation decisions. Delegate to the appropriate capability.\n- MUST NOT write to progress, changelog, or other capability-owned artifacts. Dispatched capabilities write their own entries. Orchestrate changes plan lifecycle state only through \u0060agentera state plan set-status ...\u0060 and \u0060agentera state plan archive\u0060.\n- MUST NOT research external patterns or libraries. Delegate to research.\n- MUST NOT mark, infer, or user-confirm final decision satisfaction. Only the user confirms. Preserve caveats for missing, compacted, open, provisional, or review-needed satisfaction state.\n\n</critical>\n\n---\n\n## Exit signals\n\nReport one of these statuses at workflow completion (protocol refs: EX1-EX4).\n\nFormat: emit \u0060⎈ orchestrate · <status>\u0060 on its own line, followed by a summary sentence. For \u0060flagged\u0060 (EX2), \u0060stuck\u0060 (EX3), and \u0060waiting\u0060 (EX4), add a \u0060▸\u0060 (VT15) bullet below the summary identifying what needs attention.\n\n- **complete** (EX1): All plan tasks are complete, the health check passed, and the session concluded with all planned work finished.\n- **flagged** (EX2): The plan was executed but with issues: one or more tasks were blocked after exhausting retries, or the post-plan health check revealed problems. Each concern is listed explicitly.\n- **stuck** (EX3): Cannot proceed because the plan has circular dependencies preventing any task from becoming eligible, no target capabilities are available to delegate, or file access prevents reading or updating artifacts.\n- **waiting** (EX4): No plan exists and the bootstrap chain cannot proceed because the vision artifact is absent and the user has not confirmed how to create one, or a delegated capability returned \u0060waiting\u0060 status requiring user input.\n\n### Loop stop condition\n\nEach task gets max 2 retries before being blocked. Additionally, if 3 consecutive different tasks all fail evaluation (even after their retries), orchestrate stops the session and escalates:\n\n1. **Stop**: do not delegate more tasks.\n2. **Log**: file the pattern to TODO.md with what was attempted across the 3 tasks and what appears systematically wrong.\n3. **Surface**: tell the user and recommend a course of action (e.g., \"⛶ audit for a full audit\", \"❈ discuss to reconsider the plan\", \"the plan may need replanning via ≡ plan\").\n\n---\n\n## Cross-capability integration\n\nOrchestrate is the orchestration layer that chains all other capabilities together. Each active runtime provides its registry-declared subagent substrate: OpenCode: \u0060OpenCode .opencode/agents single primary agent (D73)\u0060; Codex CLI: \u0060Codex ~/.codex/agents TOML descriptors\u0060; Cursor IDE and cursor-agent are one Cursor identity: \u0060Cursor .cursor/agents single agent descriptor (D73)\u0060; Copilot CLI: \u0060Copilot CLI host-managed dispatch\u0060. Orchestrator-side instructions, retry logic, and audit evaluation gating stay unchanged across runtimes; only the concrete delegation surface differs.\n\n### Delegation targets\n\n- **⧉ build**: Implementation, feature, fix, refactor tasks. Build runs its full cycle as a subagent and writes progress and changelog entries.\n- **⛶ audit**: Two roles — evaluator after each task completion (verifying acceptance criteria), and health checker after plan completion (producing health grades). Audit is the discriminator in the evaluate-then-proceed pattern.\n- **▤ document**: Documentation tasks — docs updates, README changes, documentation coverage.\n- **⬚ research**: Research tasks. During bootstrap, orchestrate chains research for vision-gap analysis before plan creates a plan.\n- **⎘ optimize**: Optimization-shaped tasks (metric improvement, performance tuning) route to optimize.\n- **◰ design**: Visual identity tasks (DESIGN.md updates, design token changes).\n- **≡ plan**: When no plan exists or the current plan is complete, orchestrate invokes plan to create the next plan.\n\n### State consumers\n\n- **❈ discuss**: Decision state provides firm constraints during task selection. Preserve \u0060missing_fields\u0060, \u0060compacted\u0060, \u0060caveats\u0060, and \u0060satisfaction.review_needed\u0060 from returned decision entries.\n- **⛺ vision**: Direction context during bootstrap. If vision is missing, preserve the caveat and ask before creating direction.\n- **♾ profile**: Persona context for calibrating delegation. Do not refresh profile state during orchestration; if unavailable, proceed without persona grounding and preserve the caveat.\n\n### When to use orchestrate\n\nExecute an existing plan: create the plan first (\u0060/agentera plan\u0060), then run \u0060/agentera orchestrate\u0060 to execute it with evaluation gating.\n\nFull autonomous session: \u0060/agentera orchestrate\u0060 with no plan triggers bootstrap (research → plan → execute).\n\nAfter a deliberation: \u0060/agentera discuss\u0060 → \u0060/agentera plan\u0060 → \u0060/agentera orchestrate\u0060.\n\nUse orchestrate instead of a host loop for plan-aware, evaluated, multi-cycle execution. Use it when the user explicitly requests autonomous multi-task execution.\n"`);
|
|
3
|
+
export const instructions = JSON.parse(String.raw `"# ORCHESTRATE\n\n**Orchestration Runtime: Knowledge-coordinated Execution Strategy, Targeted Routing. Evaluate, Resolve, Adapt.**\n\nGlyph: ⎈ (protocol ref: SG12).\n\nA meta-orchestrator that delegates capabilities as subagents, evaluates each task with audit, and loops through plans until work is done. The thin orchestrator: reads plans, routes tasks, gates quality. Never touches code. All creativity happens in delegated capabilities; orchestrate follows a deterministic state machine.\n\nEach invocation = one orchestration session. Multiple plan cycles within a single session. In orchestrate only, \u0060dispatch\u0060 and \u0060chain\u0060 are autonomous verbs inside the approved orchestration flow; \u0060suggest\u0060 waits for user confirmation before invoking.\n\n---\n\n## State artifacts\n\nOrchestrate produces no new artifact files. It reads and updates existing artifacts. Normal startup begins from \u0060agentera prime --context orchestrate --format json\u0060.\n\nTrust \u0060orchestration_context.source_contract\u0060. When \u0060complete_for_orchestration_context\u0060 is true, the context is authoritative — no raw plan, progress, health, TODO, or decisions reads for task selection or evaluator handoff. When incomplete, run listed fallback commands before any raw artifact read. Raw reads are last-resort diagnostics, not normal startup.\n\nThe \u0060agentera\u0060 CLI is a state interface. Do not run capability-name commands such as \u0060agentera build\u0060 or \u0060agentera plan\u0060.\n\n| Artifact | Role | Purpose |\n|----------|------|---------|\n| \u0060plan\u0060 | produces_and_consumes | Task queue. Use \u0060orchestration_context.task_queue\u0060 and \u0060selected_next_task\u0060; update status (pending → complete/blocked) only after evaluation. |\n| \u0060progress\u0060 | consumes | Cross-cycle context. Use \u0060orchestration_context.progress_verification\u0060; dispatched capabilities write their own entries. |\n| \u0060health\u0060 | consumes | Health context after plan completion to decide whether to start a new plan. |\n| \u0060todo\u0060 | produces | Blocked task logging. Write when a task exhausts its retry budget. |\n| \u0060decisions\u0060 | consumes | Decision context. Use included caveats or \u0060agentera state decisions list --limit 20 --format json\u0060; preserve \u0060missing_fields\u0060, \u0060compacted\u0060, \u0060caveats\u0060, and \u0060satisfaction.review_needed\u0060. |\n| \u0060vision\u0060 | consumes | Direction context for bootstrap. If missing from context, treat as a caveat. |\n| \u0060profile\u0060 | consumes | Persona context. Preserve stale or missing caveats; do not refresh profile during orchestration. |\n| \u0060docs\u0060 | consumes | Artifact path resolution for write targets. |\n\n### Decision satisfaction authority\n\nWhen orchestration touches decision satisfaction, agents may mark provisional satisfaction with evidence only. Orchestrate MUST NOT mark, infer, or user-confirm final satisfaction; only the user confirms final satisfaction. If decisions are compacted, missing satisfaction state, open, provisional, or review-needed, preserve the caveat and review pressure in dispatch and evaluation context.\n\nVisual tokens: \u0060skills/agentera/protocol.yaml\u0060 (task states VT1-VT4, glyph SG12, exit signals EX1-EX4, severity SI1-SI4, decision labels DL1-DL3).\n\n---\n\n## The orchestration loop\n\nThe orchestrator follows a deterministic state machine. It does not reason creatively about orchestration; it follows the loop.\n\n### Step 0: Assess\n\nStart from \u0060agentera prime --context orchestrate --format json\u0060. Check \u0060orchestration_context.source_contract\u0060, the returned plan summary, and \u0060state_presence\u0060 before considering raw artifacts.\n\n- **No plan in returned state**: bootstrap mode. Delegate to research for vision-gap analysis, then plan for plan creation. If the vision artifact is also absent or caveated, suggest ⛥ vision first and wait for user confirmation.\n- **Plan exists, \u0060header.status: complete\u0060, and all tasks complete**: completed-plan closure. Run the staleness check, archive the plan, then spawn audit for a health check. If clean, chain research then plan for the next plan cycle. Include lineage, staleness findings, health issues, and source-contract caveats as context.\n- **Plan exists, but blocked or incomplete tasks remain**: do not archive it as successful completion. Route to the orchestration loop or replanning so incomplete evidence stays visible.\n- **Plan exists, tasks pending**: proceed to the loop using \u0060orchestration_context\u0060 task selection.\n\n**Staleness check** (plan completion): When all tasks are complete, check whether delegated capabilities updated their expected artifacts.\n\n1. **Identify delegated capabilities** from plan task history and progress summary in CLI context.\n2. **Compare modification dates**: for each expected artifact, check \u0060git log -1 --format=%aI -- <path>\u0060 against the plan's creation date. An artifact is stale if it was not modified since the plan's creation and the owning capability was delegated at least once during the plan.\n3. **Surface findings**: include stale artifact findings as informational context for the next plan cycle. Archive the plan with \u0060agentera state plan archive --format json\u0060. The writer owns immutable archive naming and active-plan removal.\n\n---\n\nStep markers: display \u0060── task N · step M/5: verb\u0060 before each step in the loop. N is the task number from the selected orchestration context task.\n\n### Step 1: Select task\n\nUse \u0060orchestration_context.selected_next_task\u0060 when present. Otherwise, use \u0060orchestration_context.task_queue.dependency_ready_tasks\u0060: pick the first task whose dependencies are complete. Treat \u0060orchestration_context.task_queue.blocked_tasks[*].blocked_reasons\u0060 as the dependency explanation.\n\nIf no tasks are eligible (all remaining tasks are blocked by incomplete dependencies), report \u0060stuck\u0060 with the dependency chain.\n\nUse decision state or caveats from the returned context first. If decisions are missing from startup context, run \u0060agentera state decisions list --limit 20 --format json\u0060. Preserve \u0060missing_fields\u0060, \u0060compacted\u0060, \u0060caveats\u0060, and \u0060satisfaction.review_needed\u0060 in dispatch and evaluation context instead of filling gaps by reconstruction.\n\n### Step 2: Delegate\n\nInfer which capability handles the task based on its description:\n\n| Task signals | Target capability |\n|--------------|-------------------|\n| Implementation, building, coding, feature, fix, refactor | ⧉ build |\n| Documentation, docs, README, CHANGELOG | ▤ document |\n| Health audit, architecture review, code quality check | ⛶ audit |\n| Research, external patterns, library evaluation | ⬚ research |\n| Optimization, performance, metric improvement, benchmark | ⎘ optimize |\n| Visual identity, design tokens, DESIGN.md | ◰ design |\n| Version bump | ⧉ build (with bump instructions from docs artifact) |\n\nIf the task does not clearly map, default to ⧉ build.\n\nSpawn the target capability through the host-provided worker facility. Do not run capability-name CLI commands; the \u0060agentera\u0060 CLI remains a state interface.\n\n\u0060\u0060\u0060\nYou are executing a planned task for [project].\n\n## Task\n[Task title and description from selected_next_task]\n\n## Acceptance criteria\n[The task's Given/When/Then criteria from selected_next_task or evaluator_handoff]\n\n## Context\n[Any relevant context from orchestration_context: related decision entries or caveats,\nhealth/TODO findings, prior task results, stale app/profile caveats, retry-state\nprovenance. Keep brief.]\n\n## Constraints\n- Execute ONLY this task. No scope creep.\n- Follow existing code patterns and conventions.\n- Use the host-provided worker facility (for example, Task) for the selected capability.\n- Commit your changes with a conventional commit message.\n- You are working on a plan-driven task. Update the task status in the plan artifact\n to ■ complete when done.\n\u0060\u0060\u0060\n\nWait for the task-notification result.\n\n### Step 3: Evaluate\n\nEvaluation has two surfaces in sequence: an orchestrator-side presence check using latest progress verification, then an audit delegation whose prompt is extended with an evidence audit. Both surfaces must run before the task can be resolved.\n\n**Surface 1: Presence check from progress verification**\n\nWhen the delegated capability was build (or any capability that produces progress cycle entries), perform a cheap evidence presence check before spawning audit:\n\n1. Start with \u0060orchestration_context.progress_verification\u0060 and its \u0060latest_progress_verification_pointer\u0060.\n2. If unavailable or incomplete, run \u0060agentera state progress list --limit 20 --format json\u0060 before any raw artifact read.\n3. Look for a non-empty \u0060verified\u0060 field in the latest relevant progress entry.\n4. **Present and non-empty**: proceed to Surface 2.\n5. **Missing or empty**: treat the task as a failed evaluation. Go straight into Step 4's FAIL branch with \"missing or empty \u0060verified\u0060 field in progress Cycle N\" as the failure reason.\n\n**Surface 2: Audit delegation with evidence audit**\n\nOnce the presence check passes, spawn audit as a subagent to verify the work:\n\n\u0060\u0060\u0060\nYou are evaluating a completed task for [project].\n\n## Task that was completed\n[Task title and description from evaluator_handoff]\n\n## Acceptance criteria to verify\n[The task's Given/When/Then criteria from evaluator_handoff]\n\n## What to check\n- Verify each acceptance criterion against the current codebase state.\n- Check for unintended side effects from the implementation.\n- Verify the project's test/build suite still passes.\n\n## Verification evidence audit\n- Use the latest progress verification pointer and \u0060verified\u0060 evidence supplied by\n the orchestration context or \u0060agentera state progress list --limit 20 --format json\u0060.\n- Compare the recorded evidence to the task's acceptance criteria.\n- Report whether the evidence substantiates the criteria or is merely trivially\n populated (e.g., \"tests pass\" without any observation of the actual feature\n running counts as insufficient).\n- If the field is \u0060N/A: <tag>\u0060, confirm the tag is drawn from the allowlist\n (\u0060docs-only\u0060, \u0060refactor-no-behavior-change\u0060, \u0060chore-dep-bump\u0060,\n \u0060chore-build-config\u0060, \u0060test-only\u0060) AND that the tag fits the nature of the work.\n- If the field is a free-form N/A rationale, confirm it is at least 8 words long AND\n actually explains why the change has no observable behavior.\n- Flag the task as FAIL on the evidence audit if the recorded \u0060verified\u0060 content\n does not substantiate the acceptance criteria.\n\n## Source-contract caveats to preserve\n- Include compacted decision caveats, stale health/profile/app caveats, missing\n state-family caveats, and retry-state provenance exactly as supplied.\n- Do not treat missing retry attempts as an attempt count. If status is\n \u0060not_recorded\u0060 or \u0060unavailable\u0060, keep that status in the evaluation report.\n\n## Output format\nFor each acceptance criterion, report:\n- status: PASS or FAIL\n- evidence: what you checked and what you found\n- citation: \u0060<file>:<line>\u0060 OR \u0060not-applicable: <reason>\u0060 — **required for every FAIL row**\n- verify_command: exact \u0060grep\u0060 or \u0060git show\u0060 invocation — **required for every FAIL row\n with a file:line citation**; the command must reproduce the evidence at the cited line\n\nUse \u0060orchestration_context.evaluator_handoff.output_requirements\u0060 from prime context as\nthe machine-readable citation contract. FAIL rows without a valid citation are incomplete\nand must be treated as evaluation failures.\n\nThen report the verification evidence audit outcome (PASS or FAIL with reasoning).\n\nThen give an overall verdict: PASS (all criteria met and evidence audit passed) or FAIL\n(any criterion failed or evidence audit failed).\n\u0060\u0060\u0060\n\nWait for the audit verdict.\n\n### Step 4: Resolve\n\nBased on audit's verdict:\n\n**PASS**: Mark the task \u0060■ complete\u0060 (VT1) in the plan artifact (if the delegated capability did not already do so). Proceed to Step 5.\n\n**FAIL (retries < 2)**: Increment the retry count. Re-delegate to the same capability with audit's findings as additional context:\n\n\u0060\u0060\u0060\nYou are retrying a task that failed evaluation for [project].\n\n## Original task\n[Task title and description]\n\n## Acceptance criteria\n[The task's Given/When/Then criteria]\n\n## Evaluation findings (what failed)\n[Audit's failure report with evidence]\n\n## What to fix\nAddress each failure point. All acceptance criteria must pass on re-evaluation.\n\u0060\u0060\u0060\n\nReturn to Step 3.\n\n**FAIL (retries = 2)**: The task has exhausted its retry budget. Mark the task \u0060▨ blocked\u0060 (VT4) in the plan artifact. Log the failure to TODO.md with audit's findings as context. Proceed to Step 5.\n\nWhen writing to the plan artifact or TODO.md, use the task identity and caveats from \u0060orchestration_context\u0060. Do not refresh installed app/profile state, edit the vision artifact, or invent retry attempt counts.\n\n### Step 5: Log and loop\n\nCheck the plan state:\n\n- **More pending tasks with satisfied dependencies?** Return to Step 1.\n- **All tasks complete?** Return to Step 0 for completed-plan closure.\n- **Complete + blocked or incomplete tasks?** Keep the plan active and route to replanning or TODO logging; do not archive as successful completion.\n- **Context approaching budget limit?** Stop the session, report current progress.\n- **User interrupt?** Stop the session, report current progress.\n\n---\n\n## Safety rails\n\n<critical>\n\n- MUST NOT read implementation source code. The orchestrator delegates; it does not implement. Artifact files (\u0060.agentera/*.yaml\u0060, \u0060TODO.md\u0060) are state records, not source code; raw reads are last-resort after CLI context and listed fallback commands.\n- MUST NOT run tests, builds, linters, or implementation project commands directly. Delegated capabilities handle all verification.\n- MUST NOT modify the vision artifact. The orchestrator reads direction; it does not set it.\n- MUST NOT delegate to a capability without an active plan task justifying it (except during bootstrap in Step 0).\n- MUST NOT push to any remote. Local operations only.\n- MUST NOT retry a task more than 2 times. After the second failure, mark blocked and move on.\n- MUST NOT skip evaluation. Every completed task must be verified by audit before being marked complete.\n- MUST NOT make implementation decisions. Delegate to the appropriate capability.\n- MUST NOT write to progress, changelog, or other capability-owned artifacts. Dispatched capabilities write their own entries. Orchestrate changes plan lifecycle state only through \u0060agentera state plan set-status ...\u0060 and \u0060agentera state plan archive\u0060.\n- MUST NOT research external patterns or libraries. Delegate to research.\n- MUST NOT mark, infer, or user-confirm final decision satisfaction. Only the user confirms. Preserve caveats for missing, compacted, open, provisional, or review-needed satisfaction state.\n\n</critical>\n\n---\n\n## Exit signals\n\nReport one of these statuses at workflow completion (protocol refs: EX1-EX4).\n\nFormat: emit \u0060⎈ orchestrate · <status>\u0060 on its own line, followed by a summary sentence. For \u0060flagged\u0060 (EX2), \u0060stuck\u0060 (EX3), and \u0060waiting\u0060 (EX4), add a \u0060▸\u0060 (VT15) bullet below the summary identifying what needs attention.\n\n- **complete** (EX1): All plan tasks are complete, the health check passed, and the session concluded with all planned work finished.\n- **flagged** (EX2): The plan was executed but with issues: one or more tasks were blocked after exhausting retries, or the post-plan health check revealed problems. Each concern is listed explicitly.\n- **stuck** (EX3): Cannot proceed because the plan has circular dependencies preventing any task from becoming eligible, no target capabilities are available to delegate, or file access prevents reading or updating artifacts.\n- **waiting** (EX4): No plan exists and the bootstrap chain cannot proceed because the vision artifact is absent and the user has not confirmed how to create one, or a delegated capability returned \u0060waiting\u0060 status requiring user input.\n\n### Loop stop condition\n\nEach task gets max 2 retries before being blocked. Additionally, if 3 consecutive different tasks all fail evaluation (even after their retries), orchestrate stops the session and escalates:\n\n1. **Stop**: do not delegate more tasks.\n2. **Log**: file the pattern to TODO.md with what was attempted across the 3 tasks and what appears systematically wrong.\n3. **Surface**: tell the user and recommend a course of action (e.g., \"⛶ audit for a full audit\", \"❈ discuss to reconsider the plan\", \"the plan may need replanning via ≡ plan\").\n\n---\n\n## Cross-capability integration\n\nOrchestrate is the orchestration layer that chains all other capabilities together. It delegates through the host-provided worker facility. Every supported runtime discovers Agentera through the canonical shared skill and uses the CLI for behavior and state; Agentera ships no runtime-native delegation descriptors. Orchestrator-side instructions, retry logic, and audit evaluation gating stay unchanged across runtimes; only the host-provided worker facility differs.\n\n### Delegation targets\n\n- **⧉ build**: Implementation, feature, fix, refactor tasks. Build runs its full cycle as a subagent and writes progress and changelog entries.\n- **⛶ audit**: Two roles — evaluator after each task completion (verifying acceptance criteria), and health checker after plan completion (producing health grades). Audit is the discriminator in the evaluate-then-proceed pattern.\n- **▤ document**: Documentation tasks — docs updates, README changes, documentation coverage.\n- **⬚ research**: Research tasks. During bootstrap, orchestrate chains research for vision-gap analysis before plan creates a plan.\n- **⎘ optimize**: Optimization-shaped tasks (metric improvement, performance tuning) route to optimize.\n- **◰ design**: Visual identity tasks (DESIGN.md updates, design token changes).\n- **≡ plan**: When no plan exists or the current plan is complete, orchestrate invokes plan to create the next plan.\n\n### State consumers\n\n- **❈ discuss**: Decision state provides firm constraints during task selection. Preserve \u0060missing_fields\u0060, \u0060compacted\u0060, \u0060caveats\u0060, and \u0060satisfaction.review_needed\u0060 from returned decision entries.\n- **⛺ vision**: Direction context during bootstrap. If vision is missing, preserve the caveat and ask before creating direction.\n- **♾ profile**: Persona context for calibrating delegation. Do not refresh profile state during orchestration; if unavailable, proceed without persona grounding and preserve the caveat.\n\n### When to use orchestrate\n\nExecute an existing plan: create the plan first (\u0060/agentera plan\u0060), then run \u0060/agentera orchestrate\u0060 to execute it with evaluation gating.\n\nFull autonomous session: \u0060/agentera orchestrate\u0060 with no plan triggers bootstrap (research → plan → execute).\n\nAfter a deliberation: \u0060/agentera discuss\u0060 → \u0060/agentera plan\u0060 → \u0060/agentera orchestrate\u0060.\n\nUse orchestrate instead of a host loop for plan-aware, evaluated, multi-cycle execution. Use it when the user explicitly requests autonomous multi-task execution.\n"`);
|
|
4
4
|
export default `${instructions
|
|
5
5
|
.replace(/## State artifacts[\s\S]*?## The orchestration loop/, `## State artifacts
|
|
6
6
|
|
|
@@ -12,7 +12,27 @@ Advance tasks with \`agentera state plan set-status --id ID\` and persist evalua
|
|
|
12
12
|
.replaceAll("--number N", "--id ID")
|
|
13
13
|
.replaceAll("--task N", "--id ID")
|
|
14
14
|
.replace("task N · step M/5", "task ID · step M/5")
|
|
15
|
-
.replace("N is the task number from the selected orchestration context task.", "ID is the bare ID from the selected orchestration context task.")
|
|
15
|
+
.replace("N is the task number from the selected orchestration context task.", "ID is the bare ID from the selected orchestration context task.")
|
|
16
|
+
.replace(/- \*\*Plan exists, `header\.status: complete`, and all tasks complete\*\*:[\s\S]*?---\n\nStep markers/, () => [
|
|
17
|
+
"- **Plan exists, `active: true` and `complete_plan: true`**: terminal-open closure. This is not bootstrap. Keep the plan open while completing the closure sequence; do not call the archive route.",
|
|
18
|
+
"- **Plan exists, but blocked or incomplete tasks remain**: do not complete it as successful work. Route to the orchestration loop or replanning so incomplete evidence stays visible.",
|
|
19
|
+
"- **Plan exists, tasks pending**: proceed to the loop using `orchestration_context` task selection.",
|
|
20
|
+
"",
|
|
21
|
+
"**Terminal-open closure sequence**: complete every step while `active: true` and `complete_plan: true`.",
|
|
22
|
+
"",
|
|
23
|
+
"1. **Assess staleness**: identify delegated capabilities from plan task history and progress summary in CLI context. For each expected artifact, compare `git log -1 --format=%aI -- <path>` with the plan creation date. An artifact is stale only when its owner was delegated and it was not modified since that date.",
|
|
24
|
+
"2. **Delegate Audit**: request a limited post-plan health result covering the staleness assessment and closure evidence. Preserve source-contract caveats and require PASS or WARN/FAIL findings with evidence.",
|
|
25
|
+
"3. **PASS only — publish health before plan completion**: discover `agentera state health explain --verb append --format json`, then publish one typed health record with `agentera state health append --input PATH --format json`. Use only the canonical `artifact_freshness` dimension. Its summary and evidence state the terminal-task scope, staleness result, and Audit verdict; do not represent this limited closure check as a codebase-wide audit.",
|
|
26
|
+
"4. **PASS only — complete the open plan**: after the health writer confirms publication, run `agentera state plan set-plan-status --status complete --format json`. Do not call `agentera state plan archive`; archive history is not part of terminal-open closure.",
|
|
27
|
+
"5. **WARN or FAIL requiring follow-up**: keep the plan open, surface the cited finding and staleness context, and route it to the applicable task/replanning path. Do not publish a PASS closure record, complete the plan, or call an archive route.",
|
|
28
|
+
"",
|
|
29
|
+
"---",
|
|
30
|
+
"",
|
|
31
|
+
"Step markers",
|
|
32
|
+
].join("\n"))
|
|
33
|
+
.replace("- MUST NOT write to progress, changelog, or other capability-owned artifacts. Dispatched capabilities write their own entries. Orchestrate changes plan lifecycle state only through `agentera state plan set-status ...` and `agentera state plan archive`.", "- MUST NOT write to progress or changelog. Dispatched capabilities write their own entries. During terminal-open closure only, Orchestrate may publish the limited typed health record, then change plan lifecycle state through `agentera state plan set-plan-status --status complete --format json`; it MUST NOT invoke the archive route.")
|
|
34
|
+
.replace("- **complete** (EX1): All plan tasks are complete, the health check passed, and the session concluded with all planned work finished.", "- **complete** (EX1): All plan tasks are terminal, the limited health check passed, its typed health record was published, and the open plan was set complete without archiving.")
|
|
35
|
+
.replace("- **≡ plan**: When no plan exists or the current plan is complete, orchestrate invokes plan to create the next plan.", "- **≡ plan**: When no plan exists, including after successful terminal-open closure removes the active plan from selection, orchestrate invokes plan to create the next plan.")}
|
|
16
36
|
|
|
17
37
|
## Evaluation Retry State
|
|
18
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../../../../../home/jgabor/git/agentera/packages/cli/src/capabilities/orchestrate/instructions.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,yFAAyF;AACzF,MAAM,CAAC,MAAM,YAAY,GAAW,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAA,
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../../../../../home/jgabor/git/agentera/packages/cli/src/capabilities/orchestrate/instructions.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,yFAAyF;AACzF,MAAM,CAAC,MAAM,YAAY,GAAW,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAA,ijnBAAijnB,CAAC,CAAC;AAC5mnB,eAAe,GAAG,YAAY;KAC3B,OAAO,CAAC,qDAAqD,EAAE;;;;;;0BAMxC,CAAC;KACxB,UAAU,CAAC,YAAY,EAAE,SAAS,CAAC;KACnC,UAAU,CAAC,UAAU,EAAE,SAAS,CAAC;KACjC,OAAO,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;KAClD,OAAO,CAAC,oEAAoE,EAAE,iEAAiE,CAAC;KAChJ,OAAO,CAAC,uGAAuG,EAAE,GAAG,EAAE,CAAC;IACtH,qMAAqM;IACrM,uLAAuL;IACvL,qGAAqG;IACrG,EAAE;IACF,yGAAyG;IACzG,EAAE;IACF,2TAA2T;IAC3T,iNAAiN;IACjN,gcAAgc;IAChc,sQAAsQ;IACtQ,uPAAuP;IACvP,EAAE;IACF,KAAK;IACL,EAAE;IACF,cAAc;CACf,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACZ,OAAO,CACN,8PAA8P,EAC9P,+UAA+U,CAChV;KACA,OAAO,CACN,uIAAuI,EACvI,kLAAkL,CACnL;KACA,OAAO,CACN,sHAAsH,EACtH,+KAA+K,CAChL;;;;;CAKF,CAAC"}
|
|
@@ -13,6 +13,8 @@ export function slimPlanState(plan) {
|
|
|
13
13
|
.map(taskRef);
|
|
14
14
|
return {
|
|
15
15
|
exists: Boolean(plan.exists),
|
|
16
|
+
active: Boolean(plan.active),
|
|
17
|
+
complete_plan: Boolean(plan.complete_plan),
|
|
16
18
|
id: plan.id ?? null,
|
|
17
19
|
artifact: plan.artifact ?? "plan",
|
|
18
20
|
status: plan.status ?? null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startup.js","sourceRoot":"","sources":["../../../../../../home/jgabor/git/agentera/packages/cli/src/cli/capabilityContext/startup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACnH,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,eAAe,EAEf,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,GACR,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAGrE,MAAM,UAAU,aAAa,CAAC,IAAgB;IAC5C,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC;IACxC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;SAC7B,MAAM,CAAC,CAAC,IAAI,EAAsB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACvG,GAAG,CAAC,OAAO,CAAC,CAAC;IAChB,OAAO;QACL,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,MAA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BAAgB,EAAE,MAAM,CAAC,cAAc;QACvC,cAAc,EAAE,MAAM,CAAC,YAAY;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kCAAkC,CAAC,KAAuB,EAAE,cAAsB,EAAE,OAAO,GAAG,OAAO;IACnH,qFAAqF;IACrF,+DAA+D;IAC/D,MAAM,SAAS,GAAG,KAA8B,CAAC;IACjD,MAAM,YAAY,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnD,MAAM,OAAO,GAAG,kBAAkB,CAAC,SAAS,CAAC,GAAiB,CAAC,CAAC;IAChE,MAAM,OAAO,GAAG,yBAAyB,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;IACrE,OAAO;QACL,OAAO;QACP,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,SAAS,CAAC,YAAY;QACpC,kBAAkB,EAAE,qBAAqB,CACvC,cAAc,EACd,KAAK,CAAC,IAAI,EACV,OAAO;QACP,yGAAyG;QACzG,YAAqC,EACrC,SAAS,CAAC,YAA0B,EACpC,SAAS,CAAC,IAAkB,EAC5B,SAAS,CAAC,IAAkB,EAC5B,SAAS,CAAC,QAAsB,EAChC,SAAS,CAAC,MAAoB,EAC9B,KAAK,CAAC,UAAU,EAChB,SAAS,CAAC,OAAqB,EAC/B,OAAO,CACR;KACF,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"startup.js","sourceRoot":"","sources":["../../../../../../home/jgabor/git/agentera/packages/cli/src/cli/capabilityContext/startup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC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QACL,OAAO;QACP,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,SAAS,CAAC,YAAY;QACpC,kBAAkB,EAAE,qBAAqB,CACvC,cAAc,EACd,KAAK,CAAC,IAAI,EACV,OAAO;QACP,yGAAyG;QACzG,YAAqC,EACrC,SAAS,CAAC,YAA0B,EACpC,SAAS,CAAC,IAAkB,EAC5B,SAAS,CAAC,IAAkB,EAC5B,SAAS,CAAC,QAAsB,EAChC,SAAS,CAAC,MAAoB,EAC9B,KAAK,CAAC,UAAU,EAChB,SAAS,CAAC,OAAqB,EAC/B,OAAO,CACR;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { appModelPayload, REQUIRED_SPARSE_CONTEXT_FIELDS, ROUTINE_STRUCTURED_FIE
|
|
|
7
7
|
import { artifactLocationContract } from "./query.js";
|
|
8
8
|
import { stateWriterArtifactContract, stateWriterContract } from "../../state/write/operations.js";
|
|
9
9
|
import { CANONICAL_SHARED_SKILL_PATH } from "../../setup/sharedSkill.js";
|
|
10
|
-
import {
|
|
10
|
+
import { loadNativeResourceCleanupContract, nativeResourceCleanupIds, } from "../../runtime/nativeResourceCleanup.js";
|
|
11
11
|
import { entityPublicRetrieval, loadStateRetrievalAuthority } from "../../state/retrievalAuthority.js";
|
|
12
12
|
import { entityMigrationAuthorityProjection } from "../../state/entityMigrationPreview.js";
|
|
13
13
|
export const TRANSITIONAL_TOP_LEVEL_ALIASES = [
|
|
@@ -101,7 +101,7 @@ const COMMAND_DESCRIPTIONS = {
|
|
|
101
101
|
verify: "Deprecated alias for check verify. Run bounded verification families.",
|
|
102
102
|
stats: "Deprecated alias for report. Read or refresh privacy-gated usage analytics.",
|
|
103
103
|
validate: "Deprecated alias for check validate. Validate capabilities and repository contracts.",
|
|
104
|
-
upgrade: "Preview or apply app and project-state migration, including recognized v2 rewiring, or explicit
|
|
104
|
+
upgrade: "Preview or apply app and project-state migration, including recognized v2 rewiring, or explicit native Agentera resource cleanup.",
|
|
105
105
|
doctor: "Check Agentera CLI, app, shared-skill, and project-integration status.",
|
|
106
106
|
};
|
|
107
107
|
function availableStructuredFields(command) {
|
|
@@ -375,7 +375,7 @@ export function buildSchemaPayload(command = "schema") {
|
|
|
375
375
|
artifactLocations[String(entry.name)] = entry;
|
|
376
376
|
const [artifactSchemas, schemaGaps] = describeArtifactSchemas(schemasDir, schemas, appModel, artifactLocations);
|
|
377
377
|
gaps.push(...schemaGaps);
|
|
378
|
-
const
|
|
378
|
+
const nativeResourceCleanup = loadNativeResourceCleanupContract();
|
|
379
379
|
const retrievalAuthority = loadStateRetrievalAuthority();
|
|
380
380
|
const slashAliases = contractSection(contract, "slash_route_aliases", gaps);
|
|
381
381
|
const doctorContract = contractSection(contract, "doctor", gaps);
|
|
@@ -411,27 +411,25 @@ export function buildSchemaPayload(command = "schema") {
|
|
|
411
411
|
},
|
|
412
412
|
supported_routes: {
|
|
413
413
|
v2_migration: "agentera upgrade --channel development --project PROJECT --dry-run|--yes",
|
|
414
|
-
|
|
414
|
+
native_resource_cleanup: "agentera upgrade --legacy-cleanup RESOURCE_ID --dry-run|--yes",
|
|
415
|
+
},
|
|
416
|
+
native_resource_cleanup: {
|
|
417
|
+
contract: nativeResourceCleanup.sourcePath,
|
|
418
|
+
selection: "native_agentera_resource_only",
|
|
419
|
+
resource_ids: nativeResourceCleanupIds(nativeResourceCleanup),
|
|
420
|
+
preview: "strictly_read_only",
|
|
421
|
+
apply_requires: "explicit_approval",
|
|
422
|
+
ownership: "matching whole-resource ledger identity and fingerprint",
|
|
423
|
+
shared_configuration_without_key_ledger: "action_required",
|
|
424
|
+
},
|
|
425
|
+
historical_import: {
|
|
426
|
+
source: "claude",
|
|
427
|
+
import_flag: "--import-source claude",
|
|
428
|
+
source_class: "historical_import",
|
|
429
|
+
default_view: "excluded",
|
|
430
|
+
all_sources_view: "--sources all",
|
|
431
|
+
sensitivity_warning: "Transcripts can contain secrets, file contents, and command output; import is local and read-only.",
|
|
415
432
|
},
|
|
416
|
-
retired_runtime_inputs: retiredRuntimeCleanup.runtimes.map((runtime) => ({
|
|
417
|
-
id: runtime.id,
|
|
418
|
-
active_runtime: false,
|
|
419
|
-
source_product: runtime.sourceProduct,
|
|
420
|
-
cleanup_contract: retiredRuntimeCleanup.sourcePath,
|
|
421
|
-
cleanup: {
|
|
422
|
-
preview: "strictly_read_only",
|
|
423
|
-
apply_requires: "explicit_approval",
|
|
424
|
-
ownership: "matching legacy ledger identity and fingerprint",
|
|
425
|
-
},
|
|
426
|
-
analytics: {
|
|
427
|
-
import_flag: "--import-source claude",
|
|
428
|
-
source_class: "historical_import",
|
|
429
|
-
active_runtime: false,
|
|
430
|
-
default_view: "excluded",
|
|
431
|
-
all_sources_view: "--sources all",
|
|
432
|
-
sensitivity_warning: "Transcripts can contain secrets, file contents, and command output; import is local and read-only.",
|
|
433
|
-
},
|
|
434
|
-
})),
|
|
435
433
|
},
|
|
436
434
|
routine_state_commands: ROUTINE_STATE_COMMANDS,
|
|
437
435
|
structured_output: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../../home/jgabor/git/agentera/packages/cli/src/cli/commands/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAc,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACL,eAAe,EACf,8BAA8B,EAC9B,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAA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AAC,IAAI,IAAI,SAAS,CAAC;gBACpC,CAAC,CAAC,SAAS;YACb,QAAQ,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACrF,iBAAiB,EAAE,MAAM,CAAC,cAAc,CAAC;gBACvC,CAAC,CAAC,CAAC,cAAc,CAAC,iBAAiB,IAAI,SAAS,CAAC;gBACjD,CAAC,CAAC,SAAS;YACb,YAAY,EAAE,mBAAmB;YACjC,kBAAkB,EAAE,cAAc;YAClC,gBAAgB,EAAE,2BAA2B;SAC9C;QACD,IAAI;KACL,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,IAAyB,EAAE,EAAM;IACzD,MAAM,GAAG,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,cAAc,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM,IAAI,MAAM,EAAE,GAAG,CAAC,CAAC;IACzE,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../../home/jgabor/git/agentera/packages/cli/src/cli/commands/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAc,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACL,eAAe,EACf,8BAA8B,EAC9B,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,kBAA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AAC;gBAC3C,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,IAAI,SAAS,CAAC;gBACpC,CAAC,CAAC,SAAS;YACb,QAAQ,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACrF,iBAAiB,EAAE,MAAM,CAAC,cAAc,CAAC;gBACvC,CAAC,CAAC,CAAC,cAAc,CAAC,iBAAiB,IAAI,SAAS,CAAC;gBACjD,CAAC,CAAC,SAAS;YACb,YAAY,EAAE,mBAAmB;YACjC,kBAAkB,EAAE,cAAc;YAClC,gBAAgB,EAAE,2BAA2B;SAC9C;QACD,IAAI;KACL,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,IAAyB,EAAE,EAAM;IACzD,MAAM,GAAG,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,cAAc,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM,IAAI,MAAM,EAAE,GAAG,CAAC,CAAC;IACzE,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -57,7 +57,7 @@ export function cmdUpgrade(args, io = {}, dependencies = {}) {
|
|
|
57
57
|
if (orchestratorArgs.runtime) {
|
|
58
58
|
err(`upgrade error: --runtime ${orchestratorArgs.runtime} is retired; Agentera now uses the shared skill at ` +
|
|
59
59
|
"~/.agents/skills/agentera plus the CLI. Remove --runtime and rerun. " +
|
|
60
|
-
"For explicit Agentera-owned
|
|
60
|
+
"For explicit Agentera-owned native resource cleanup, use --legacy-cleanup RESOURCE_ID.\n");
|
|
61
61
|
return 2;
|
|
62
62
|
}
|
|
63
63
|
if (orchestratorArgs.yes && orchestratorArgs.dryRun) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../../../../../../home/jgabor/git/agentera/packages/cli/src/cli/commands/upgrade.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,oBAAoB,GAGrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,GAGd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAuB5E,mDAAmD;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,wBAAwB,CAAC;AAExD,SAAS,kBAAkB,CAAC,IAAiB;IAC3C,OAAO;QACL,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI;QACrC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI;QACvB,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI;QAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI;QAC7B,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,KAAK;QACtB,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;QAC5B,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;QAC1D,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,KAAK;QAC1B,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI;QAC7B,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,IAAI;KAC1C,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,IAAiB;IACxC,OAAO;QACL,WAAW,EAAE,IA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AC,GAAG,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,MAAM,GAAG,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAElD,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;QAC7B,GAAG,CACD,4BAA4B,gBAAgB,CAAC,OAAO,qDAAqD;YACzG,sEAAsE;YACtE,
|
|
1
|
+
{"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../../../../../../home/jgabor/git/agentera/packages/cli/src/cli/commands/upgrade.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,oBAAoB,GAGrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,GAGd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAuB5E,mDAAmD;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,wBAAwB,CAAC;AAExD,SAAS,kBAAkB,CAAC,IAAiB;IAC3C,OAAO;QACL,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI;QACrC,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI;QACvB,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI;QAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI;QAC7B,GAAG,EAAE,IAAI,CAAC,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E,CAAC;YACb,GAAG,CAAC,kBAAmB,GAAa,CAAC,OAAO,IAAI,CAAC,CAAC;YAClD,OAAO,CAAC,CAAC;QACX,CAAC;QACD,GAAG,CAAC,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QACxC,IAAI,CAAC,MAAM,CAAC,MAAM;YAAE,IAAI,GAAG,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAGD,OAAO,IAAI,MAAM,WAAW,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import { readdirSync as fsReaddirSync,
|
|
2
|
+
import { readdirSync as fsReaddirSync, statSync as fsStatSync } from "node:fs";
|
|
3
3
|
import { resolvePath } from "../../core/paths.js";
|
|
4
4
|
import { resolveSourceRoot } from "../../core/sourceRoot.js";
|
|
5
5
|
import { validateAgentString, validatePathValue } from "../argvalidate.js";
|
|
6
6
|
import { HookCliAdapter } from "../../hooks/validateArtifact/index.js";
|
|
7
7
|
import { validateCapability, validateContractSelf, validateProtocolSelf } from "../../validate/capability.js";
|
|
8
8
|
import { loadYamlMapping } from "../../core/yaml.js";
|
|
9
|
-
import { parseToml as parseTomlValidate } from "../../core/toml.js";
|
|
10
9
|
import { validateGraph } from "../../validate/crossCapability.js";
|
|
11
10
|
import { validate as validateAppHome } from "../../validate/appHomeContract.js";
|
|
12
11
|
import { selfAuditMain } from "../../validate/selfAudit.js";
|
|
@@ -107,7 +106,7 @@ export function cmdValidate(family, args, io) {
|
|
|
107
106
|
const out = io.out ?? ((t) => process.stdout.write(t));
|
|
108
107
|
const err = io.err ?? ((t) => process.stderr.write(t));
|
|
109
108
|
if (!(family in DELEGATED_RUNNERS)) {
|
|
110
|
-
throw new Error("unsupported validate target family; valid families: capability, artifact,
|
|
109
|
+
throw new Error("unsupported validate target family; valid families: capability, artifact, " +
|
|
111
110
|
"cross-capability, app-home-contract, vocabularyAuthority, selfAudit, release-metadata, capability-contract.");
|
|
112
111
|
}
|
|
113
112
|
const result = DELEGATED_RUNNERS[family](args);
|
|
@@ -317,122 +316,6 @@ export function cmdValidateCapabilityContract(args, io) {
|
|
|
317
316
|
}
|
|
318
317
|
return results.every(([, r]) => r.returncode === 0) ? 0 : 1;
|
|
319
318
|
}
|
|
320
|
-
// ── descriptors family ──────────────────────────────────────────────
|
|
321
|
-
function pySplitlinesText(s) {
|
|
322
|
-
return s.split(/\r\n|\r|\n/);
|
|
323
|
-
}
|
|
324
|
-
function descriptorValidationPayload() {
|
|
325
|
-
const sourceRoot = resolveSourceRoot();
|
|
326
|
-
const codexDir = path.join(sourceRoot, "skills", "agentera", "agents");
|
|
327
|
-
const classificationPath = path.join(sourceRoot, "references", "cli", "capability-tool-classification.yaml");
|
|
328
|
-
const checks = [];
|
|
329
|
-
const violations = [];
|
|
330
|
-
let capPermissions = {};
|
|
331
|
-
try {
|
|
332
|
-
// cast: classificationData is a parsed YAML mapping (YAML IO boundary); subsequent
|
|
333
|
-
// categoryData/capData casts traverse that parsed classification structure.
|
|
334
|
-
const classificationData = loadYamlMapping(fsReadFileSync(classificationPath, "utf8"));
|
|
335
|
-
capPermissions = {};
|
|
336
|
-
for (const categoryData of Object.values(classificationData.classification)) {
|
|
337
|
-
for (const [capability, capData] of Object.entries(categoryData.capabilities)) {
|
|
338
|
-
capPermissions[capability] = capData.permission;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
catch (exc) {
|
|
343
|
-
violations.push(`classification authority: failed to load classification: ${exc.message}`);
|
|
344
|
-
capPermissions = {};
|
|
345
|
-
}
|
|
346
|
-
for (const name of CAPABILITY_NAMES) {
|
|
347
|
-
const codexPath = path.join(codexDir, `${name}.toml`);
|
|
348
|
-
let check = { runtime: "codex", capability: name, path: codexPath, status: "pass" };
|
|
349
|
-
let text;
|
|
350
|
-
let parsed;
|
|
351
|
-
try {
|
|
352
|
-
text = fsReadFileSync(codexPath, "utf8");
|
|
353
|
-
// cast: parseTomlValidate result of a managed codex descriptor (TOML IO boundary)
|
|
354
|
-
parsed = parseTomlValidate(text);
|
|
355
|
-
}
|
|
356
|
-
catch (exc) {
|
|
357
|
-
check = { ...check, status: "fail", message: exc.message };
|
|
358
|
-
violations.push(`codex ${name}: ${exc.message}`);
|
|
359
|
-
checks.push(check);
|
|
360
|
-
continue;
|
|
361
|
-
}
|
|
362
|
-
const expectedRef = `agentera prime --context ${name} --format json`;
|
|
363
|
-
const legacyRef = `capabilities/${name}/instructions.md`;
|
|
364
|
-
if (parsed.name !== name) {
|
|
365
|
-
check = { ...check, status: "fail", message: "name field does not match capability" };
|
|
366
|
-
violations.push(`codex ${name}: name field must be ${name}`);
|
|
367
|
-
}
|
|
368
|
-
else if (typeof parsed.description !== "string" || !parsed.description.trim()) {
|
|
369
|
-
check = { ...check, status: "fail", message: "description is required" };
|
|
370
|
-
violations.push(`codex ${name}: description is required`);
|
|
371
|
-
}
|
|
372
|
-
else if (typeof parsed.developer_instructions !== "string" || !parsed.developer_instructions.includes(expectedRef)) {
|
|
373
|
-
check = { ...check, status: "fail", message: "developer_instructions must reference capability instructions" };
|
|
374
|
-
violations.push(`codex ${name}: developer_instructions must reference ${expectedRef}`);
|
|
375
|
-
}
|
|
376
|
-
else if (typeof parsed.developer_instructions === "string" && parsed.developer_instructions.includes(legacyRef)) {
|
|
377
|
-
check = { ...check, status: "fail", message: "developer_instructions must not reference the retired on-disk instructions.md" };
|
|
378
|
-
violations.push(`codex ${name}: developer_instructions must not reference ${legacyRef} (use the prime --context command)`);
|
|
379
|
-
}
|
|
380
|
-
else if (!pySplitlinesText(text).slice(0, 5).includes("# agentera_managed: true")) {
|
|
381
|
-
check = { ...check, status: "fail", message: "managed marker is required" };
|
|
382
|
-
violations.push(`codex ${name}: managed marker is required`);
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
const devInst = parsed.developer_instructions;
|
|
386
|
-
// cast: capPermissions entry is read from the parsed classification YAML (IO boundary)
|
|
387
|
-
const expectedPermission = (capPermissions[name] ?? {});
|
|
388
|
-
if (expectedPermission && Object.keys(expectedPermission).length > 0) {
|
|
389
|
-
let expectedGuidance;
|
|
390
|
-
if (expectedPermission.write === "allow" && expectedPermission.bash === "allow") {
|
|
391
|
-
expectedGuidance = "You have full file write, file edit, and shell execution tools available";
|
|
392
|
-
}
|
|
393
|
-
else if (expectedPermission.write === "allow" && expectedPermission.bash === "deny") {
|
|
394
|
-
expectedGuidance =
|
|
395
|
-
"You have file write and file edit tools available to create or update files, but shell execution is disabled";
|
|
396
|
-
}
|
|
397
|
-
else {
|
|
398
|
-
expectedGuidance = "You are a read-only agent \u2014 do not write files or execute shell commands";
|
|
399
|
-
}
|
|
400
|
-
if (!devInst.includes(expectedGuidance)) {
|
|
401
|
-
check = { ...check, status: "fail", message: `developer_instructions must contain guidance '${expectedGuidance}'` };
|
|
402
|
-
violations.push(`codex ${name}: developer_instructions must contain guidance '${expectedGuidance}'`);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
checks.push(check);
|
|
407
|
-
}
|
|
408
|
-
return {
|
|
409
|
-
command: "validate",
|
|
410
|
-
status: violations.length > 0 ? "fail" : "pass",
|
|
411
|
-
target_family: "descriptors",
|
|
412
|
-
target: "agent-descriptors",
|
|
413
|
-
checks,
|
|
414
|
-
violations,
|
|
415
|
-
summary: {
|
|
416
|
-
passed: checks.filter((c) => c.status === "pass").length,
|
|
417
|
-
failed: checks.filter((c) => c.status === "fail").length,
|
|
418
|
-
},
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
export function cmdValidateDescriptors(args, io) {
|
|
422
|
-
const out = io.out ?? ((t) => process.stdout.write(t));
|
|
423
|
-
const err = io.err ?? ((t) => process.stderr.write(t));
|
|
424
|
-
const payload = descriptorValidationPayload();
|
|
425
|
-
if ((args.format ?? "text") === "json") {
|
|
426
|
-
emitStructured(payload, "json", out);
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
// cast: payload.summary/violations derive from parsed codex TOML + classification YAML (IO boundary)
|
|
430
|
-
out(`descriptor validation ${payload.status}: ${payload.summary.passed} passed, ${payload.summary.failed} failed\n`);
|
|
431
|
-
for (const violation of payload.violations)
|
|
432
|
-
err(`- ${violation}\n`);
|
|
433
|
-
}
|
|
434
|
-
return payload.status === "pass" ? 0 : 1;
|
|
435
|
-
}
|
|
436
319
|
// ── artifact family ─────────────────────────────────────────────────
|
|
437
320
|
function validateArtifactLabel(artifact) {
|
|
438
321
|
validateAgentString(artifact, "artifact");
|