reasonweave 0.0.0-stage → 1.3.2
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 +101 -0
- package/INSTALL.md +258 -0
- package/README.md +280 -2
- package/bin/lab.mjs +888 -0
- package/constitution.md +55 -0
- package/docs/CONSUMER-PROMPTS.md +474 -0
- package/docs/backlogs/01-forward-wait-self-detach.md +18 -0
- package/docs/backlogs/02-decouple-wait-and-daemon-for-agent-hosts.md +35 -0
- package/docs/backlogs/03-baton-wait-multi-id-lightweight-pubsub.md +34 -0
- package/docs/backlogs/04-adr-cross-repo-automated-dispatch-boundary.md +19 -0
- package/docs/backlogs/05-feat-units-worktree-isolation-engine.md +23 -0
- package/docs/backlogs/06-feat-blind-audit-automated-clean-runner.md +22 -0
- package/docs/backlogs/07-feat-attention-throttle-silent-pipe.md +23 -0
- package/docs/backlogs/08-future-units-shadow-ledger.md +22 -0
- package/docs/backlogs/09-feat-agent-baton-core-convergence-and-resilience.md +42 -0
- package/docs/backlogs/10-feat-anti-orphan-deterministic-wiring-governance.md +35 -0
- package/docs/backlogs/11-perf-orphan-index-fs-read.md +16 -0
- package/docs/backlogs/12-feat-vibe-security-anti-suppression-and-orphan-deps.md +43 -0
- package/docs/backlogs/13-feat-sdd-reppit-tiered-guardrails.md +40 -0
- package/docs/backlogs/14-feat-universal-cli-contract-and-hermetic-test-fixtures.md +48 -0
- package/docs/backlogs/15-feat-reasonweave-rebranding-and-doc-code-synchronization-invariant.md +44 -0
- package/docs/backlogs/16-feat-micro-engineering-skills-and-sdd-baton-fusion.md +52 -0
- package/docs/codegraph-readiness-check.md +49 -0
- package/group/architecture/adr/0001-handoff-async-wait-and-reactive-wakeup.md +87 -0
- package/group/architecture/adr/0002-de-ritualize-handoff-prompt-for-intra-repo.md +53 -0
- package/group/architecture/adr/0003-attention-throttle-and-workspace-driver.md +65 -0
- package/group/architecture/adr/0004-spec-guard-and-drift-prevention.md +90 -0
- package/group/architecture/adr/0005-global-orphan-scavenger-and-read-only-invariants.md +94 -0
- package/group/architecture/adr/0006-triad-engineering-defense-and-mutation-sensitivity.md +68 -0
- package/group/architecture/adr/0007-agent-baton-state-machine-defense-and-workspace-jail-spec.md +86 -0
- package/group/architecture/adr/0008-agent-baton-core-convergence-and-heterogeneous-session-resilience.md +133 -0
- package/group/architecture/adr/0009-anti-orphan-deterministic-wiring-governance-and-federated-guardrails.md +108 -0
- package/group/architecture/adr/0010-agent-baton-identity-security-cryptographic-credentials-and-prompt-anti-confusion.md +119 -0
- package/group/architecture/adr/0011-vibe-security-anti-suppression-and-dependency-reachability.md +161 -0
- package/group/architecture/adr/0012-spec-driven-development-reppit-and-tiered-guardrails.md +130 -0
- package/group/architecture/adr/0013-universal-cli-contract-hermetic-testing-and-defensive-probes.md +110 -0
- package/group/architecture/adr/0014-reasonweave-rebranding-and-doc-code-synchronization-invariant.md +108 -0
- package/group/architecture/adr/0015-micro-engineering-skills-and-dual-core-gate-invariant.md +127 -0
- package/group/architecture/adr/INDEX.md +29 -0
- package/group/architecture/adr/templates/adr-template.md +33 -0
- package/group/architecture/dependency-graph.md +60 -0
- package/group/contracts/npm-packaging.md +69 -0
- package/group/product/intent.md +24 -0
- package/package.json +93 -4
- package/scripts/sync-all-consumers.mjs +174 -0
- package/specs/RFC-20261110-SPEC-GUARD-UNIT.md +353 -0
- package/specs/templates/01-research.md.template +23 -0
- package/specs/templates/02-proposals.md.template +22 -0
- package/specs/templates/03-spec.md.template +33 -0
- package/specs/templates/04-tasks.md.template +29 -0
- package/specs/templates/05-evidence.md.template +29 -0
- package/specs/templates/README.md +26 -0
- package/units/adr/AGENTS.md +85 -0
- package/units/adr/CHANGELOG.md +20 -0
- package/units/adr/README.md +88 -0
- package/units/adr/VERSION.md +10 -0
- package/units/adr/docs/existing-project-prompt.md +24 -0
- package/units/adr/docs/new-project-prompt.md +36 -0
- package/units/adr/scripts/adr-init.sh +101 -0
- package/units/adr/templates/INDEX.md +19 -0
- package/units/adr/templates/adr-frozen.md +33 -0
- package/units/adr/templates/adr-light.md +56 -0
- package/units/adr/templates/adr-standard.md +61 -0
- package/units/backlog/AGENTS.md +53 -0
- package/units/backlog/AUTONOMOUS-GOVERNANCE.md +98 -0
- package/units/backlog/CHANGELOG.md +37 -0
- package/units/backlog/README.md +124 -0
- package/units/backlog/VERSION.md +11 -0
- package/units/backlog/docs/existing-project-ironrules-prompt.md +31 -0
- package/units/backlog/docs/existing-project-prompt.md +24 -0
- package/units/backlog/docs/new-project-prompt.md +19 -0
- package/units/backlog/templates/entry.md +39 -0
- package/units/backlog/templates/project-ironrules.md +36 -0
- package/units/handoffs/AGENT-GUIDE.md +118 -0
- package/units/handoffs/AGENTS.md +28 -0
- package/units/handoffs/CHANGELOG.md +498 -0
- package/units/handoffs/CLAUDE.md +28 -0
- package/units/handoffs/COMMANDS.md +187 -0
- package/units/handoffs/DESIGN.md +74 -0
- package/units/handoffs/README.md +456 -0
- package/units/handoffs/RESPONSE-TEMPLATE.md +138 -0
- package/units/handoffs/VERSION.md +1 -0
- package/units/handoffs/handoff-status.mjs +1017 -0
- package/units/handoffs/handoff.mjs +5675 -0
- package/units/orphan/CHANGELOG.md +118 -0
- package/units/orphan/DESIGN.md +484 -0
- package/units/orphan/README.md +143 -0
- package/units/orphan/VERSION.md +1 -0
- package/units/orphan/adapters/android/index.mjs +140 -0
- package/units/orphan/adapters/python/index.mjs +232 -0
- package/units/orphan/adapters/web/index.mjs +280 -0
- package/units/orphan/bin/lab-orphan.mjs +298 -0
- package/units/orphan/core/blob-reader.mjs +142 -0
- package/units/orphan/core/classifier.mjs +261 -0
- package/units/orphan/core/cleaner.mjs +166 -0
- package/units/orphan/core/diff-checker.mjs +341 -0
- package/units/orphan/core/inverted-index.mjs +124 -0
- package/units/orphan/core/orphan-deps.mjs +192 -0
- package/units/orphan/core/protocol-s1-s3.mjs +194 -0
- package/units/orphan/core/solver.mjs +217 -0
- package/units/orphan/index.mjs +105 -0
- package/units/orphan/templates/ci/orphan-guard.yml +36 -0
- package/units/orphan/templates/pre-commit.d/30-orphan-guard +34 -0
- package/units/orphan/templates/wiring/README.md +51 -0
- package/units/orphan/templates/wiring/miniprogram-route-guard.js.template +80 -0
- package/units/orphan/templates/wiring/pre-commit-node.sh.template +73 -0
- package/units/orphan/templates/wiring/project-agents-gemini-templates.md +60 -0
- package/units/orphan/templates/wiring/python-parity-test.py.template +100 -0
- package/units/orphan/templates/wiring/rust-exhaustive-match.md +65 -0
- package/units/orphan/templates/wiring/swift-periphery.md +56 -0
- package/units/orphan/tests/adapters.test.mjs +243 -0
- package/units/orphan/tests/orphan-deps.test.mjs +131 -0
- package/units/orphan/tests/phase3-gates.test.mjs +135 -0
- package/units/playbook/README.md +106 -0
- package/units/playbook/ZSPEC-AGENT-GUIDE.md +99 -0
- package/units/playbook/docs/01-architecture.md +99 -0
- package/units/playbook/docs/02-bootstrap.md +126 -0
- package/units/playbook/docs/03-units.md +91 -0
- package/units/playbook/docs/04-constitution.md +113 -0
- package/units/playbook/docs/05-adr.md +33 -0
- package/units/playbook/docs/06-spec-kit.md +76 -0
- package/units/playbook/docs/07-backlog.md +30 -0
- package/units/playbook/docs/08-codegraph.md +79 -0
- package/units/playbook/docs/09-skills.md +101 -0
- package/units/playbook/docs/10-handoff.md +72 -0
- package/units/playbook/docs/11-evidence.md +163 -0
- package/units/playbook/docs/12-gates.md +124 -0
- package/units/playbook/docs/13-parallel.md +115 -0
- package/units/playbook/docs/14-dependency-graph.md +86 -0
- package/units/playbook/docs/15-memory.md +153 -0
- package/units/playbook/docs/16-change-control.md +121 -0
- package/units/playbook/docs/17-prompts.md +121 -0
- package/units/playbook/docs/18-shift-left.md +97 -0
- package/units/playbook/docs/19-anti-orphan-vertical-slicing.md +102 -0
- package/units/playbook/docs/20-vibe-security-and-anti-suppression.md +88 -0
- package/units/playbook/docs/21-spec-driven-reppit-closed-loop.md +88 -0
- package/units/playbook/examples/owisel.md +80 -0
- package/units/playbook/references/Agent-Engineering-Framework-AEF-v1.0.md +2033 -0
- package/units/playbook/references/links.md +103 -0
- package/units/playbook/templates/AGENTS.root.md +44 -0
- package/units/playbook/templates/AGENTS.unit.md +52 -0
- package/units/playbook/templates/adr/INDEX.md +17 -0
- package/units/playbook/templates/adr/NNNN-template.md +56 -0
- package/units/playbook/templates/backlogs/entry.md +30 -0
- package/units/playbook/templates/constitution.md +93 -0
- package/units/playbook/templates/evidence/README.md +36 -0
- package/units/playbook/templates/group/architecture/dependency-graph.md +48 -0
- package/units/playbook/templates/group/architecture/system.md +59 -0
- package/units/playbook/templates/group/contracts/api.md +67 -0
- package/units/playbook/templates/group/product/intent.md +30 -0
- package/units/playbook/templates/group/product/requirements.md +48 -0
- package/units/playbook/templates/unit-skeleton/README.md +35 -0
- package/units/preflight/AGENTS.md +45 -0
- package/units/preflight/CHANGELOG.md +55 -0
- package/units/preflight/INSTALL.md +65 -0
- package/units/preflight/README.md +104 -0
- package/units/preflight/VERSION.md +3 -0
- package/units/preflight/docs/audit-requirements.md +114 -0
- package/units/preflight/docs/existing-project-prompt.md +25 -0
- package/units/preflight/docs/new-project-prompt.md +25 -0
- package/units/preflight/docs/transfers/CONSUMER-INSTALL.md +40 -0
- package/units/preflight/docs/transfers/CONSUMER-SELFCHECK.md +51 -0
- package/units/preflight/docs/transfers/README.md +39 -0
- package/units/preflight/docs/transfers/prospero.md +26 -0
- package/units/preflight/templates/check.sh +43 -0
- package/units/preflight/templates/pre-commit +55 -0
- package/units/preflight/templates/pre-commit.d/20-preflight +15 -0
- package/units/preflight/templates/preflight.conf.example +21 -0
- package/units/preflight/templates/preflight.sh +189 -0
- package/units/preflight/templates/wrap-up.md +9 -0
- package/units/review-gate/AGENTS.md +42 -0
- package/units/review-gate/CHANGELOG.md +58 -0
- package/units/review-gate/README.md +118 -0
- package/units/review-gate/VERSION.md +3 -0
- package/units/review-gate/clean-runner.mjs +350 -0
- package/units/review-gate/docs/existing-project-prompt.md +28 -0
- package/units/review-gate/docs/new-project-prompt.md +38 -0
- package/units/review-gate/docs/transfers/iggle.md +34 -0
- package/units/review-gate/docs/transfers/prospero.md +35 -0
- package/units/review-gate/docs/transfers/swoop.md +36 -0
- package/units/review-gate/docs/transfers/yiqiyihuihua.md +35 -0
- package/units/review-gate/templates/.semgrepignore +37 -0
- package/units/review-gate/templates/pre-commit +130 -0
- package/units/review-gate/templates/scan.sh +158 -0
- package/units/skills/AGENTS.md +17 -0
- package/units/skills/CHANGELOG.md +18 -0
- package/units/skills/README.md +63 -0
- package/units/skills/VERSION.md +1 -0
- package/units/skills/bin/review-package.mjs +99 -0
- package/units/skills/bin/task-brief.mjs +102 -0
- package/units/skills/catalog/brainstorming/SKILL.md +75 -0
- package/units/skills/catalog/brainstorming/references/design-doc-template.md +28 -0
- package/units/skills/catalog/systematic-debugging/SKILL.md +101 -0
- package/units/skills/catalog/systematic-debugging/references/root-cause-tracing.md +23 -0
- package/units/skills/catalog/test-driven-development/SKILL.md +88 -0
- package/units/skills/catalog/test-driven-development/references/writing-good-tests.md +13 -0
- package/units/skills/catalog/verification-before-completion/SKILL.md +73 -0
- package/units/skills/skills.mjs +181 -0
- package/units/skills/tests/pipeline.test.mjs +131 -0
- package/units/skills/tests/skill-contract.test.mjs +67 -0
- package/units/skills/tests/skills-cli.test.mjs +107 -0
- package/units/spec-guard/AGENTS.md +43 -0
- package/units/spec-guard/CHANGELOG.md +88 -0
- package/units/spec-guard/README.md +148 -0
- package/units/spec-guard/VERSION.md +1 -0
- package/units/spec-guard/bin/spec-guard.mjs +431 -0
- package/units/spec-guard/core/adr-parser.mjs +540 -0
- package/units/spec-guard/core/matrix-checker.mjs +587 -0
- package/units/spec-guard/core/mutation-runner.mjs +267 -0
- package/units/spec-guard/core/scanner.mjs +333 -0
- package/units/spec-guard/core/telemetry_authenticator.mjs +484 -0
- package/units/spec-guard/core/wiring_tracer.mjs +306 -0
- package/units/spec-guard/templates/annotations/ContractOnly.kt +19 -0
- package/units/spec-guard/templates/annotations/Invariant.kt +16 -0
- package/units/spec-guard/templates/annotations/invariant.go +19 -0
- package/units/spec-guard/templates/annotations/invariant.py +38 -0
- package/units/spec-guard/templates/annotations/invariant.ts +39 -0
- package/units/spec-guard/templates/ci/spec-guard-audit.yml +23 -0
- package/units/spec-guard/templates/pre-commit.d/15-spec-guard +72 -0
- package/units/spec-guard/templates/spec-matrix.overlay.yml +70 -0
- package/units/spec-guard/tests/spec-guard.test.mjs +716 -0
- package/units/spec-guard/tests/telemetry_authenticator.test.mjs +633 -0
- package/units/worktree/AGENTS.md +22 -0
- package/units/worktree/CHANGELOG.md +14 -0
- package/units/worktree/README.md +65 -0
- package/units/worktree/VERSION.md +1 -0
- package/units/worktree/worktree.mjs +352 -0
- package//344/275/277/347/224/250/350/257/264/346/230/216.md +322 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Handoff Receipt Specification (RESPONSE-TEMPLATE.md)
|
|
2
|
+
|
|
3
|
+
> This document is the **Single Source of Truth** for writing execution receipts in the Agent Baton protocol.
|
|
4
|
+
> Any agent receiving a baton handoff MUST follow this template strictly.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. Golden Rules of Receipt Writing
|
|
9
|
+
|
|
10
|
+
1. **No Code = No Pass (Evidence-First)**:
|
|
11
|
+
Receipts MUST include verifiable proofs in frontmatter:
|
|
12
|
+
- `evidence_paths`: Comma-separated list of modified files (must exist on disk).
|
|
13
|
+
- `evidence_commits`: The Git commit SHA containing the changes (must be verified via `git cat-file -e`).
|
|
14
|
+
- If no code changes were required (e.g. documentation or audit pass), you MUST provide `evidence_note: "<Detailed explanation>"`.
|
|
15
|
+
2. **Anti-Self-Closing Guarantee**:
|
|
16
|
+
The receipt MUST be written by the receiving party (`to_lane`), NOT the author (`from_lane`).
|
|
17
|
+
If the task targets `to_lane: audit`, the receipt command MUST include the cryptographic challenge token:
|
|
18
|
+
`baton receipt <id> --audit-nonce "<nonce>"`.
|
|
19
|
+
3. **Anti-Orphan & Wiring Proof**:
|
|
20
|
+
Any new primitives, tools, schemas, routes, or UI components MUST be wired into their respective caller trees or registries. Unit tests alone are insufficient for closure without wiring verification evidence.
|
|
21
|
+
4. **Red-Team Three-State Verdict Standard**:
|
|
22
|
+
For security audit, penetration, and adversarial tasks (`to_lane: audit`), test probes MUST strictly use the three-state verdict taxonomy (never lump all adversarial cases into generic BLOCK):
|
|
23
|
+
- `NO_DISPATCH` (Pre-dispatch Hard Intercept): Parameter out-of-bounds, missing lock, unauthorized call. Physical execution count is strictly 0 (`calls == 0`, `status.startsWith("BLOCKED")`).
|
|
24
|
+
- `NO_COMPLETE` (Post-execution Truth Veto): Physical probe/dispatch is allowed, but the verification engine MUST veto settlement and reject issuing completion tokens (MUST NOT output `COMPLETED`; expected `status=FAILED / REJECTED`).
|
|
25
|
+
- `COMPLETE` (Positive Control Baseline): Compliant baseline input MUST achieve 100% `COMPLETED` (serves as positive control against over-defensive false positives).
|
|
26
|
+
5. **Hard Verdict Anchor (Mandatory)**:
|
|
27
|
+
The `## 结论 (Verdict)` section is a strict hard anchor. The receipt MUST contain a clearly stated verdict line (`- **结论**:...` or `<Accepted / Rejected / Verified / NO-GO>`), otherwise `baton receipt` and `baton deliver` will fail closed (Exit 1). Omitting the verdict section to bypass checks is strictly forbidden.
|
|
28
|
+
6. **Copy the Skeleton Verbatim**:
|
|
29
|
+
Do not invent custom markdown structures. Missing required anchors or sections will cause `baton check` and `baton receipt` to fail closed.
|
|
30
|
+
7. **Concise Receiver Verdict Standard (v2.35.2)**:
|
|
31
|
+
When submitting a receipt or verdict back to the initiator, receivers (especially auditors) MUST NOT format their response as a multi-line outbound dispatch card (`请 [xxx] 接单...`). The receiver's final prompt MUST be a concise one-line verdict:
|
|
32
|
+
- Rejection (NO-GO): `审计完成,裁决 NO-GO(工单已退回实现方进入 Round <N>)`
|
|
33
|
+
- Pass (GO): `审计完成,裁决 GO` (or `交付完成,回执已就绪`)
|
|
34
|
+
The initiator is solely responsible for calculating and carrying the next `Round` in subsequent outbound handoff cards.
|
|
35
|
+
8. **Tiered SDD & Exploit-First Security Proof (ADR-0012)**:
|
|
36
|
+
- **Tier 1 (Lightweight · Low Blast Radius)**: Single parameter passthrough, documentation fix, localized single-branch fix. Normal unit test and fast gate pass suffices; no need for heavy proposal comparison or negative exploit tests.
|
|
37
|
+
- **Tier 2 (Critical · High Blast Radius / Security / Cross-Unit)**:
|
|
38
|
+
- **Vertical Slice Proof**: Must prove end-to-end integration (impl + registration + caller entrypoint + test; `lab-orphan check-diff` must show 0 orphan exports).
|
|
39
|
+
- **Exploit-First Proof (先红后绿)**: For bug/vulnerability remediation, the executor MUST prove the negative test failed before the fix (`exit != 0` on unpatched codebase) and passes after the fix (`exit == 0`). "Self-reported fix" without initial exploit proof is rejected.
|
|
40
|
+
- **Tool Profile Governance**: When the handoff specifies `tool_profile: readonly`, the executor is strictly forbidden from mutating production code (`evidence_paths` must only contain readonly logs/reports/reviews or sandbox files; production code changes will be hard blocked by `baton receipt`).
|
|
41
|
+
9. **Two-Stage Review Contract (ADR-0015)**:
|
|
42
|
+
For code review and auditing tasks, evaluation MUST be decoupled into two independent dimensions:
|
|
43
|
+
- **Stage 1: Spec Compliance (规格与契约符合度)**: Does the implementation strictly fulfill all explicit requirements, boundary conditions, and interfaces without unapproved deviations or reductions?
|
|
44
|
+
- **Stage 2: Code Quality & Architecture (代码与架构质量)**: Is the code clean, robust, anti-orphan, properly tested, type-safe, and free from regression or dead code?
|
|
45
|
+
Both stages must pass for a final `GO` verdict. Any critical finding in either stage triggers `NO-GO` / `REJECTED`.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 2. Receipt Template (Copy Directly)
|
|
50
|
+
|
|
51
|
+
```markdown
|
|
52
|
+
---
|
|
53
|
+
handoff_id: <ID>
|
|
54
|
+
mode: intra-repo
|
|
55
|
+
from_lane: <receiving-lane>
|
|
56
|
+
to_lane: <author-lane>
|
|
57
|
+
needs_change: false
|
|
58
|
+
evidence_paths: "path/to/file1.ts,path/to/file2.ts"
|
|
59
|
+
evidence_commits: "<git-commit-sha>"
|
|
60
|
+
date: YYYY-MM-DD
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
# Receipt: <ID>
|
|
64
|
+
|
|
65
|
+
## 结论 (Verdict)
|
|
66
|
+
<Accepted / Rejected / Verified> — One concise sentence summarizing the outcome.
|
|
67
|
+
|
|
68
|
+
## 修复状态 (Status & Implementation)
|
|
69
|
+
- What was done: <1-3 bullet points outlining actual modifications>
|
|
70
|
+
- Impact boundary: <list of touched modules or components>
|
|
71
|
+
|
|
72
|
+
## 验收证据 (Evidence & Verification)
|
|
73
|
+
- Commits: `<git-commit-sha>`
|
|
74
|
+
- Modified Paths: `path/to/file1.ts`, `path/to/file2.ts`
|
|
75
|
+
- Verification Commands Executed:
|
|
76
|
+
\`\`\`bash
|
|
77
|
+
<exact command used to verify, e.g. npm test or pnpm check>
|
|
78
|
+
\`\`\`
|
|
79
|
+
- Result Output: <All tests passed, 0 failures, 0 regressions>
|
|
80
|
+
- Tier 2 规约与负向验收证据(关键变更 / 架构调整 / 缺陷修复必填):
|
|
81
|
+
- 垂直切片对账:`lab-orphan check-diff --staged` 结果(0 孤儿断链)
|
|
82
|
+
- 负向测试先红后绿证据(Bug/漏洞修复必填):修复前 Exploit 测试 Exit != 0,修复后 Exit 0
|
|
83
|
+
- 审计三态对照矩阵(红队 / 渗透 / 安全审计必填):
|
|
84
|
+
| 用例 ID | 目标行为 | 预期判据 (Taxonomy) | 实测状态 | 物理调用数 | 结论 |
|
|
85
|
+
|---|---|---|---|---|---|
|
|
86
|
+
| TC-01 | 未授权调用 / 缺锁 | NO_DISPATCH | BLOCKED (事前拦截) | 0 | PASS |
|
|
87
|
+
| TC-02 | 回执伪造 / 地标篡改 | NO_COMPLETE | FAILED (事后否决) | 1 | PASS |
|
|
88
|
+
| TC-03 | 合规基线输入 | COMPLETE | COMPLETED (阳性对照) | 1 | PASS |
|
|
89
|
+
|
|
90
|
+
## 遗留与建议 (Notes & Follow-ups)
|
|
91
|
+
<Optional notes for downstream maintainers or next steps>
|
|
92
|
+
|
|
93
|
+
## 转递提示词 (Baton Pass Prompt)
|
|
94
|
+
> 复制下方提示词转告发起方(同对话多工单精准路由对齐):
|
|
95
|
+
```text
|
|
96
|
+
请【<author-lane-role>】查收【<receiving-lane-role>】回执 [<ID>]:receipts/<ID>-resp.md(<Verdict> · 需发起方改动:<是/否>)
|
|
97
|
+
```
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 3. How to Submit the Receipt
|
|
103
|
+
|
|
104
|
+
Use the official CLI command to submit and advance the state machine from `forwarded` to `received`:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
baton receipt <ID> \
|
|
108
|
+
--evidence-paths "src/index.ts,tests/index.test.ts" \
|
|
109
|
+
--evidence-commits "<sha>" \
|
|
110
|
+
--audit-nonce "<nonce-if-audit-lane>" \
|
|
111
|
+
-n "## 结论\nVerified and all invariant tests pass."
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 4. Rejection, Rework & Resubmission Lifecycle (v2.25)
|
|
117
|
+
|
|
118
|
+
When verification fails, the author/auditor (`from_lane`) issues a rejection:
|
|
119
|
+
|
|
120
|
+
1. **Rejection by Author**:
|
|
121
|
+
`baton reject <ID> -n "<Specific failure reasons and missing criteria>"`
|
|
122
|
+
- State flips back: `received/delivered → forwarded`.
|
|
123
|
+
- Rejection record is appended to the receipt under `## 驳回记录`.
|
|
124
|
+
- Content fingerprint is recorded to seal against empty resubmissions.
|
|
125
|
+
2. **Executor Rework**:
|
|
126
|
+
- The executor MUST address the feedback and update code and tests.
|
|
127
|
+
- Resubmit receipt: `baton receipt <ID> -n "<Updated body with revised Verdict>" --evidence-paths "..." --evidence-commits "..."`.
|
|
128
|
+
- The engine automatically backs up previous receipts (`.bak.md`) and preserves `## 驳回记录`.
|
|
129
|
+
3. **Resubmission (baton deliver)**:
|
|
130
|
+
- Run `baton deliver <ID>`.
|
|
131
|
+
- The engine checks for content delta (`rejected_receipt_hash`) and ensures Verdict is NOT `REJECTED`. Empty resubmissions are rejected.
|
|
132
|
+
4. **Final Acceptance (baton accept)**:
|
|
133
|
+
- Initiator verifies independently and runs `baton accept <ID> -n "<Acceptance evidence>"`.
|
|
134
|
+
- The engine verifies Verdict, resolved rejections, and authority before moving to `closed`.
|
|
135
|
+
5. **Reopening Accidental Closures (baton reopen)**:
|
|
136
|
+
- If an item was closed erroneously, the author can recover it:
|
|
137
|
+
`baton reopen <ID> -n "<Reason for reopening>"`
|
|
138
|
+
- State flips back: `closed → forwarded`, clearing stale acceptance timestamps.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v2.38.1 — 2026-11-22
|