@tea-agent/loop-agent 0.1.0-fe-test.4 → 0.1.0-fe-test.6
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/AGENTS.md +1 -1
- package/CHANGELOG.md +442 -2524
- package/README.md +19 -12
- package/dist/adapters/loop-agent.js +34 -0
- package/dist/application/dag/args.js +8 -0
- package/dist/application/dag/run-dag.js +5 -0
- package/dist/application/evaluation/budget.js +40 -1
- package/dist/application/evaluation/corpus-hash.js +10 -15
- package/dist/application/evaluation/corpus.js +2 -1
- package/dist/application/evaluation/frontend-browser-acceptance.js +77 -0
- package/dist/application/evaluation/frontend-corpus-browser-acceptance.js +175 -0
- package/dist/application/evaluation/frontend-gateway-evidence.js +226 -0
- package/dist/application/evaluation/frontend-pair-registration.js +143 -0
- package/dist/application/evaluation/frontend-paired-summary.js +150 -0
- package/dist/application/evaluation/frontend-run-observation.js +144 -0
- package/dist/application/evaluation/frontend-shared-evidence.js +105 -0
- package/dist/application/evaluation/types.js +45 -12
- package/dist/application/task-lifecycle/advance.js +64 -15
- package/dist/application/task-lifecycle/observe.js +69 -30
- package/dist/application/task-lifecycle/plan-transitions.js +5 -4
- package/dist/build-stamp.json +3 -3
- package/dist/cli/command-definitions.js +18 -5
- package/dist/cli/program.js +8 -5
- package/dist/cli/update/init-surface-notifier.js +2 -0
- package/dist/cli/update/policy.js +2 -0
- package/dist/commands/client-recovery.js +20 -55
- package/dist/commands/cursor-prompt.js +2 -0
- package/dist/commands/dag-approve.js +2 -0
- package/dist/commands/dag-final-verification.js +2 -0
- package/dist/commands/dag-init-hybrid.js +2 -0
- package/dist/commands/dag-reconcile-tasks.js +2 -0
- package/dist/commands/dag-reject.js +2 -0
- package/dist/commands/dag-report.js +2 -0
- package/dist/commands/dag-rerun.js +2 -0
- package/dist/commands/dag-resume.js +2 -0
- package/dist/commands/dag-workflow-compile.js +2 -0
- package/dist/commands/dag-workflow-plan.js +2 -0
- package/dist/commands/dag-workflow-validate.js +2 -0
- package/dist/commands/delegate.js +2 -0
- package/dist/commands/examples.js +2 -0
- package/dist/commands/import-prd.js +2 -0
- package/dist/commands/init-legacy-audit.js +330 -0
- package/dist/commands/init-model-catalog.js +2 -0
- package/dist/commands/init-upgrade.js +644 -104
- package/dist/commands/init.js +700 -338
- package/dist/commands/instructions.js +2 -0
- package/dist/commands/knowledge.js +2 -0
- package/dist/commands/loop-benchmark.js +2 -0
- package/dist/commands/operator-guide.js +99 -0
- package/dist/commands/operator.js +16 -3
- package/dist/commands/pi-prompt.js +2 -0
- package/dist/commands/pi-reuse-benchmark.js +2 -0
- package/dist/commands/promote-run.js +2 -0
- package/dist/commands/stats.js +1 -1
- package/dist/commands/study-init.js +2 -0
- package/dist/commands/task-advance.js +32 -0
- package/dist/commands/task-source-prepare.js +18 -2
- package/dist/commands/worktree-create.js +2 -0
- package/dist/commands/worktree-remove.js +2 -0
- package/dist/executors/dag-pi/guards.js +4 -0
- package/dist/executors/dag-pi/model-config.js +30 -0
- package/dist/executors/dag-pi/plan/fact-adoption.js +55 -0
- package/dist/executors/dag-pi/plan/facts.js +180 -0
- package/dist/executors/dag-pi/plan/finalize-tools.js +259 -0
- package/dist/executors/dag-pi/plan/ledger-contract.js +55 -0
- package/dist/executors/dag-pi/plan/record-tools.js +861 -0
- package/dist/executors/dag-pi/plan/schema.js +129 -0
- package/dist/executors/dag-pi/plan/tool-helpers.js +16 -0
- package/dist/executors/dag-pi/sessions/index.js +6 -0
- package/dist/executors/dag-pi/sessions/plan-batches.js +280 -0
- package/dist/executors/dag-pi/sessions/plan-prompts.js +367 -0
- package/dist/executors/dag-pi/sessions/scout-parallel.js +197 -0
- package/dist/executors/dag-pi/sessions/segmented-plan.js +1184 -0
- package/dist/executors/dag-pi/sessions/writer-evidence.js +60 -0
- package/dist/executors/dag-pi/tools/contract-tools.js +515 -0
- package/dist/executors/dag-pi/tools/design-terminal-tools.js +159 -0
- package/dist/executors/dag-pi/tools/plan-decision-tools.js +529 -0
- package/dist/executors/dag-pi/tools/review-terminal-tools.js +159 -0
- package/dist/executors/dag-pi/tools/scout-evidence-tools.js +270 -0
- package/dist/executors/dag-pi-executor.js +1517 -3180
- package/dist/executors/pi-executor.js +112 -4
- package/dist/executors/pi-sdk-executor.js +258 -44
- package/dist/executors/pi-writer-tool-policy.js +60 -4
- package/dist/executors/playwright-cli-launcher.js +31 -45
- package/dist/executors/shell-executor.js +358 -48
- package/dist/executors/shell-presets.js +1 -1
- package/dist/executors/shell-verification.js +3 -0
- package/dist/executors/shell-write-guard.js +77 -102
- package/dist/governance/exec-plans.js +16 -4
- package/dist/governance/harness.js +2 -7
- package/dist/governance/manifest-types.js +28 -9
- package/dist/governance/project-capability-scanner.js +263 -0
- package/dist/governance/project-config.js +96 -0
- package/dist/governance/resource-catalog.js +151 -0
- package/dist/infrastructure/console/app-data.js +12 -2
- package/dist/infrastructure/console/operation-store.js +48 -14
- package/dist/infrastructure/evaluation/corpus-store.js +37 -12
- package/dist/shared/artifacts-core.js +2 -0
- package/dist/shared/backend-dogfood-preflight.js +47 -0
- package/dist/shared/dag-failure-category.js +9 -0
- package/dist/shared/file-identity.js +23 -0
- package/dist/shared/frontend-execution-policy.js +23 -0
- package/dist/shared/git-progress.js +2 -0
- package/dist/shared/git-workspace-status.js +482 -0
- package/dist/shared/one-shot-prompt-args.js +2 -0
- package/dist/shared/operator/capabilities.js +185 -0
- package/dist/shared/package-metadata.js +29 -11
- package/dist/shared/path-safety.js +2 -2
- package/dist/shared/pi-context-pressure/extension.js +49 -16
- package/dist/shared/pi-context-pressure/index.js +1 -0
- package/dist/shared/pi-context-pressure/sift-bridge.js +1 -1
- package/dist/shared/pi-context-pressure/telemetry.js +4 -0
- package/dist/shared/pi-context-pressure/tool-result-pruner.js +98 -0
- package/dist/shared/pi-provider-recovery.js +182 -0
- package/dist/shared/pi-retry-settings.js +40 -0
- package/dist/shared/reference-context.js +2 -0
- package/dist/shared/update/npm-client.js +49 -1
- package/dist/shared/wizard-local-telemetry.js +51 -0
- package/dist/task/config-types.js +51 -2
- package/dist/task/contract/apply.js +36 -2
- package/dist/task/contract/project.js +22 -0
- package/dist/task/contract/recover.js +6 -0
- package/dist/task/contract/schema.js +12 -0
- package/dist/task/frontend-preflight.js +1 -1
- package/dist/task/source-prepare/artifact-meta.js +9 -2
- package/dist/task/source-prepare/build-draft.js +61 -0
- package/dist/task/source-prepare/fragment-inventory.js +4 -1
- package/dist/task/source-prepare/ledger-reconciliation.js +2 -2
- package/dist/task/source-prepare/ledger-review.js +6 -9
- package/dist/task/source-prepare/parse-intent.js +165 -14
- package/dist/task/source-prepare/path-policy.js +17 -7
- package/dist/task/source-prepare/prepare.js +6 -1
- package/dist/task/source-prepare/semantic-intake.js +33 -28
- package/dist/task/source-prepare/source-execution.js +65 -0
- package/dist/task/source-prepare/source-fidelity-pi.js +49 -17
- package/dist/task/source-prepare/source-provider-budget.js +290 -0
- package/dist/task/source-references.js +48 -23
- package/dist/task/task-demand-routing.js +5 -2
- package/dist/worker/cli.js +3 -5
- package/dist/worker/console/chat/assistant-content.js +5 -13
- package/dist/worker/console/chat/browser-automation.js +937 -0
- package/dist/worker/console/chat/browser-content.js +74 -0
- package/dist/worker/console/chat/browser-diagnostics.js +250 -0
- package/dist/worker/console/chat/browser-evaluation.js +58 -0
- package/dist/worker/console/chat/browser-operation-queue.js +19 -0
- package/dist/worker/console/chat/browser-pick.js +113 -0
- package/dist/worker/console/chat/browser-policy.js +113 -0
- package/dist/worker/console/chat/browser-routes.js +329 -0
- package/dist/worker/console/chat/browser-screenshot-result.js +47 -0
- package/dist/worker/console/chat/browser-storage.js +89 -0
- package/dist/worker/console/chat/chat-event-store.js +73 -18
- package/dist/worker/console/chat/context-insights.js +788 -0
- package/dist/worker/console/chat/conversation-nodes.js +383 -0
- package/dist/worker/console/chat/db-connections.js +854 -0
- package/dist/worker/console/chat/explore-tools.js +18 -2
- package/dist/worker/console/chat/pet/pet-affinity.js +169 -0
- package/dist/worker/console/chat/pet/pet-persist.js +109 -0
- package/dist/worker/console/chat/pet/pet-registry.js +142 -0
- package/dist/worker/console/chat/pet/pet-remarks.js +48 -0
- package/dist/worker/console/chat/pet/pet-routes.js +125 -0
- package/dist/worker/console/chat/pet/pet-service.js +262 -0
- package/dist/worker/console/chat/pet/pet-state.js +99 -0
- package/dist/worker/console/chat/pi-mode-loop-isolation.js +170 -0
- package/dist/worker/console/chat/pi-runtime/custom-tools/ask-user-question.js +44 -0
- package/dist/worker/console/chat/pi-runtime/custom-tools/browser-tools.js +135 -0
- package/dist/worker/console/chat/pi-runtime/custom-tools/explore-tools.js +202 -0
- package/dist/worker/console/chat/pi-runtime/custom-tools/goal-tools.js +79 -0
- package/dist/worker/console/chat/pi-runtime/custom-tools/operator-tools.js +94 -0
- package/dist/worker/console/chat/pi-runtime/custom-tools/scheduled-goal-tools.js +22 -0
- package/dist/worker/console/chat/pi-runtime/custom-tools/sql-tools.js +670 -0
- package/dist/worker/console/chat/pi-runtime/custom-tools/todo-write.js +38 -0
- package/dist/worker/console/chat/pi-runtime/inspection-types.js +28 -0
- package/dist/worker/console/chat/pi-runtime/inspection.js +439 -0
- package/dist/worker/console/chat/pi-runtime/progressive-tools.js +195 -0
- package/dist/worker/console/chat/pi-runtime/sdk-bindings.js +153 -0
- package/dist/worker/console/chat/pi-runtime/sdk-session.js +5 -0
- package/dist/worker/console/chat/pi-runtime.js +793 -1230
- package/dist/worker/console/chat/provider-error.js +0 -12
- package/dist/worker/console/chat/repo-browser.js +132 -6
- package/dist/worker/console/chat/repo-preview-kind.js +155 -0
- package/dist/worker/console/chat/resource-loader.js +4 -1
- package/dist/worker/console/chat/routes.js +861 -148
- package/dist/worker/console/chat/scheduled-goal-booking.js +59 -0
- package/dist/worker/console/chat/scheduled-goal-delivery.js +27 -0
- package/dist/worker/console/chat/scheduled-goal-request.js +198 -0
- package/dist/worker/console/chat/scm-routes.js +217 -0
- package/dist/worker/console/chat/scm-service.js +283 -0
- package/dist/worker/console/chat/scm-tools.js +111 -0
- package/dist/worker/console/chat/sdd-data-alignment.js +85 -41
- package/dist/worker/console/chat/session-catalog.js +32 -0
- package/dist/worker/console/chat/session-mode-view.js +49 -0
- package/dist/worker/console/chat/session-mode.js +224 -0
- package/dist/worker/console/chat/session-store.js +232 -32
- package/dist/worker/console/chat/shortcuts.js +13 -0
- package/dist/worker/console/chat/subagents/agent-tool.js +62 -0
- package/dist/worker/console/chat/subagents/explore-agent.js +169 -0
- package/dist/worker/console/chat/subagents/index.js +5 -0
- package/dist/worker/console/chat/subagents/orchestrator.js +273 -0
- package/dist/worker/console/chat/subagents/tool-policy.js +53 -0
- package/dist/worker/console/chat/subagents/types.js +13 -0
- package/dist/worker/console/chat/terminal-routes.js +216 -0
- package/dist/worker/console/chat/terminal-sessions.js +348 -0
- package/dist/worker/console/chat/terminal-tools.js +211 -0
- package/dist/worker/console/chat/timeline-message-order.js +22 -0
- package/dist/worker/console/chat/tool-preview.js +136 -0
- package/dist/worker/console/chat/tools.js +69 -1
- package/dist/worker/console/chat/turn-order.js +13 -0
- package/dist/worker/console/chat/turn-process.js +210 -36
- package/dist/worker/console/chat/user-turn-outline.js +19 -0
- package/dist/worker/console/console-shutdown.js +34 -0
- package/dist/worker/console/console-update-and-init.js +1 -19
- package/dist/worker/console/console-update-runtime.js +7 -22
- package/dist/worker/console/dag-confirmation.js +3 -0
- package/dist/worker/console/dag-execution-receipt.js +3 -0
- package/dist/worker/console/interview/tools.js +1 -0
- package/dist/worker/console/operator-actions.js +95 -4
- package/dist/worker/console/operator-user-error.js +28 -1
- package/dist/worker/console/pi-readiness.js +4 -4
- package/dist/worker/console/prd-intake-bridge.js +47 -1
- package/dist/worker/console/recovery-cta.js +14 -14
- package/dist/worker/console/routes.js +13 -0
- package/dist/worker/console/scheduled-goal-host.js +98 -0
- package/dist/worker/console/scheduled-goal-operation-adapter.js +127 -0
- package/dist/worker/console/server.js +33 -31
- package/dist/worker/console/static/app-icon.svg +39 -0
- package/dist/worker/console/static/assets/{abnfDiagram-N423BO3Z-BZogYNl1.js → abnfDiagram-N423BO3Z-DASc69AM.js} +1 -1
- package/dist/worker/console/static/assets/{arc-DcJTLe2v.js → arc-h09p-LAc.js} +1 -1
- package/dist/worker/console/static/assets/{architectureDiagram-T3A2C74G-B39EQQ9n.js → architectureDiagram-T3A2C74G-CZ3dtLkh.js} +1 -1
- package/dist/worker/console/static/assets/{blockDiagram-VBNYF7ZC-CitCGV56.js → blockDiagram-VBNYF7ZC-DMrRhMXG.js} +1 -1
- package/dist/worker/console/static/assets/{c4Diagram-5PPSVZJV-rvWuOHLG.js → c4Diagram-5PPSVZJV-DQxisHV6.js} +1 -1
- package/dist/worker/console/static/assets/channel-D1zgKZfg.js +1 -0
- package/dist/worker/console/static/assets/{chunk-2GRJ4B5K-DGXplIJs.js → chunk-2GRJ4B5K-CefVN9zh.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-2Q5K7J3B-ur9OqjPn.js → chunk-2Q5K7J3B-DmR1Koq2.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-5RXB4S5H-D1KqU_Vi.js → chunk-5RXB4S5H-NlzrSW7L.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-5VM5RSS4-BlVZrbtM.js → chunk-5VM5RSS4-DfelJv-0.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-6Q2QTUOP-BAzz3nQy.js → chunk-6Q2QTUOP-BK6RFy58.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-GF5L2VYU-CP_nYuCV.js → chunk-GF5L2VYU-BAeh9lz4.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-JWPE2WC7-CWvKQ80X.js → chunk-JWPE2WC7-ChPS5WzG.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-KBJHAD2P-CyUki8wp.js → chunk-KBJHAD2P-BoVe5IM6.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-RYQCIY6F-5NYzNKfY.js → chunk-RYQCIY6F-C4q_0Lw9.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-XXDRQBXY-DHdUgjS-.js → chunk-XXDRQBXY-Bb9TvjeY.js} +1 -1
- package/dist/worker/console/static/assets/classDiagram-JCYQIIEL-CXNNsY2M.js +1 -0
- package/dist/worker/console/static/assets/classDiagram-v2-OCEON4UE-CXNNsY2M.js +1 -0
- package/dist/worker/console/static/assets/{cose-bilkent-JH36ORCC-ANQ5g_t6.js → cose-bilkent-JH36ORCC-DmNnL8Ff.js} +1 -1
- package/dist/worker/console/static/assets/{cynefin-VYW2F7L2-CruT_4-0.js → cynefin-VYW2F7L2-Contvx58.js} +1 -1
- package/dist/worker/console/static/assets/{cynefinDiagram-MW4NZA55-rbFo77ID.js → cynefinDiagram-MW4NZA55-Cigq7cjk.js} +1 -1
- package/dist/worker/console/static/assets/{dagre-VZM6K2ZE-asstxBQs.js → dagre-VZM6K2ZE-dEbC0nxb.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-7IWD3JNH-DzTyBZwI.js → diagram-7IWD3JNH-CzIztESV.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-B4RE2ZJO-gw8ccH3B.js → diagram-B4RE2ZJO-Bo14zbaY.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-LBJQPF4R-B8RpZzOf.js → diagram-LBJQPF4R-C4xUyil6.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-Q27KOJAE-B1zJkCS9.js → diagram-Q27KOJAE-CaBY_uYa.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-UB23O5K3-B6JLWZmO.js → diagram-UB23O5K3-ClUXUeiu.js} +1 -1
- package/dist/worker/console/static/assets/{ebnfDiagram-BXEA7PRR-q2iZP-Ps.js → ebnfDiagram-BXEA7PRR-BbGCgjC6.js} +1 -1
- package/dist/worker/console/static/assets/{erDiagram-JOGREHBK-B3dbbktQ.js → erDiagram-JOGREHBK-Dr-AcwSl.js} +1 -1
- package/dist/worker/console/static/assets/{flowDiagram-UKHOOZJN-C-zc6-kB.js → flowDiagram-UKHOOZJN-BG8Gcfyc.js} +1 -1
- package/dist/worker/console/static/assets/{ganttDiagram-PKOTCBZU-BSolnot9.js → ganttDiagram-PKOTCBZU-CFVaPs5r.js} +1 -1
- package/dist/worker/console/static/assets/{gitGraphDiagram-DS77QQ5N-Bo8jGxTk.js → gitGraphDiagram-DS77QQ5N-ChJ8pm-O.js} +1 -1
- package/dist/worker/console/static/assets/index-B_5GhVIO.js +488 -0
- package/dist/worker/console/static/assets/index-C7YMBluX.css +1 -0
- package/dist/worker/console/static/assets/{infoDiagram-6WML65LV-DQaZqJOH.js → infoDiagram-6WML65LV-C5J9-uCZ.js} +1 -1
- package/dist/worker/console/static/assets/{ishikawaDiagram-WSZJBQD7-DsdX1WnE.js → ishikawaDiagram-WSZJBQD7-BcfjqzDv.js} +1 -1
- package/dist/worker/console/static/assets/{journeyDiagram-NVQOT4AX-CP5EYDZL.js → journeyDiagram-NVQOT4AX-BzzCO-rD.js} +1 -1
- package/dist/worker/console/static/assets/{kanban-definition-27J2QSJJ-DAm14Dr8.js → kanban-definition-27J2QSJJ-NCHUZ46h.js} +1 -1
- package/dist/worker/console/static/assets/{linear-gZECoLc5.js → linear-BKZlWCUU.js} +1 -1
- package/dist/worker/console/static/assets/{mermaid.core-BRJNIM6p.js → mermaid.core-DbTaQjFE.js} +5 -5
- package/dist/worker/console/static/assets/{mindmap-definition-FAOFIHXS-Cja3kLkR.js → mindmap-definition-FAOFIHXS-CroYl5xQ.js} +1 -1
- package/dist/worker/console/static/assets/{pegDiagram-VL7TDLO6-22ZGFisL.js → pegDiagram-VL7TDLO6-DgMBx-9k.js} +1 -1
- package/dist/worker/console/static/assets/{pieDiagram-7S7Q4E2Y-BXin0Y1o.js → pieDiagram-7S7Q4E2Y-CyWDmbq1.js} +1 -1
- package/dist/worker/console/static/assets/{quadrantDiagram-CIZ2JOQS-Cw6T69Yt.js → quadrantDiagram-CIZ2JOQS-BgGEOqSP.js} +1 -1
- package/dist/worker/console/static/assets/{railroadDiagram-AXF67PYL-C1-gTieN.js → railroadDiagram-AXF67PYL-BMZ7oeeV.js} +1 -1
- package/dist/worker/console/static/assets/{requirementDiagram-LRYGKXZP--H5N2iI1.js → requirementDiagram-LRYGKXZP-DxqyGhcc.js} +1 -1
- package/dist/worker/console/static/assets/{sankeyDiagram-W5VNT64P-CgWAPeRz.js → sankeyDiagram-W5VNT64P-DnSvNCG8.js} +1 -1
- package/dist/worker/console/static/assets/{sequenceDiagram-SI44F4Z6-CrKqzGvt.js → sequenceDiagram-SI44F4Z6-BiZh6f-R.js} +1 -1
- package/dist/worker/console/static/assets/{sizeCapture-X5ZJPWSS-BB3wG06K.js → sizeCapture-X5ZJPWSS-BKXSI8WB.js} +1 -1
- package/dist/worker/console/static/assets/{stateDiagram-OKZ733FA-DjsGgdgY.js → stateDiagram-OKZ733FA-CfSgoYFm.js} +1 -1
- package/dist/worker/console/static/assets/stateDiagram-v2-UEYNNEHI-DgHi3vjb.js +1 -0
- package/dist/worker/console/static/assets/{swimlanes-SLNWSIFB-DYKEbvAR.js → swimlanes-SLNWSIFB-CyGADcHe.js} +2 -2
- package/dist/worker/console/static/assets/swimlanesDiagram-ULZ7WXOC-Bgvdt1Y0.js +8 -0
- package/dist/worker/console/static/assets/{timeline-definition-Z64GVDOM-eQOb5k9Y.js → timeline-definition-Z64GVDOM-HmPaSPOK.js} +1 -1
- package/dist/worker/console/static/assets/{vennDiagram-T6HMQDX7-B2-l9FIu.js → vennDiagram-T6HMQDX7-VA2VBbez.js} +1 -1
- package/dist/worker/console/static/assets/{wardleyDiagram-T6FBY63Y-BX2Cda3l.js → wardleyDiagram-T6FBY63Y-BxjiBPZa.js} +1 -1
- package/dist/worker/console/static/assets/{xychartDiagram-ELKLHX3M-D9S892ph.js → xychartDiagram-ELKLHX3M--hUY-qFj.js} +1 -1
- package/dist/worker/console/static/index.html +5 -2
- package/dist/worker/console/static/manifest.webmanifest +19 -0
- package/dist/worker/console/static/pets/ember/pet.json +167 -0
- package/dist/worker/console/static/pets/ember/spritesheet.png +0 -0
- package/dist/worker/console/static-src/app/console-types.js +9 -1
- package/dist/worker/console/static-src/chat-view-types.js +1 -1
- package/dist/worker/console/static-src/operator-chat/active-turn-tail.js +10 -0
- package/dist/worker/console/static-src/operator-chat/animation-frame-batcher.js +38 -0
- package/dist/worker/console/static-src/operator-chat/chat-link.js +114 -0
- package/dist/worker/console/static-src/operator-chat/chat-scroll-position.js +24 -0
- package/dist/worker/console/static-src/operator-chat/chat-sse-events.js +360 -14
- package/dist/worker/console/static-src/operator-chat/chat-stream-continuity.js +101 -0
- package/dist/worker/console/static-src/operator-chat/compaction-message.js +10 -2
- package/dist/worker/console/static-src/operator-chat/composer-session-ledger.js +192 -0
- package/dist/worker/console/static-src/operator-chat/context-insights-store.js +64 -0
- package/dist/worker/console/static-src/operator-chat/details-rail-surfaces.js +99 -0
- package/dist/worker/console/static-src/operator-chat/file-palette-nav.js +81 -0
- package/dist/worker/console/static-src/operator-chat/open-preview-in-browser.js +57 -9
- package/dist/worker/console/static-src/operator-chat/pending-user-message.js +66 -0
- package/dist/worker/console/static-src/operator-chat/process-label.js +63 -0
- package/dist/worker/console/static-src/operator-chat/slash-palette-nav.js +15 -5
- package/dist/worker/console/static-src/operator-chat/timeline-merge.js +29 -0
- package/dist/worker/console/static-src/operator-chat/tools-catalog.js +36 -8
- package/dist/worker/console/static-src/operator-chat/transcript-mode.js +21 -0
- package/dist/worker/console/static-src/operator-chat/turn-group-equality.js +16 -0
- package/dist/worker/console/static-src/operator-chat/turn-process-disclosure.js +18 -0
- package/dist/worker/console/static-src/operator-chat/turn-state-projection.js +166 -0
- package/dist/worker/console/static-src/operator-chat/turn-stream-controller.js +58 -2
- package/dist/worker/console/static-src/operator-chat/use-searchable-hidden.js +51 -0
- package/dist/worker/console/static-src/operator-chat/use-stat-dialog.js +95 -0
- package/dist/worker/console/static-src/operator-chat/useChatSessions.js +338 -93
- package/dist/worker/console/static-src/operator-chat/useChatStream.js +310 -106
- package/dist/worker/console/static-src/operator-chat/useChatThread.js +179 -75
- package/dist/worker/console/static-src/operator-chat/useComposer.js +281 -79
- package/dist/worker/console/static-src/operator-chat/useRepoBrowser.js +21 -3
- package/dist/worker/console/static-src/operator-chat/useRuntimeControls.js +36 -17
- package/dist/worker/console/static-src/operator-chat/useRuntimeSnapshot.js +18 -0
- package/dist/worker/console/static-src/operator-chat/useWorkspaceBrowserGate.js +4 -0
- package/dist/worker/console/static-src/operator-chat/user-turn-anchor-equality.js +21 -0
- package/dist/worker/console/static-src/prd-file-import.js +3 -1
- package/dist/worker/console/static-src/shell/console-update-reload.js +1 -1
- package/dist/worker/console/workspace-context.js +54 -1
- package/dist/worker/console/workspace-initialization.js +218 -0
- package/dist/worker/delivery/git-transaction.js +2 -0
- package/dist/worker/delivery/package.js +4 -1
- package/dist/worker/feature/fullstack-validate.js +2 -0
- package/dist/worker/loop-agent/loop-agent-client.js +8 -2
- package/dist/worker/materialize/harness-task-lineage.js +4 -2
- package/dist/worker/materialize/harness-task-materializer.js +4 -1
- package/dist/worker/metrics/projector.js +1 -1
- package/dist/worker/observability/event-store.js +4 -1
- package/dist/worker/observability/read-model.js +27 -3
- package/dist/worker/observe/node-context-insights.js +479 -0
- package/dist/worker/observe/node-transparency.js +103 -72
- package/dist/worker/observe/routes.js +24 -1
- package/dist/worker/observe/static/console-theme.css +178 -0
- package/dist/worker/observe/static/console-theme.js +74 -0
- package/dist/worker/observe/static/dag-inspector-humanize.js +3 -0
- package/dist/worker/observe/static/dom.js +20 -1
- package/dist/worker/observe/static/format-pool.d.ts +2 -0
- package/dist/worker/observe/static/format-pool.js +6 -0
- package/dist/worker/observe/static/format.js +7 -0
- package/dist/worker/observe/static/inspect-workspace.js +34 -7
- package/dist/worker/observe/static/inspector-submission.js +32 -0
- package/dist/worker/observe/static/kpi.js +1 -0
- package/dist/worker/observe/static/operator-chrome.css +85 -0
- package/dist/worker/observe/static/operator-chrome.js +13 -1
- package/dist/worker/observe/static/relations.js +2 -0
- package/dist/worker/observe/static/router.js +13 -0
- package/dist/worker/observe/static/run-processing.js +2 -0
- package/dist/worker/observe/static/shell-chrome.js +36 -3
- package/dist/worker/observe/static/state.js +35 -2
- package/dist/worker/observe/static/styles.css +263 -39
- package/dist/worker/observe/static/task-failure-labels.d.ts +4 -0
- package/dist/worker/observe/static/task-failure-labels.js +67 -0
- package/dist/worker/observe/static/task-history.js +12 -0
- package/dist/worker/observe/static/views/batch.js +6 -13
- package/dist/worker/observe/static/views/dag-graph.js +50 -3
- package/dist/worker/observe/static/views/dag-inspector.js +742 -268
- package/dist/worker/observe/static/views/dag-trajectory.js +3 -0
- package/dist/worker/observe/static/views/dag.d.ts +6 -0
- package/dist/worker/observe/static/views/dag.js +49 -11
- package/dist/worker/observe/static/views/dags.js +2 -0
- package/dist/worker/observe/static/views/dashboard.js +21 -12
- package/dist/worker/observe/static/views/failures.js +21 -11
- package/dist/worker/observe/static/views/feature.js +11 -29
- package/dist/worker/observe/static/views/pool.js +37 -28
- package/dist/worker/observe/static/views/run.js +48 -5
- package/dist/worker/observe/static/views/session-timeline.js +189 -240
- package/dist/worker/observe/static/views/task.js +81 -62
- package/dist/worker/outcomes/declared-artifacts.js +2 -0
- package/dist/worker/preflight.js +3 -0
- package/dist/worker/scheduler/scheduled-goal-dispatch.js +118 -0
- package/dist/worker/scheduler/scheduled-goal-evidence.js +230 -0
- package/dist/worker/scheduler/scheduled-goal-recovery.js +62 -0
- package/dist/worker/scheduler/scheduled-goal-store.js +709 -0
- package/dist/worker/scheduler/scheduled-goal-supervisor.js +132 -0
- package/dist/worker/scheduler/scheduled-goal-time.js +102 -0
- package/dist/worker/scheduler/scheduled-goal-types.js +95 -0
- package/dist/worker/task-spec/validate.js +4 -1
- package/dist/workflows/dag/backend-test-case-coverage-analysis.js +3 -1
- package/dist/workflows/dag/backend-test-layout.js +27 -7
- package/dist/workflows/dag/backend-test-markdown-workflow.js +9 -25
- package/dist/workflows/dag/backend-test-plan-protocol.js +82 -5
- package/dist/workflows/dag/backend-test-pytest-collection.js +4 -1
- package/dist/workflows/dag/budget-enforcement.js +82 -3
- package/dist/workflows/dag/checkpoint.js +686 -0
- package/dist/workflows/dag/dag-retry-schema.js +14 -0
- package/dist/workflows/dag/decision-envelope.js +2 -0
- package/dist/workflows/dag/dynamic-runtime/map.js +15 -2
- package/dist/workflows/dag/dynamic-runtime/shared.js +2 -2
- package/dist/workflows/dag/final-verification.js +45 -10
- package/dist/workflows/dag/frontend-capacity.js +9 -0
- package/dist/workflows/dag/frontend-closeout.js +5 -1
- package/dist/workflows/dag/frontend-committed-facts.js +461 -0
- package/dist/workflows/dag/frontend-contract-facts.js +133 -0
- package/dist/workflows/dag/frontend-design-policy.js +107 -21
- package/dist/workflows/dag/frontend-durable-tools.js +225 -0
- package/dist/workflows/dag/frontend-execution-groups.js +24 -0
- package/dist/workflows/dag/frontend-implementation-contract.js +554 -26
- package/dist/workflows/dag/frontend-input-projection.js +76 -0
- package/dist/workflows/dag/frontend-plan-canary.js +103 -0
- package/dist/workflows/dag/frontend-plan-decision-contract.js +795 -0
- package/dist/workflows/dag/frontend-plan-progress.js +92 -0
- package/dist/workflows/dag/frontend-plan-recovery-policy.js +18 -0
- package/dist/workflows/dag/frontend-plan-render.js +21 -5
- package/dist/workflows/dag/frontend-provider-capability-matrix.js +8 -61
- package/dist/workflows/dag/frontend-recovery-controller.js +7 -7
- package/dist/workflows/dag/frontend-recovery-lineage.js +13 -0
- package/dist/workflows/dag/frontend-recovery-plan.js +10 -5
- package/dist/workflows/dag/frontend-recovery-run.js +148 -47
- package/dist/workflows/dag/frontend-repair-assertions.js +36 -0
- package/dist/workflows/dag/frontend-repair.js +79 -76
- package/dist/workflows/dag/frontend-review-context.js +71 -69
- package/dist/workflows/dag/frontend-review-scopes.js +237 -0
- package/dist/workflows/dag/frontend-risk.js +101 -12
- package/dist/workflows/dag/frontend-root-observation.js +261 -0
- package/dist/workflows/dag/frontend-session-budget.js +376 -0
- package/dist/workflows/dag/frontend-session-context.js +10 -0
- package/dist/workflows/dag/frontend-shape-facts.js +12 -2
- package/dist/workflows/dag/frontend-shape.js +27 -32
- package/dist/workflows/dag/frontend-test-case-checklist.js +14 -3
- package/dist/workflows/dag/frontend-test-case-generation-assessment.js +88 -0
- package/dist/workflows/dag/frontend-test-case-manifest.js +6 -1
- package/dist/workflows/dag/frontend-test-case-quality.js +3 -3
- package/dist/workflows/dag/frontend-test-environment-probe.js +0 -2
- package/dist/workflows/dag/frontend-test-execution-evidence.js +328 -0
- package/dist/workflows/dag/frontend-test-framework-adapters.js +309 -0
- package/dist/workflows/dag/frontend-test-layout.js +41 -12
- package/dist/workflows/dag/frontend-test-result-contract.js +15 -1
- package/dist/workflows/dag/frontend-typed-event-store.js +57 -26
- package/dist/workflows/dag/frontend-verification-trace.js +65 -48
- package/dist/workflows/dag/frontend-writer-admission.js +6 -48
- package/dist/workflows/dag/frontend-writer-status.js +0 -23
- package/dist/workflows/dag/hybrid/sources.js +1831 -0
- package/dist/workflows/dag/hybrid/templates/backend-test.js +1822 -0
- package/dist/workflows/dag/hybrid/templates/frontend-test.js +807 -0
- package/dist/workflows/dag/hybrid/templates/frontend.js +1529 -0
- package/dist/workflows/dag/hybrid/templates/index.js +8 -0
- package/dist/workflows/dag/hybrid/templates/kg-bootstrap.js +449 -0
- package/dist/workflows/dag/hybrid/templates/knowledge-sync.js +495 -0
- package/dist/workflows/dag/hybrid/templates/shared.js +101 -0
- package/dist/workflows/dag/hybrid/templates/standard.js +265 -0
- package/dist/workflows/dag/hybrid/types.js +32 -0
- package/dist/workflows/dag/init-hybrid.js +57 -7077
- package/dist/workflows/dag/interrupt-request.js +2 -0
- package/dist/workflows/dag/lifecycle.js +11 -2
- package/dist/workflows/dag/node-execution.js +257 -247
- package/dist/workflows/dag/output-protocol.js +1 -0
- package/dist/workflows/dag/prompt.js +4 -0
- package/dist/workflows/dag/reconcile-run.js +2 -0
- package/dist/workflows/dag/repair-artifact.js +3 -1
- package/dist/workflows/dag/report.js +2 -0
- package/dist/workflows/dag/rerun-feedback.js +36 -4
- package/dist/workflows/dag/rerun-plan.js +106 -4
- package/dist/workflows/dag/rerun-run.js +7 -0
- package/dist/workflows/dag/rerun-task.js +75 -1
- package/dist/workflows/dag/retry-policy.js +34 -10
- package/dist/workflows/dag/runner-exit-diagnostics.js +125 -0
- package/dist/workflows/dag/runner.js +38 -1074
- package/dist/workflows/dag/scheduler.js +2 -4
- package/dist/workflows/dag/skill-instructions.js +102 -32
- package/dist/workflows/dag/skill-snapshot.js +3 -0
- package/dist/workflows/dag/skills.js +7 -7
- package/dist/workflows/dag/structured-output-repair.js +4 -1
- package/dist/workflows/dag/terminal-status.js +502 -0
- package/dist/workflows/dag/test-artifact-namespace.js +73 -0
- package/dist/workflows/dag/types.js +79 -7
- package/dist/workflows/dag/validate.js +38 -13
- package/dist/workflows/dag/workspace-checkpoint.js +79 -1
- package/dist/workflows/loop/benchmark.js +11 -8
- package/docs/README.md +2 -1
- package/docs/architecture/dag-execution.md +4 -4
- package/docs/architecture/runtime-boundaries.md +29 -23
- package/docs/governance/README.md +1 -0
- package/docs/governance/harness-methodology-verification.md +11 -0
- package/docs/init-surface.manifest.json +44 -295
- package/docs/operations/README.md +4 -0
- package/docs/templates/README.md +5 -5
- package/docs/templates/agent-dag.base.json +9 -9
- package/docs/templates/agent-dag.final-verification.json +6 -6
- package/docs/templates/agent-dag.schema.json +2 -2
- package/docs/templates/agent-dag.supervised-implementation.json +12 -12
- package/docs/templates/backend-test-dag.generate-pytest.prompt.md +3 -3
- package/docs/templates/backend-test-dag.json +708 -703
- package/docs/templates/backend-test-dag.review-cases.prompt.md +3 -3
- package/docs/templates/frontend-design-contract.md +4 -4
- package/docs/templates/frontend-implementation-contract.schema.json +99 -22
- package/docs/templates/frontend-implementation-dag.json +7 -7
- package/docs/templates/frontend-test-case-checklist.md +2 -2
- package/docs/templates/frontend-test-case.example.md +2 -0
- package/docs/templates/frontend-test-dag.generate-cases.prompt.md +1 -1
- package/docs/templates/frontend-test-dag.json +48 -39
- package/docs/templates/frontend-test-dag.retrieve-context.prompt.md +2 -2
- package/docs/templates/frontend-test-dag.retrospect.prompt.md +1 -1
- package/docs/templates/frontend-test-dag.review-cases.prompt.md +1 -1
- package/docs/templates/hybrid-dag.json +9 -9
- package/docs/templates/knowledge-sync-dag.json +8 -8
- package/harness.json +1 -1
- package/package.json +27 -8
- package/resource-catalog.v1.json +1981 -0
- package/resources/agent-bridge/loop-agent/SKILL.md +40 -0
- package/resources/init-history/legacy-surface.v1.json +33 -0
- package/skills/fe-test-ui-scout/SKILL.md +4 -4
- package/skills/fe-test-ui-scout/references/ledger-schema.md +1 -1
- package/skills/frontend-bounded-implement/references/code-standards.md +3 -3
- package/skills/frontend-contract/SKILL.md +2 -1
- package/skills/frontend-contract/references/contract-protocol.md +22 -4
- package/skills/frontend-design-review/SKILL.md +16 -18
- package/skills/frontend-design-review/references/review-checklist.md +3 -4
- package/skills/frontend-plan/SKILL.md +25 -3
- package/skills/frontend-plan/references/decision-contract.md +117 -8
- package/skills/frontend-plan/references/design-decisions.md +32 -0
- package/skills/frontend-review/SKILL.md +29 -36
- package/skills/frontend-review/references/review-findings.md +8 -3
- package/skills/frontend-scout/references/scout-evidence.md +4 -0
- package/skills/init-update/SKILL.md +34 -0
- package/skills/init-update/agents/openai.yaml +6 -0
- package/skills/loop-agent/references/command-reference.md +8 -0
- package/skills/loop-agent/references/hybrid-dag.md +1 -1
- package/skills/playwright-cli/SKILL.md +1 -1
- package/skills/playwright-cli-case-generator/SKILL.md +7 -5
- package/dist/commands/new-task.js +0 -5
- package/dist/commands/status.js +0 -57
- package/dist/commands/task-contract.js +0 -269
- package/dist/shared/prompts.js +0 -26
- package/dist/task/config.js +0 -2
- package/dist/task/contract/validate-draft.js +0 -106
- package/dist/task/goal.js +0 -3
- package/dist/task/index.js +0 -12
- package/dist/task/lifecycle.js +0 -1
- package/dist/task/operator/capabilities.js +0 -6
- package/dist/task/operator/envelope.js +0 -2
- package/dist/task/operator/index.js +0 -5
- package/dist/task/operator/registry.js +0 -2
- package/dist/task/paths.js +0 -1
- package/dist/task/source-state.js +0 -1
- package/dist/task/subagent-guidance.js +0 -1
- package/dist/worker/console/chat/sift-bridge.js +0 -1
- package/dist/worker/console/index.js +0 -20
- package/dist/worker/console/static/assets/channel-CXqdP5pW.js +0 -1
- package/dist/worker/console/static/assets/classDiagram-JCYQIIEL-D9C3agF7.js +0 -1
- package/dist/worker/console/static/assets/classDiagram-v2-OCEON4UE-D9C3agF7.js +0 -1
- package/dist/worker/console/static/assets/index-CAZ2fC_X.css +0 -1
- package/dist/worker/console/static/assets/index-DhfjOafu.js +0 -449
- package/dist/worker/console/static/assets/stateDiagram-v2-UEYNNEHI-Tp7V0U4q.js +0 -1
- package/dist/worker/console/static/assets/swimlanesDiagram-ULZ7WXOC-DUZWZWi8.js +0 -8
- package/dist/worker/scheduler/index.js +0 -25
- package/dist/workflows/dag/facts.js +0 -4
- package/dist/workflows/dag/frontend-shadow-dual-write.js +0 -941
- package/dist/workflows/dag/index.js +0 -6
- package/dist/workflows/dynamic/index.js +0 -7
- /package/dist/{task/operator/types.js → executors/dag-pi/plan/session.js} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: loop-agent
|
|
3
|
+
description: >-
|
|
4
|
+
Use when a repository is initialized with loop-agent and the user asks to
|
|
5
|
+
implement, fix, review, plan, verify, resume, or inspect work through the
|
|
6
|
+
loop-agent Task and Agent DAG workflow.
|
|
7
|
+
metadata:
|
|
8
|
+
loop-agent:
|
|
9
|
+
schemaVersion: 1
|
|
10
|
+
kind: external-agent-bridge
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# loop-agent bridge
|
|
14
|
+
|
|
15
|
+
This file is a discovery bridge. The installed `loop-agent` package is the
|
|
16
|
+
authority for workflow policy, commands, templates, and built-in Skills. Do not
|
|
17
|
+
infer write permission from this file and do not copy its policy into project
|
|
18
|
+
files.
|
|
19
|
+
|
|
20
|
+
## Route
|
|
21
|
+
|
|
22
|
+
1. Read the repository's own `AGENTS.md` and project instructions when present.
|
|
23
|
+
2. Run `loop-agent --repo-root . operator guide --json`. Treat its typed project
|
|
24
|
+
status and single `next.command` as the controller-owned route for an
|
|
25
|
+
uninitialized, ready, update-required, or blocked workspace.
|
|
26
|
+
3. For a direct read-only surface comparison, run `loop-agent init check-update
|
|
27
|
+
--repo-root . --json`.
|
|
28
|
+
4. For read-only orientation, use `loop-agent inspect --json`, `loop-agent task
|
|
29
|
+
status <task-id> --json`, and `loop-agent dag doctor --run-id <run-id> --json`.
|
|
30
|
+
5. For new implementation work, use `loop-agent task advance` with explicit
|
|
31
|
+
allowed and forbidden paths, then review the generated writeSet before
|
|
32
|
+
approval.
|
|
33
|
+
6. Long-running DAG execution needs a durable owner. Prefer the Console
|
|
34
|
+
operation returned by `agent-worker console`; do not start an unowned
|
|
35
|
+
foreground DAG command that the host may terminate.
|
|
36
|
+
|
|
37
|
+
If a command reports a gate, controller identity mismatch, active run, or human
|
|
38
|
+
decision, stop writing and follow the single `next` action in the typed result.
|
|
39
|
+
Package built-ins are addressed as `builtin:<name>`; project and user Skills are
|
|
40
|
+
addressed as `project:<name>` and `user:<name>` when an explicit source matters.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"catalogVersion": 1,
|
|
4
|
+
"entries": [
|
|
5
|
+
{ "id": "legacy-full-v1-01", "path": "ai_workspace/loop-agent/decisions/README.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["d2b7cd3a7aada67c8918bc923c298c56d6b24f76ced331cea94c40aa819a8efb"], "canonicalTextSha256": ["d2b7cd3a7aada67c8918bc923c298c56d6b24f76ced331cea94c40aa819a8efb"], "retirement": "remove" },
|
|
6
|
+
{ "id": "legacy-full-v1-02", "path": "ai_workspace/loop-agent/design/README.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["81c613511fa172c509c25614a24420fdca6895025cf4ffb30f11af245b82a244"], "canonicalTextSha256": ["81c613511fa172c509c25614a24420fdca6895025cf4ffb30f11af245b82a244"], "retirement": "remove" },
|
|
7
|
+
{ "id": "legacy-full-v1-03", "path": "ai_workspace/loop-agent/exec-plans/README.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["794353280a8251794537df7cbbabaa0ae101ed83cad29d85aa6bd3c494deaa8c"], "canonicalTextSha256": ["794353280a8251794537df7cbbabaa0ae101ed83cad29d85aa6bd3c494deaa8c"], "retirement": "remove" },
|
|
8
|
+
{ "id": "legacy-full-v1-04", "path": "ai_workspace/loop-agent/exec-plans/active/README.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["109f4cb2ff72281831afd8081d9022b087f2bcf1f7e9a74cc8d4e0a332ca2db3"], "canonicalTextSha256": ["109f4cb2ff72281831afd8081d9022b087f2bcf1f7e9a74cc8d4e0a332ca2db3"], "retirement": "remove" },
|
|
9
|
+
{ "id": "legacy-full-v1-05", "path": "ai_workspace/loop-agent/exec-plans/completed/README.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["18659db03f919a2468ec07b144afced8fbed1fbf9574836cbe98e0a09c112c48"], "canonicalTextSha256": ["18659db03f919a2468ec07b144afced8fbed1fbf9574836cbe98e0a09c112c48"], "retirement": "remove" },
|
|
10
|
+
{ "id": "legacy-full-v1-06", "path": "ai_workspace/loop-agent/harness-methodology-verification.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["0549642cf39664e0518400a7816c249347234861d548601478a7d8e4a52019db"], "canonicalTextSha256": ["23befc817df9e5ece4b8bdd3d9cefa709f3eebbb6549cdbfd3b94518827287d1"], "retirement": "remove" },
|
|
11
|
+
{ "id": "legacy-full-v1-07", "path": "ai_workspace/loop-agent/progress/README.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["346e5c59a5f9affb466d549942e65a9738573c70cbcd565e654e74bb35ab3a6b"], "canonicalTextSha256": ["346e5c59a5f9affb466d549942e65a9738573c70cbcd565e654e74bb35ab3a6b"], "retirement": "remove" },
|
|
12
|
+
{ "id": "legacy-full-v1-08", "path": "ai_workspace/loop-agent/reports/README.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["991df05df343d3438f1ad7b5d1267fab82afcb37a590b38deba3943fc94c94e0"], "canonicalTextSha256": ["991df05df343d3438f1ad7b5d1267fab82afcb37a590b38deba3943fc94c94e0"], "retirement": "remove" },
|
|
13
|
+
{ "id": "legacy-full-v1-09", "path": "ai_workspace/loop-agent/templates/adr.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["93177f43902f32079db85031c06bda501bd2fe5c167ab00c51bf5591e6c7821d"], "canonicalTextSha256": ["c0315f1112ce05f66a6f41ab7865aba03e218c70afaf20153f2735d4e081cf4d"], "retirement": "remove" },
|
|
14
|
+
{ "id": "legacy-full-v1-10", "path": "ai_workspace/loop-agent/templates/agent-dag-authority-surface-audit.prompt.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["c7fc215523a5fd8027b0ec476144d7d5b8274818adc7c9b6cf9a7d5f394352af"], "canonicalTextSha256": ["02023a687cfa8b67daa171da9d73d18885c80353f38157ac2966f456a0804f76"], "retirement": "remove" },
|
|
15
|
+
{ "id": "legacy-full-v1-11", "path": "ai_workspace/loop-agent/templates/agent-dag-decision-envelope.schema.json", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["4baa9a83f7ca78849cd370969c8634d5e75d5addef85a0671da4084def967736"], "canonicalTextSha256": ["ff62c6515487b2e0c29043b7d71db7423e8331088b97cb3d05d7958cde5b7c33"], "retirement": "remove" },
|
|
16
|
+
{ "id": "legacy-full-v1-12", "path": "ai_workspace/loop-agent/templates/agent-dag-decision-gate-dogfood-report.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["bc708ebca250ff64640159333325363367fd9b69d8d46b3ab9420d316acd40ce"], "canonicalTextSha256": ["0f0b17546647755639ea5937332dfe04c663b5edbf379b43210bc92c77898eaa"], "retirement": "remove" },
|
|
17
|
+
{ "id": "legacy-full-v1-13", "path": "ai_workspace/loop-agent/templates/agent-dag-decision-gate.prompt.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["61f2964bbf2dbe025ad69d402ac29b8d555ebf9c325d52d7b371908586167bd3"], "canonicalTextSha256": ["a6c89374ca343edb171d05a118143ebe96c77f14d532af487e554d9c511f1cb8"], "retirement": "remove" },
|
|
18
|
+
{ "id": "legacy-full-v1-14", "path": "ai_workspace/loop-agent/templates/agent-dag-process-supervisor.prompt.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["cd20efd90a23001ca05e745e9a79c14b85d8926aa471b519625e1b8138e82938"], "canonicalTextSha256": ["660af472281b66d474fb8f269798dbee7714bbff92eb2837d8fbc23831b13892"], "retirement": "remove" },
|
|
19
|
+
{ "id": "legacy-full-v1-15", "path": "ai_workspace/loop-agent/templates/agent-dag-review-verdict.prompt.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["04961e5e728cbddbcf07c4ef77437d2a6367e254345298ce1653d50bfede0629"], "canonicalTextSha256": ["c63750b0230744730e68caba8830dba1ea347dd31e0f107a81e8edff0b9521ef"], "retirement": "remove" },
|
|
20
|
+
{ "id": "legacy-full-v1-16", "path": "ai_workspace/loop-agent/templates/exec-plan.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["f8ca330a8b22db7261165bd128a6ad2e86d9c3b63a39d5a734915bc305d8c00c"], "canonicalTextSha256": ["4c34349cc6e79ac71923ea3408d94cff809aaac94d9390a7a93a1146d90b4b18"], "retirement": "remove" },
|
|
21
|
+
{ "id": "legacy-full-v1-17", "path": "ai_workspace/loop-agent/templates/feature-spec.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["8ce457e9239a41855cabf85f4c2910d9455e7303a48e38253870ed5152258282"], "canonicalTextSha256": ["0fcfb89c50a4ba38120cb34827f01f1023b8a1de2c8a6cddcf0137764e63219d"], "retirement": "remove" },
|
|
22
|
+
{ "id": "legacy-full-v1-18", "path": "ai_workspace/loop-agent/templates/progress-log.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["5db2b5a0ac22a980e334775c3d111ea340e867285b9763477e17ee6c9f45fe7b"], "canonicalTextSha256": ["0df84ccd0c93bdbfbf98245c691be6ac71738679685568991a01d4e2134be540"], "retirement": "remove" },
|
|
23
|
+
{ "id": "legacy-full-v1-19", "path": "ai_workspace/loop-agent/templates/qa-report.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["7eb8eff6e35f8bfc1dfcdbf16c149a97929e389288c49e3b15e4b2f7c3b0dd45"], "canonicalTextSha256": ["2f1e54542175569f13243f8d0b6b29663893919072e21fa2a25abac67b53accf"], "retirement": "remove" },
|
|
24
|
+
{ "id": "legacy-full-v1-20", "path": "ai_workspace/loop-agent/templates/sprint-contract.md", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["6f1daaf7f06f772ffe3177fc18bb1ac10866863b671a472c645912469d6a5b7d"], "canonicalTextSha256": ["23cbcd347087e0bc4e0d1eb8853421b9aa948c40e332c2d99714879469ff213c"], "retirement": "remove" },
|
|
25
|
+
{ "id": "legacy-full-v1-21", "path": "scripts/check-active-plan-status.sh", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["24821c2bb128a9b86fadf5a1a0006f23cc5557ad93cba7a959144bdf7753845d"], "canonicalTextSha256": ["24821c2bb128a9b86fadf5a1a0006f23cc5557ad93cba7a959144bdf7753845d"], "retirement": "remove" },
|
|
26
|
+
{ "id": "legacy-full-v1-22", "path": "scripts/check-architecture-boundaries.sh", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["38f07e0758bcf369266d1a6eb08cefeb1592ea857f7deaf3153ac8c096965a07"], "canonicalTextSha256": ["38f07e0758bcf369266d1a6eb08cefeb1592ea857f7deaf3153ac8c096965a07"], "retirement": "remove" },
|
|
27
|
+
{ "id": "legacy-full-v1-23", "path": "scripts/check-doc-index.sh", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["e207c9458a65f4a5ae954704cab61888c070a6a8c671fdb8b5070138c1f9f05e"], "canonicalTextSha256": ["e207c9458a65f4a5ae954704cab61888c070a6a8c671fdb8b5070138c1f9f05e"], "retirement": "remove" },
|
|
28
|
+
{ "id": "legacy-full-v1-24", "path": "scripts/check-doc-links.sh", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["5e57e80018dcc3fba0868876acfaeddcaf46845a046fe593290455b3940d9ca1"], "canonicalTextSha256": ["5e57e80018dcc3fba0868876acfaeddcaf46845a046fe593290455b3940d9ca1"], "retirement": "remove" },
|
|
29
|
+
{ "id": "legacy-full-v1-25", "path": "scripts/check-engineering-structure.sh", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["d9a2ab94c35960033725b5c6fb9535cf91eefa7295fc07bcd904930627df09a8"], "canonicalTextSha256": ["d9a2ab94c35960033725b5c6fb9535cf91eefa7295fc07bcd904930627df09a8"], "retirement": "remove" },
|
|
30
|
+
{ "id": "legacy-full-v1-26", "path": "scripts/check-exec-plan-index-sync.sh", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["a70395b3cd17106d1d53e877880f46a73e4dcbcea5a4fb32ea2661aebfd520bf"], "canonicalTextSha256": ["a70395b3cd17106d1d53e877880f46a73e4dcbcea5a4fb32ea2661aebfd520bf"], "retirement": "remove" },
|
|
31
|
+
{ "id": "legacy-full-v1-27", "path": "scripts/check-harness-runtime-clean.sh", "mode": "copied", "releaseFamily": "legacy-full-v1", "templateIdentity": "loop-agent-0.11-full-init", "rawSha256": ["4f0fe0d161e9cbb6b371392e776337c0416ac9e95aee4586e626deed9a6da51e"], "canonicalTextSha256": ["4f0fe0d161e9cbb6b371392e776337c0416ac9e95aee4586e626deed9a6da51e"], "retirement": "remove" }
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fe-test-ui-scout
|
|
3
|
-
description: 在写 frontend-test Wave PRD/回归目录之前,对真实运行的被测页面做只读锚点侦察,产出并维护 {testRoot}/rag/ui-anchors.md 锚点台账(默认 testcase/frontend/rag/ui-anchors.md)。用 playwright-cli snapshot/find 逐字面验证命中数与唯一性,防止 PRD 验收标准引用不存在或不唯一的文案。触发词:frontend-test、锚点、台账、ui-anchors、侦察、写 PRD 前、snapshot/find 校准、Wave PRD。
|
|
3
|
+
description: 在写 frontend-test Wave PRD/回归目录之前,对真实运行的被测页面做只读锚点侦察,产出并维护 {testRoot}/rag/ui-anchors.md 锚点台账(默认 .harness/testcase/frontend/rag/ui-anchors.md)。用 playwright-cli snapshot/find 逐字面验证命中数与唯一性,防止 PRD 验收标准引用不存在或不唯一的文案。触发词:frontend-test、锚点、台账、ui-anchors、侦察、写 PRD 前、snapshot/find 校准、Wave PRD。
|
|
4
4
|
references:
|
|
5
5
|
- path: references/ledger-schema.md
|
|
6
6
|
required: true
|
|
@@ -13,7 +13,7 @@ references:
|
|
|
13
13
|
## 定位
|
|
14
14
|
|
|
15
15
|
写 Wave PRD / 校准回归目录 AC **之前**的前置侦察。产出锚点台账
|
|
16
|
-
`{testRoot}/rag/ui-anchors.md`(默认
|
|
16
|
+
`{testRoot}/rag/ui-anchors.md`(默认 `.harness/testcase/frontend/rag/ui-anchors.md`):每个「页面 × 状态」下真实可见、
|
|
17
17
|
`find` 可命中的字面清单。PRD 的每条 `find "..."` 断言必须能在台账找到对应行;
|
|
18
18
|
台账没有的字面禁止写进验收标准。
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ references:
|
|
|
23
23
|
|
|
24
24
|
## 输入
|
|
25
25
|
|
|
26
|
-
- 被测 baseUrl(来自 `{testRoot}/rag/context.md` 的 `environmentProbe=reachable` URL;默认
|
|
26
|
+
- 被测 baseUrl(来自 `{testRoot}/rag/context.md` 的 `environmentProbe=reachable` URL;默认 `.harness/testcase/frontend/rag/context.md`)
|
|
27
27
|
- 目标 Wave 的 AC 清单(回归目录中本 Wave 范围的行)
|
|
28
28
|
- 既有台账(增量更新,不整表重写)
|
|
29
29
|
|
|
@@ -56,7 +56,7 @@ references:
|
|
|
56
56
|
|
|
57
57
|
## 输出
|
|
58
58
|
|
|
59
|
-
- `{testRoot}/rag/ui-anchors.md`(增量更新;默认
|
|
59
|
+
- `{testRoot}/rag/ui-anchors.md`(增量更新;默认 `.harness/testcase/frontend/rag/ui-anchors.md`)
|
|
60
60
|
- 侦察小结(对话内输出,不落盘;结论回写 PRD 草稿的锚点引用)
|
|
61
61
|
|
|
62
62
|
## References
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 文件位置与命名
|
|
4
4
|
|
|
5
|
-
- 路径:`{testRoot}/rag/ui-anchors.md`(默认
|
|
5
|
+
- 路径:`{testRoot}/rag/ui-anchors.md`(默认 `.harness/testcase/frontend/rag/ui-anchors.md`)
|
|
6
6
|
- 编码:UTF-8,LF;表格用 GitHub Flavored Markdown。
|
|
7
7
|
- 台账是**增量账本**:修订不删除历史行;失效行改状态列并注明原因。
|
|
8
8
|
|
|
@@ -4,16 +4,16 @@ Apply the canonical contract and the conventions visible in target files and the
|
|
|
4
4
|
direct local dependencies. Do not reopen task sources, OpenSpec, `ai_workspace`, or
|
|
5
5
|
unrelated repository areas to discover new rules or redesign approved decisions.
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Implement requirement coverage and preserve existing tests and unrelated behavior.
|
|
8
8
|
- Reuse existing public helpers, APIs, components, tokens, schemas, and test
|
|
9
9
|
patterns that are directly available from the bounded target surface.
|
|
10
10
|
- Keep rendering, transitions, validation, request lifecycle, errors, and side
|
|
11
|
-
effects
|
|
11
|
+
effects clear; defer race and boundary tests to frontend-test.
|
|
12
12
|
- Keep real API behavior enabled by default. Mock activation must follow the
|
|
13
13
|
approved strategy, remain explicit and dev/test-only, and never import test mocks
|
|
14
14
|
into production code.
|
|
15
15
|
- Trace fixtures to the approved API/schema evidence and never store secrets.
|
|
16
16
|
- Do not add unapproved dependencies, relax lint/type/test/build configuration,
|
|
17
17
|
add `.skip`/`.only`, comment out real requests, or write outside `writeSet`.
|
|
18
|
-
- Run
|
|
18
|
+
- Run build and frozen existing tests, updating affected unit tests; report real status. Downstream shell
|
|
19
19
|
verification remains authoritative.
|
|
@@ -15,7 +15,8 @@ language. Do not inspect implementation files or choose components, routes, Mock
|
|
|
15
15
|
mechanisms, dependencies, or target code as requirement facts.
|
|
16
16
|
|
|
17
17
|
Submit confirmed facts incrementally with the contract `record_*` tools and finish
|
|
18
|
-
with
|
|
18
|
+
with one successful `finalize_contract`. Complete each input scope with
|
|
19
|
+
`complete_contract_scope` after all its decisions; correct rejected calls and retry. Start recording as soon as a requirement or
|
|
19
20
|
constraint is confirmed; do not accumulate the whole contract in one response.
|
|
20
21
|
|
|
21
22
|
Missing product semantics may be explicit assumptions only when they do not change
|
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
source-fidelity ledger. Do not infer fragment IDs from prose.
|
|
9
9
|
- Record observable outcomes, applicable UI states, runtime/environment constraints,
|
|
10
10
|
non-goals, risks, and verification expectations without choosing implementation.
|
|
11
|
-
-
|
|
12
|
-
|
|
11
|
+
- Runtime owns requirement text, source binding and disposition. Use typed questions
|
|
12
|
+
and constraints for uncertainties; blocked terminal facts name their owner.
|
|
13
13
|
|
|
14
14
|
## Evidence and handoff
|
|
15
15
|
|
|
16
16
|
- Register static, behavior, Mock, and real-integration evidence expectations as
|
|
17
17
|
required, optional, or not-applicable. The classification follows the source and
|
|
18
|
-
risk; it is not selected for model convenience.
|
|
18
|
+
risk; it is not selected for model convenience. These are source expectations
|
|
19
|
+
for implementation and the frontend-test handoff. Build and existing affected
|
|
20
|
+
unit tests are required here; do not invent a test framework when absent.
|
|
19
21
|
- Register a non-blocking frontend-test handoff for UI-visible or interactive work.
|
|
20
22
|
- Preserve exact command labels and referenced paths. Do not invent evidence,
|
|
21
23
|
connector results, APIs, or verification commands.
|
|
@@ -29,6 +31,22 @@ enumerate or downgrade them.
|
|
|
29
31
|
|
|
30
32
|
## Terminal
|
|
31
33
|
|
|
32
|
-
Commit facts
|
|
34
|
+
Commit facts from the complete current scope, then `complete_contract_scope` only
|
|
35
|
+
after its evidence, constraints and source-bound deliverables are recorded. Scope
|
|
36
|
+
checkpoints survive interruption; confirming an ID alone is not completion.
|
|
37
|
+
Call `finalize_contract` with
|
|
33
38
|
`ready`, `ready-with-assumptions`, or `blocked`. If the task is too large for one
|
|
34
39
|
bounded writer, record a split proposal instead of broadening the contract.
|
|
40
|
+
|
|
41
|
+
A successful receipt means the fact was saved durably. Replays are idempotent;
|
|
42
|
+
changed facts require explicit `replace:true`. Correct rejected calls and retry,
|
|
43
|
+
but do not mutate after a successful terminal. Never drop tail conditions to fit.
|
|
44
|
+
|
|
45
|
+
## Execution ownership
|
|
46
|
+
|
|
47
|
+
`record_requirement` may include `execution:{groupId,kind,summary}`. Use `behavior`,
|
|
48
|
+
`constraint`, or `exclusion`; reuse an existing group only when semantics agree.
|
|
49
|
+
Keep permission, threshold and failure-path differences separate. Do not merge
|
|
50
|
+
source IDs or independent acceptance conditions. Unclassified requirements remain
|
|
51
|
+
independent. Later scopes receive the shared group index. A group is a planning
|
|
52
|
+
proposal; independent design review must check every member's complete text.
|
|
@@ -9,26 +9,27 @@ references:
|
|
|
9
9
|
|
|
10
10
|
# Frontend Design Review
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
capacity diagnostic
|
|
14
|
-
|
|
15
|
-
bound Mock strategy, task bounds, and traceable design evidence supplied by the
|
|
16
|
-
upstream context. Do not rediscover task sources, search specification roots, or
|
|
17
|
-
replace frozen evidence with nearby-code conventions. Use only exact, bound evidence
|
|
18
|
-
paths when additional reading is necessary; never invent connector results.
|
|
12
|
+
Audit the canonical contract or its hash-bound indexed sections, guided by the
|
|
13
|
+
capacity diagnostic. Check Mock strategy, task bounds and exact bound evidence.
|
|
14
|
+
Do not rediscover sources, search specification roots or invent connector results.
|
|
19
15
|
|
|
20
16
|
## Authoritative Terminal
|
|
21
17
|
|
|
22
|
-
|
|
18
|
+
Use `record_design_finding` with stable IDs; correct rejected calls before committing one terminal, which includes saved findings:
|
|
23
19
|
|
|
24
20
|
- `approve_design` when no blocking design defect remains;
|
|
25
21
|
- `request_design_changes` when a blocker exists. It must include a typed
|
|
26
|
-
`issueCategory`, at least one `evidenceRef`, and non-empty findings.
|
|
22
|
+
`issueCategory`, at least one `evidenceRef`, and non-empty findings (saved or supplied).
|
|
27
23
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
Correct findings before completing their scope. Identical replay is safe; `replace:true` requires an existing ID and an unfinished scope.
|
|
25
|
+
|
|
26
|
+
Optional `finding.repairAssertions` may name frozen obligations, e.g. `[{"check":"state-present","token":"loading","source":"AC-1"}]`. Invalid assertions retain the blocker; passing checks still requires semantic review.
|
|
27
|
+
|
|
28
|
+
Only the typed terminal controls the outcome. No `VERDICT:` line, JSON verdict or revision patch. Requested changes end this run; recovery owns follow-up.
|
|
29
|
+
|
|
30
|
+
Check every execution group against its members' complete outcomes. Permissions,
|
|
31
|
+
thresholds and error paths remain independent ACs; a shared VT must prove them all.
|
|
32
|
+
Constraint/exclusion labels never waive source-required behavior evidence.
|
|
32
33
|
|
|
33
34
|
## Blocking Conditions
|
|
34
35
|
|
|
@@ -46,12 +47,9 @@ Knowledge-base absence is advisory if relevant rules from either openspec
|
|
|
46
47
|
specification directory were read and applied. Block skipped fallback, unresolved
|
|
47
48
|
conflict, or unresolved UI decisions.
|
|
48
49
|
|
|
49
|
-
## Method
|
|
50
|
-
|
|
51
|
-
Map criteria to steps/files/states/checks, audit paths/evidence, classify Blocking
|
|
52
|
-
or Advisory, and never edit files.
|
|
50
|
+
## Method
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
Audit criteria, steps, files, states and checks; classify Blocking/Advisory. Never edit files.
|
|
55
53
|
|
|
56
54
|
Read only the canonical contract (or its indexed, hash-bound sections) and any exact
|
|
57
55
|
evidence paths bound in its upstream context. Successful paired reads are the only proof that a specification was read;
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
## Project Fit
|
|
10
10
|
|
|
11
11
|
- Reuse components, hooks, API helpers, mocks, schemas, router patterns, tokens, and theme rules.
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
- Record source status, query terms, paths/headings, conflicts, authorized deps, and allowed paths for both.
|
|
12
|
+
- Audit frozen source status and exact contract/readSet references. Empty knowledge queries require upstream fallback evidence or a recorded gap. Do not search specification roots; report missing required evidence to its upstream owner.
|
|
13
|
+
- Check the recorded source status, query terms, exact paths/headings, conflicts, authorized deps, and allowed paths.
|
|
15
14
|
- Component selection conformance: every UI purpose must be declared in the contract `uiComponentChoices[]`. `specified` must carry a non-empty `specReference { path, section, line }` hitting a supported openspec/ai_workspace spec; `new` must declare a deviation rationale with `specReference` null; a spec-defined component must not be silently replaced or self-invented without a declared deviation.
|
|
16
15
|
|
|
17
16
|
## Interaction / Quality
|
|
@@ -37,7 +36,7 @@
|
|
|
37
36
|
|
|
38
37
|
## Verdict Matrix
|
|
39
38
|
|
|
40
|
-
- Request revision for coverage gaps, unsafe scope, unauthorized deps, unresolved required interaction, missing required verification,
|
|
39
|
+
- Request revision for coverage gaps, unsafe scope, unauthorized deps, unresolved required interaction, missing required verification, missing required upstream specification fallback evidence, unsafe/missing Mock strategy, or Mock evidence presented as real integration.
|
|
41
40
|
- Request revision for component selection non-conformance: spec-defined components silently replaced or self-invented without a declared deviation, `uiComponentChoices` missing for UI-visible work, or a `uiComponentChoices` `specReference.path` not cited in the `openspec-citations` block / not actually read.
|
|
42
41
|
- Knowledge-base unavailable but relevant OpenSpec or `ai_workspace/` rules applied is advisory only.
|
|
43
42
|
- Optional cleanup that cannot affect acceptance is advisory.
|
|
@@ -4,7 +4,7 @@ description: Use only for the tool-only frontend decision planning node.
|
|
|
4
4
|
references:
|
|
5
5
|
- path: references/decision-contract.md
|
|
6
6
|
required: true
|
|
7
|
-
maxChars:
|
|
7
|
+
maxChars: 6800
|
|
8
8
|
- path: references/design-decisions.md
|
|
9
9
|
required: true
|
|
10
10
|
maxChars: 3400
|
|
@@ -21,6 +21,28 @@ requirement coverage, component/styling choices, applicable states and interacti
|
|
|
21
21
|
data/Mock strategy, deviations, and dependency policy. Process a bounded requirement
|
|
22
22
|
slice and record facts immediately rather than reasoning over the whole task first.
|
|
23
23
|
|
|
24
|
+
UX vocabulary is global, not per-requirement: commit `record_state_registry`
|
|
25
|
+
(one stable behavior-domain name per state/interaction) before any
|
|
26
|
+
`record_state_flow`, bind UI states to the contract's declared authoritative ids,
|
|
27
|
+
and let one component choice cover many ids via `covers`. `reuse-existing` must
|
|
28
|
+
cite `evidencePath` of an existing file; greenfield is `decision=new`.
|
|
29
|
+
Bind every file in the Contract-owned `requiredDeliverables` inventory. It records
|
|
30
|
+
explicit source obligations, not every path mentioned by a requirement.
|
|
31
|
+
|
|
32
|
+
Large UX work runs in bounded scopes against that shared registry. Complete every
|
|
33
|
+
assigned requirement; preserve earlier scopes' shared bindings when correcting an
|
|
34
|
+
entry. Ledger previews are incomplete. Use `read_plan_facts` to retrieve full
|
|
35
|
+
fields, following `nextOffset` with `expectedRevision` pinned. For oversized
|
|
36
|
+
strings use `stringOffset` and follow `nextStringOffset`; restart pagination when
|
|
37
|
+
the revision changes. Never submit a truncated preview as a replacement payload.
|
|
38
|
+
|
|
39
|
+
Verification targets declare `requirementIds`; the runtime derives reverse
|
|
40
|
+
requirement citations across committed slices. Do not re-commit a target merely
|
|
41
|
+
to register the reverse relation. Use `replace=true` only to correct its facts;
|
|
42
|
+
replacement is complete, so preserve all still-valid bindings.
|
|
43
|
+
|
|
24
44
|
The runtime owns protected skeleton fields, path/command validation, materialization,
|
|
25
|
-
and final schema checks.
|
|
26
|
-
|
|
45
|
+
and final schema checks. Stop after the assigned facts are committed: the runtime
|
|
46
|
+
compiles and finalizes automatically. Correction sessions only repair the reported
|
|
47
|
+
facts; they do not invoke a terminal tool. Return no Markdown narrative. Record a
|
|
48
|
+
genuine evidence gap when frozen facts are insufficient.
|
|
@@ -8,17 +8,109 @@
|
|
|
8
8
|
behavior. IDs and paths alone are not behavioral coverage.
|
|
9
9
|
- One behavior target may cover multiple related requirements when one observable
|
|
10
10
|
test behavior proves them together.
|
|
11
|
-
- Every non-static verification target `id` is the stable
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
- Every non-static verification target `id` is the stable identifier of that
|
|
12
|
+
contract entry only; it never needs to appear in test titles. Do not add tests
|
|
13
|
+
or rename titles to carry generated ids.
|
|
14
14
|
- Static targets are for project-wide commands and are traced by file and command
|
|
15
15
|
only.
|
|
16
16
|
|
|
17
|
+
### Behavior target shape (canonical example)
|
|
18
|
+
|
|
19
|
+
Each behavior target names the requirements it proves and declared UI states it
|
|
20
|
+
exercises. Empty `requirementIds`, or empty `uiStates` when any state/interaction
|
|
21
|
+
is declared, is rejected. Copy state names verbatim; never invent synonyms.
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"id": "VT-COUNTER-LOCAL-CONSTRAINTS",
|
|
26
|
+
"file": "src/App.test.tsx",
|
|
27
|
+
"requirementIds": ["AC-FE-001", "AC-FE-005"],
|
|
28
|
+
"uiStates": ["disabled-minus", "default"]
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`stylingStrategy` describes how the frozen look is achieved; it must stay inside
|
|
33
|
+
the task's declared scope. Capabilities the task source lists as non-goals (e.g.
|
|
34
|
+
responsive/mobile layout, animations) must not be promised here, and themes or
|
|
35
|
+
CSS conventions must not be claimed without a Scout-confirmed repository fact.
|
|
36
|
+
|
|
37
|
+
### UI state declaration shape (canonical example)
|
|
38
|
+
|
|
39
|
+
Use the exact state names referenced by behavior targets. Each applicable state
|
|
40
|
+
carries behavior, implementation targets, and verification target ids:
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"uiStates": [
|
|
45
|
+
{
|
|
46
|
+
"name": "disabled-minus",
|
|
47
|
+
"applicable": true,
|
|
48
|
+
"expectedBehavior": "minus button disabled at count 0",
|
|
49
|
+
"implementationTargets": ["src/components/SmokeCounter.tsx"],
|
|
50
|
+
"verificationTargetIds": ["VT-COUNTER-LOCAL-CONSTRAINTS"]
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"interactions": [
|
|
54
|
+
{
|
|
55
|
+
"name": "refresh",
|
|
56
|
+
"trigger": "User clicks refresh",
|
|
57
|
+
"expectedBehavior": "reloads runs",
|
|
58
|
+
"implementationTargets": ["src/App.tsx"],
|
|
59
|
+
"verificationTargetIds": ["VT-SMOKE-COUNTER-BEHAVIOR"]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Implementation target coverage (canonical example)
|
|
66
|
+
|
|
67
|
+
`targets.files` is the union of every requirement's `implementationTargets`; list
|
|
68
|
+
each required component, integration point, and sibling source. Admission adds
|
|
69
|
+
non-static verification target files to the writer writeSet separately.
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"id": "AC-FE-001",
|
|
74
|
+
"implementationTargets": [
|
|
75
|
+
"src/components/SmokeCounter.tsx",
|
|
76
|
+
"src/App.tsx"
|
|
77
|
+
],
|
|
78
|
+
"verificationTargetIds": [
|
|
79
|
+
"VT-SMOKE-COUNTER-BEHAVIOR",
|
|
80
|
+
"VT-COUNTER-LOCAL-CONSTRAINTS"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Bidirectional VT cross-reference invariant
|
|
86
|
+
|
|
87
|
+
Every requirement → VT citation must close in both directions: the cited VT's
|
|
88
|
+
`requirementIds` must list the citing requirement back. The checker reports the
|
|
89
|
+
missing direction; fix it in-node by re-submitting the corrected VT entry with
|
|
90
|
+
the same id and `replace=true`. `replace` is a full replacement: the latest
|
|
91
|
+
submission under an id becomes the authoritative entry (a subset re-submission
|
|
92
|
+
is the new rule). A `duplicate` receipt is a correction invitation, not a
|
|
93
|
+
prohibition, and a reverse-reference backfill is not "re-deriving committed
|
|
94
|
+
facts".
|
|
95
|
+
|
|
96
|
+
## UX vocabulary (registry first)
|
|
97
|
+
|
|
98
|
+
- Record `record_state_registry` BEFORE any `record_state_flow`: one compact
|
|
99
|
+
global vocabulary of UI-state and interaction names. Details use complete execution
|
|
100
|
+
group scopes; reuse shared names across scopes, never one name per AC or a
|
|
101
|
+
rename of an already-recorded concept (kebab-case behavior-domain names, e.g.
|
|
102
|
+
`planner-task-edit`, `focus-queue-move`).
|
|
103
|
+
- UI states use the contract's declared authoritative ids (`declaredUiStates`
|
|
104
|
+
in the plan input) when the source declares a state table.
|
|
105
|
+
- Retry slices see `committedUx` in the plan input: reuse those exact names.
|
|
106
|
+
|
|
17
107
|
## Global decisions
|
|
18
108
|
|
|
19
109
|
Keep route/component placement, Mock/data strategy, and dependency/deviation policy
|
|
20
|
-
|
|
21
|
-
|
|
110
|
+
global. Use only frozen command labels and Scout-confirmed paths.
|
|
111
|
+
|
|
112
|
+
One component choice may cover many states/interactions via `covers`.
|
|
113
|
+
`reuse-existing` requires an existing-file `evidencePath`; greenfield uses `new`.
|
|
22
114
|
|
|
23
115
|
For Mock/API, keep the real request path enabled by default. Select only a strategy
|
|
24
116
|
allowed by the frozen task capability. Active Mock requires deterministic Mock-backed
|
|
@@ -32,6 +124,23 @@ widen the write set.
|
|
|
32
124
|
## Runtime-owned fields and terminal
|
|
33
125
|
|
|
34
126
|
The runtime owns `schemaVersion`, `sourceBinding`, risk, canonical target files,
|
|
35
|
-
aliases, command allowlisting, path containment, and final
|
|
36
|
-
editable decision facts, then call `finalize_plan
|
|
37
|
-
design policy materializes the canonical implementation
|
|
127
|
+
`requiredDeliverables`, aliases, command allowlisting, path containment, and final
|
|
128
|
+
validation. Submit editable decision facts, then call `finalize_plan`; correct
|
|
129
|
+
rejected facts and retry until one successful terminal commit. The deterministic design policy materializes the canonical implementation
|
|
130
|
+
contract: every file in the Contract's explicit source-bound delivery inventory
|
|
131
|
+
must be planned (`requiredDeliverables` gate). Permissions, prohibitions, examples
|
|
132
|
+
and read-only references do not create delivery obligations. Plan receives this
|
|
133
|
+
inventory as `requiredDeliverables`; it cannot add, remove or reinterpret it.
|
|
134
|
+
Missing files and UX name collisions are reported by finalize_plan before commit
|
|
135
|
+
and checked again by the policy shell.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
Use `record_plan_group_coverage` for a complete declared execution group with shared
|
|
139
|
+
targets/VTs; runtime expands to all canonical members. Submit individual coverage
|
|
140
|
+
for differences. Constraints/exclusions create no invented UI or tests; keep genuine
|
|
141
|
+
evidence gaps, and never weaken behavior evidence required by the source.
|
|
142
|
+
|
|
143
|
+
Submit Mock policy with `record_mock_api` and empty endpoints, then one endpoint per
|
|
144
|
+
`record_mock_endpoint`. Use `replace:true` for revisions, plus `remove:true` to
|
|
145
|
+
withdraw an endpoint. Use stable finding/fact identities; successful receipts mean
|
|
146
|
+
durable commits. Resume missing work instead of regenerating full JSON or history.
|
|
@@ -15,3 +15,35 @@ Contract. Do not search specification roots or nearby code from Plan.
|
|
|
15
15
|
responsive, and accessibility behavior; use not-applicable only with a reason.
|
|
16
16
|
- Record styling strategy, deviations, conflicts, and unresolved gaps explicitly.
|
|
17
17
|
Never silently replace a spec-defined component or claim unread evidence.
|
|
18
|
+
|
|
19
|
+
### Component choice shape (canonical example)
|
|
20
|
+
|
|
21
|
+
`purpose` must exactly match a declared UI state or interaction name — it is the
|
|
22
|
+
coverage key the deterministic policy checks. Do not invent synonyms, and never
|
|
23
|
+
swap a task-mandated component for another name without recording a deviation.
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
[
|
|
27
|
+
{
|
|
28
|
+
"purpose": "disabled-minus",
|
|
29
|
+
"component": "SmokeCounter",
|
|
30
|
+
"decision": "new",
|
|
31
|
+
"sourceRequirementIds": ["AC-FE-001"],
|
|
32
|
+
"sourceFragmentId": "REQ-SRC-AC-FE-001",
|
|
33
|
+
"rationale": "task mandates a new SmokeCounter card on the home surface"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"purpose": "refresh",
|
|
37
|
+
"component": "RunFilterBar",
|
|
38
|
+
"decision": "reuse-existing",
|
|
39
|
+
"rationale": "reuses the Scout-confirmed filter bar for the refresh interaction"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
For `decision: "new"`, pass `sourceRequirementIds` + `sourceFragmentId` and let
|
|
45
|
+
the runtime derive the exact task-source citation — never hand-write a
|
|
46
|
+
`specReference`. A `reuse-existing` choice covers behavioural interactions
|
|
47
|
+
without one row per interaction; each applicable visual UI state still needs its
|
|
48
|
+
own `purpose` match (or an explicitly scoped stylingStrategy covering the visual
|
|
49
|
+
dimension).
|
|
@@ -4,57 +4,50 @@ description: Use to review completed frontend code and verification before close
|
|
|
4
4
|
references:
|
|
5
5
|
- path: references/review-findings.md
|
|
6
6
|
required: true
|
|
7
|
-
maxChars:
|
|
7
|
+
maxChars: 3200
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Frontend Review
|
|
11
11
|
|
|
12
|
-
Use
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
design-review prose, OpenSpec, or `ai_workspace/`; the bound context is authoritative.
|
|
12
|
+
Use `contracts/frontend-review-context.json`, its hash-bound contract index and diff,
|
|
13
|
+
and the supplied hash-bound test-source/report scopes (including unchanged tests). Read the findings guide and capacity diagnostic;
|
|
14
|
+
use indexed sections when advised. Do not reopen task sources, plans, OpenSpec,
|
|
15
|
+
design-review prose or `ai_workspace/`.
|
|
17
16
|
|
|
18
17
|
## Authoritative Terminal
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Submit findings one at a time with `record_review_finding` (stable IDs,
|
|
20
|
+
`replace:true` for revisions). The terminal auto-includes saved findings; correct
|
|
21
|
+
rejected calls, then commit one successful terminal:
|
|
21
22
|
|
|
22
23
|
- `approve_review` when no Critical/Important finding remains;
|
|
23
24
|
- `request_review_changes` for a defect, missing required evidence, forbidden
|
|
24
25
|
write, or unmet acceptance criterion. It must include a typed `issueCategory`,
|
|
25
|
-
at least one `evidenceRef`, and non-empty findings.
|
|
26
|
+
at least one `evidenceRef`, and non-empty findings (saved or supplied).
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
Save and correct every finding before completing its scope. An identical finding is an idempotent replay; `replace:true` requires an existing ID and cannot modify a completed scope/terminal.
|
|
29
|
+
|
|
30
|
+
Optional `finding.repairAssertions` may name frozen obligations, e.g. `[{"check":"state-present","token":"loading","source":"AC-1"}]`. Invalid assertions retain the blocker; passing checks still requires semantic review.
|
|
31
|
+
|
|
32
|
+
Only the typed terminal controls the outcome; no `VERDICT:` line or JSON verdict.
|
|
33
|
+
Requested changes end this run; the recovery controller owns follow-up.
|
|
31
34
|
|
|
32
35
|
## Review Scope
|
|
33
36
|
|
|
37
|
+
Follow the findings guide's review sequence and pass rules. In addition:
|
|
38
|
+
|
|
34
39
|
- Compare intent, contract, plan, diff, and evidence; report altered requirements.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
strategies, compare the endpoint matrix, handler/fixture/adapter and consumer diff;
|
|
41
|
-
require the real request as default, contract-aligned fixtures, production isolation,
|
|
42
|
-
and no false real-integration claim. `not-needed` needs applicable real/no-remote
|
|
43
|
-
evidence, or an explicit default-auto skipped-Mock rationale with the Real
|
|
40
|
+
Check every changed file against allowed/forbidden/approved write scope, and map
|
|
41
|
+
criteria to behavior, applicable UI states, tests, and shell evidence.
|
|
42
|
+
- Mock strategies need the real request as default, contract-aligned fixtures,
|
|
43
|
+
production isolation, and no false real-integration claim; `not-needed` needs
|
|
44
|
+
real/no-remote evidence, or a default-auto skipped-Mock rationale with the Real
|
|
44
45
|
Integration Gap preserved when no project Mock capability is confirmed.
|
|
45
|
-
- Inspect lint
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
- Inspect lint only when `lintConfigured: true`; with `lintConfigured: false` there
|
|
47
|
+
is no lint surface — report no lint finding. Typecheck, build, and test still
|
|
48
|
+
require successful exits.
|
|
49
|
+
- Read shell exit status from `verificationEvidence.commands`, not prose or the
|
|
50
|
+
trace: the trace proves binding only, never that a command succeeded. Judge
|
|
51
|
+
whether the tests are sufficient; do not guess whether the commands ran.
|
|
49
52
|
- Evaluate component/design claims against bound evidence; do not replace it with a
|
|
50
|
-
repository-wide search or connector query.
|
|
51
|
-
- Treat shell exit status as authoritative. Do not edit files.
|
|
52
|
-
|
|
53
|
-
## Evidence And Output
|
|
54
|
-
|
|
55
|
-
Findings cite a tight file location, exact command/result, or named DAG artifact.
|
|
56
|
-
Separate confirmed defects, missing evidence, and residual risks using Findings,
|
|
57
|
-
Verification Assessment, UX Assessment, and Residual Risks headings.
|
|
58
|
-
|
|
59
|
-
A pass requires no Critical/Important findings and all required shell checks passed.
|
|
60
|
-
Still report knowledge-source status and optional browser/manual gaps.
|
|
53
|
+
repository-wide search or connector query. Do not edit files.
|