Implement two-level branching model and align agent execution governance v2 #585

Merged
weichen merged 46 commits from feature/development-governance-v2 into main 2026-10-17 04:00:43 +00:00
46 Commits
Author SHA1 Message Date
weichenandCursor d648826021 Backfill review, merge and cleanup records for the merged children
ci / svc-realcombo (pull_request) Successful in 2m45s
ci / test (pull_request) Successful in 8m57s
ci / test-pg (pull_request) Successful in 10m15s
Why: The archived child cards still showed NOT_RUN for review, merge and cleanup although all three happened.
Evidence: PR #595/#596 review comments (REPLAY) and CI (GATE); task-finish exit 0 for both child worktrees.
Impact: Archived task cards only.
Refs: PR #585, PR #595, PR #596
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 03:42:10 +00:00
weichen 70321d5c50 Close 1 merged task card(s) and archive them
ci / svc-realcombo (pull_request) Successful in 2m51s
ci / test (pull_request) Successful in 8m28s
ci / test-pg (pull_request) Successful in 10m31s
Why: branches merged into their immediate or root target had left their task cards open; backfill status and archive to prevent bookkeeping debt.
Evidence: feature-development-governance-v2-triage-hardening.md(PR#595 into feature/development-governance-v2) — merges verified via git log --merges plus Gitea API squash lookup against each card's origin target.
Impact: .task/*.md moved to .task/archive/ with status backfilled; no code or submodule change.
Refs: task.sh close (card-autoclose-r1)
2026-10-17 03:41:42 +00:00
weichen ddc5ca0d11 Close 1 merged task card(s) and archive them
ci / svc-realcombo (pull_request) Successful in 2m59s
ci / test (pull_request) Failing after 6m4s
ci / test-pg (pull_request) Successful in 10m18s
Why: branches merged into their immediate or root target had left their task cards open; backfill status and archive to prevent bookkeeping debt.
Evidence: feature-development-governance-v2-target-integrity.md(PR#596 into feature/development-governance-v2) — merges verified via git log --merges plus Gitea API squash lookup against each card's origin target.
Impact: .task/*.md moved to .task/archive/ with status backfilled; no code or submodule change.
Refs: task.sh close (card-autoclose-r1)
2026-10-17 03:41:28 +00:00
weichenandCursor 59c8ee635e Record pre-review sync and final PR check evidence
ci / svc-realcombo (pull_request) Successful in 2m4s
ci / test (pull_request) Successful in 8m12s
ci / test-pg (pull_request) Successful in 9m32s
Why: Phase 4 requires task-sync and the final initiative PR check before review and merge.
Evidence: make evidence SELF receipts for make task-sync (changed=0, sync_base aa3c7ea) and make task-pr-check PR=585 FINAL=1 (PR_CHECK_OK kind=initiative).
Impact: Task card only.
Refs: PR #585
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 03:37:34 +00:00
weichenandCursor 25331b1cd0 Record the two-level rehearsal and freeze verification
ci / svc-realcombo (pull_request) Successful in 2m12s
ci / test (pull_request) Successful in 7m38s
ci / test-pg (pull_request) Successful in 8m25s
Why: Phase 3 requires evidence that real children flowed child -> initiative and that a frozen initiative rejects new children.
Evidence: make evidence SELF receipt for task-triage (NEW) and forced JOIN refusal (exit 7); PR #595/#596 Review and CI records.
Impact: Task card only.
Refs: PR #585, PR #595, PR #596
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 03:31:43 +00:00
weichenandCursor 3a93bd14a2 Freeze initiative intake after the second child merged
ci / test-pg (pull_request) Successful in 8m3s
ci / svc-realcombo (pull_request) Successful in 2m2s
ci / test (pull_request) Successful in 7m7s
Why: Both required children (#595, #596) are merged; the initiative must stop accepting new requirements before final delivery.
Evidence: PR #596 merged as 41bf47c with test/test-pg/svc-realcombo green on 00ae760.
Impact: Task card only; triage no longer offers this initiative as a JOIN candidate.
Refs: PR #585, PR #596
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 03:00:29 +00:00
weichen 41bf47cde0 Merge pull request 'Enforce immediate targets, accept the integration block, and pin draft.12' (#596) from feature/development-governance-v2-target-integrity into feature/development-governance-v2
ci / svc-realcombo (pull_request) Successful in 1m59s
ci / test (pull_request) Successful in 7m18s
ci / test-pg (pull_request) Successful in 7m56s
2026-10-17 02:59:38 +00:00
weichenandCursor 00ae760554 Record the integrated U2.4 policy alignment and Guidelines pin
ci / svc-realcombo (pull_request) Successful in 1m53s
ci / test-pg (pull_request) Successful in 7m27s
ci / test (pull_request) Successful in 7m16s
Why: U2.4 completed with the documented local-clone gitlink pattern; the child is ready for review.
Evidence: make evidence test-governance (1 environmental port conflict) and check-pins (SELF).
Impact: Task card only.
Refs: .task/feature-development-governance-v2-target-integrity.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 02:25:41 +00:00
weichen dfb684830f Record the sync checkpoint
Why: bind the task validation checkpoint to the integration baseline.

Evidence: SELF recursive component checks; sync_base=208f4e8db73cb7f99f62b173000898da3136a0d2; before_record=28833397ab231fbcff625bfcbdcd95ec568ec74d.

Impact: task metadata only.

Refs: .task/feature-development-governance-v2-target-integrity.md
2026-10-17 02:12:45 +00:00
weichen 28833397ab Merge parent initiative feature/development-governance-v2 into the task branch
Why: include the current parent initiative baseline before verification.

Evidence: resolved feature/development-governance-v2=208f4e8db73cb7f99f62b173000898da3136a0d2.

Impact: integrate parent initiative changes without rewriting task history.

Refs: task-sync
2026-10-17 02:12:16 +00:00
agent-exec-transport 35fd99ea96 agent-exec transport e2dbddfcd4e94e2dbfd5019fdd7d2b35/9ed1c816e887 2026-10-17 01:56:56 +00:00
weichenandCursor 6b2e6fd260 Record the failed first U2.4 run and its reconciliation
Why: The worker initialised the submodule, which changed git administration state in its private clone.
Evidence: /tmp/gov2-receipt-u24-r1.json terminal failed-unknown, no transport (SELF).
Impact: Task card only.
Refs: .task/feature-development-governance-v2-target-integrity.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 01:40:10 +00:00
weichenandCursor 208f4e8db7 Record owner decisions on executor distribution and CI credentials
ci / test-pg (pull_request) Failing after 1m26s
ci / svc-realcombo (pull_request) Successful in 1m47s
ci / test (pull_request) Successful in 7m23s
Why: Phase 5-7 depend on how repositories obtain the shared executor and how CI reads private submodules.
Evidence: Owner answers on 2026-10-17; DM secret list shows SUBMODULE_TOKEN (SELF).
Impact: Governance master plan only.
Refs: docs/superpowers/plans/2026-10-16-development-governance-v2-master.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 01:20:36 +00:00
weichenandCursor 33b4cffd1d Record the integrated U2.5 integration block and the equivalence replay
Why: U2.5 completed on a fresh run; the replay compares the reference and shared executors.
Evidence: make evidence agent_exec suites and validate (SELF); replay log 11/12 equal, 1 intended legacy difference (SELF).
Impact: Task card only.
Refs: .task/feature-development-governance-v2-target-integrity.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 19:20:09 +00:00
agent-exec-transport 1c4acb40a4 agent-exec transport 879b9a517efd4e3f85339649d5b00586/395b33d1abda 2026-10-16 19:02:36 +00:00
weichenandCursor 179f03771a Record the integrated U2.2 target-integrity unit and its evidence
Why: U2.2 completed on a fresh run after a scope-expansion stop and was applied by transport.
Evidence: make evidence run of task/recovery/evidence/triage/pr-check tests (SELF).
Impact: Task card only.
Refs: .task/feature-development-governance-v2-target-integrity.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 18:29:07 +00:00
agent-exec-transport 74a834c786 agent-exec transport cd4961f74af64c6ebd54c5fd0bf27d27/d63165e5e315 2026-10-16 18:12:57 +00:00
weichenandCursor 6241285d28 Define goals for the target-integrity child
Why: The child card needs its approved scope before units are dispatched.
Evidence: Triage receipt /tmp/gov2-child2-triage.json verdict JOIN (SELF).
Impact: Task card only.
Refs: .task/feature-development-governance-v2.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 17:17:48 +00:00
weichen f7a78e9b0a Record the task card for feature-development-governance-v2-target-integrity
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-development-governance-v2-target-integrity.md; R0=aa3c7eae40264ee47d5505a162074cfd77b1a099.

Impact: task metadata only; the feature workspace starts at 3524ffd3cc.

Refs: .task/feature-development-governance-v2-target-integrity.md
2026-10-16 17:17:35 +00:00
weichen 3524ffd3cc Record the sync checkpoint
ci / test-pg (pull_request) Failing after 1m37s
ci / test (pull_request) Successful in 7m16s
ci / svc-realcombo (pull_request) Successful in 2m11s
Why: bind the task validation checkpoint to the integration baseline.

Evidence: SELF recursive component checks; sync_base=aa3c7eae40264ee47d5505a162074cfd77b1a099; before_record=304d1a82f4093ad58e7c1df1ffcaa18b433352cc.

Impact: task metadata only.

Refs: .task/feature-development-governance-v2.md
2026-10-16 17:16:00 +00:00
weichen 304d1a82f4 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=aa3c7eae40264ee47d5505a162074cfd77b1a099.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-16 17:15:38 +00:00
weichenandCursor da93b2c44e Reopen intake for the target-integrity child and register children
ci / svc-realcombo (pull_request) Successful in 2m8s
ci / test-pg (pull_request) Successful in 8m41s
ci / test (pull_request) Successful in 7m8s
Why: Phase 2 needs a second child created through the new triage flow, and --final needs a child registry.
Evidence: PR #595 merged into the initiative as ba029e4 (GATE run 3488).
Impact: Initiative task card only; intake is closed again after the second child merges.
Refs: docs/superpowers/plans/2026-10-16-development-governance-v2-master.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 17:15:17 +00:00
weichen ba029e4bdc Merge pull request #595: Add remote triage receipts and the PR base gate
ci / svc-realcombo (pull_request) Successful in 1m52s
ci / test (pull_request) Successful in 7m6s
ci / test-pg (pull_request) Successful in 8m18s
2026-10-16 17:12:30 +00:00
weichenandCursor f8bccba6b5 Record the integrated U2.3 PR base gate and its evidence
ci / svc-realcombo (pull_request) Successful in 2m7s
ci / test (pull_request) Successful in 7m14s
ci / test-pg (pull_request) Successful in 7m48s
Why: U2.3 completed and was applied by transport; the first run was rejected before start.
Evidence: make evidence run of test_task_pr_check and test_ci_credentials (SELF).
Impact: Task card only.
Refs: .task/feature-development-governance-v2-triage-hardening.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 16:58:15 +00:00
agent-exec-transport 09a3bdfb40 agent-exec transport db893a08b5594e8086689933bcd883a5/3bc5f8142666 2026-10-16 16:49:23 +00:00
weichenandCursor e6e5c8a930 Record the integrated U2.1 triage unit and its test evidence
Why: U2.1 completed on the sixth fresh run and was applied by transport.
Evidence: make evidence run of task.sh syntax and 119 triage/task tests (SELF).
Impact: Task card only.
Refs: .task/feature-development-governance-v2-triage-hardening.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 16:35:30 +00:00
agent-exec-transport 602cba9373 agent-exec transport b918a843562d4d29b3efc3da6ee19803/557f53579497 2026-10-16 16:21:24 +00:00
weichenandCursor 16569d38cb Record the fifth U2.1 attempt and the abandoned cursor-disable unit
Why: Both runs ended failed-unknown and must be reconciled before a fresh dispatch.
Evidence: /tmp/gov2-receipt-u21-r5.json, /tmp/ops-receipt-disable-cursor-dev.json (SELF).
Impact: Task card only; nothing integrated.
Refs: .task/feature-development-governance-v2-triage-hardening.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 15:54:11 +00:00
weichenandCursor 80a1cc41a5 Record the fourth U2.1 attempt and its reconciliation
Why: the worker exited before reaching the model because of a TLS network failure.

Evidence: /tmp/gov2-receipt-u21-r4.json; private workspace clean, no remote.

Impact: task metadata only.

Refs: PR #585
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 14:48:52 +00:00
weichenandCursor d5352b77a9 Record the third U2.1 attempt and its reconciliation
Why: the worker's terminal record was followed by a code fence and failed closed.

Evidence: /tmp/gov2-receipt-u21-r3.json; private clone had no remote and no commits.

Impact: task metadata only.

Refs: PR #585
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 14:12:25 +00:00
weichenandCursor 6129f1e3e1 Record U2.1 attempt reconciliation in the task card
Why: two U2.1 runs ended failed-unknown and were reconciled before a fresh run.

Evidence: receipts /tmp/gov2-receipt-u21.json and -r2.json; private clones had no remote and no commits.

Impact: task metadata only.

Refs: PR #585
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 13:10:23 +00:00
weichen 5b457b5696 Record the task card for feature-development-governance-v2-triage-hardening
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-development-governance-v2-triage-hardening.md; R0=82c8989973112d0533ee7c70654c907269df7859.

Impact: task metadata only; the feature workspace starts at d46dec31de.

Refs: .task/feature-development-governance-v2-triage-hardening.md
2026-10-16 12:22:17 +00:00
weichenandCursor d46dec31de Correct governance-v2 status and add the cross-repo master record
ci / test-pg (pull_request) Successful in 8m26s
ci / svc-realcombo (pull_request) Successful in 1m55s
ci / test (pull_request) Successful in 5m53s
Why: the task card claimed all units complete while confirmed blocking defects remain in triage and the Guidelines contract.

Evidence: review of task.sh triage (count-based JOIN, local-only scan) and Guidelines PR #7 diff; CI runs 3417/3419 apply only to superseded objects.

Impact: initiative stops accepting requirements; status uses the PLANNED..CLOSED model; remaining phases tracked in one master record.

Refs: PR #585, Guidelines PR #7
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 12:16:21 +00:00
weichen e7e8ee0dd0 Record the sync checkpoint
Why: bind the task validation checkpoint to the integration baseline.

Evidence: SELF recursive component checks; sync_base=82c8989973112d0533ee7c70654c907269df7859; before_record=1b0ac59fbcf92895e9746c1d3c4c31b59daa6821.

Impact: task metadata only.

Refs: .task/feature-development-governance-v2.md
2026-10-16 12:12:26 +00:00
weichen 1b0ac59fbc Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=82c8989973112d0533ee7c70654c907269df7859.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-16 12:12:00 +00:00
weichen 611f8555ec docs(task): record passed CI GATE evidence for PR #585
ci / svc-realcombo (pull_request) Successful in 1m59s
ci / test (pull_request) Successful in 6m27s
ci / test-pg (pull_request) Successful in 9m10s
Why:
- Record verified Gitea CI status (run 3417: test, test-pg, svc-realcombo all passed).
- Update current stage to testing completed (ready for review and merge).

Evidence:
- Gitea CI run 3417 jobs 5353, 5354, 5355 all succeeded.

Impact:
- Keeps task card synchronized with authoritative GATE verification evidence.

Refs:
- PR #585
2026-10-16 09:03:10 +00:00
weichen 9bc61ef01d Record PR #585 in task card
ci / svc-realcombo (pull_request) Successful in 2m27s
ci / test-pg (pull_request) Successful in 9m15s
ci / test (pull_request) Successful in 6m46s
Why:
Backfill PR URL into task card main record.

Evidence:
PR created at https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/585.

Impact:
Task metadata updated.

Refs:
feature/development-governance-v2
2026-10-16 08:52:01 +00:00
weichen d9d0d721a4 Record final verification results and next steps in task card
ci / svc-realcombo (pull_request) Successful in 2m8s
ci / test-pg (pull_request) Failing after 3m18s
ci / test (pull_request) Successful in 6m56s
Why:
Backfill verification results and evidence for U1-U7 completion into the task card.

Evidence:
484 governance tests pass; make task-triage verified; draft.10 PR #7 open.

Impact:
Task card updated for PR creation; no code changes.

Refs:
feature/development-governance-v2
2026-10-16 08:50:16 +00:00
weichen 51cf053fda Update task card receipts and stage records for U5
Why:
Record U5 agent execution receipt and update requirements matrix and delivery stages.

Evidence:
U5 receipt recorded in /tmp/receipt-u5.json; 74 tests pass.

Impact:
Task card tracking updated; no code changes.

Refs:
feature/development-governance-v2
2026-10-16 08:43:14 +00:00
weichen 714d641be8 Document stock repos adoption matrix and new project admission spec
Why:
Provide phased rollout roadmap (Phases 1-5) for stock repositories and mandatory defaults for new projects under governance v2.

Evidence:
Specification documented in docs/superpowers/specs/2026-10-16-stock-repos-adoption-matrix.md.

Impact:
Clarifies U6 and U7 governance deliverables for multi-repo rollout without ambiguity.

Refs:
feature/development-governance-v2
2026-10-16 08:42:37 +00:00
agent-exec-transport ffde6e45b5 agent-exec transport a58dda9249cc43c9b97c54cb2b2f204b/b1839aadcc04 2026-10-16 08:41:43 +00:00
weichen 121365ee4c Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=84900d44d34d2d42428a5b5de1d92328d90a9950.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-16 08:30:42 +00:00
weichen 58a314223b Record initiative branch metadata and U4 implementation receipt
Why:
Declare feature/development-governance-v2 as an initiative branch accepting requirements and record U4 agent execution receipt.

Evidence:
Tested task-triage detecting active initiative branch; U4 receipt recorded in /tmp/receipt-u4.json.

Impact:
Task card metadata updated; no code changes.

Refs:
feature/development-governance-v2
2026-10-16 08:29:53 +00:00
agent-exec-transport 56df3b11b7 agent-exec transport e8ba59dd3e1444a79fdda6e7f21ed7bd/7c8fcf53d035 2026-10-16 08:28:08 +00:00
weichen 24185ac066 Document shared executor architecture audit for governance v2
Why:
Audit differences between Agent-System-Dev agent_exec.py and Development-Manager runner.go to clarify layer responsibilities for governance v2.

Evidence:
Architecture specification document created in docs/superpowers/specs/.

Impact:
Provides guidance for U3 shared executor convergence without duplicating logic across repositories.

Refs:
feature/development-governance-v2
2026-10-16 07:16:07 +00:00
weichen 2f33ac6bf9 Record the task card for feature-development-governance-v2
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-development-governance-v2.md; R0=e665bfb574fe3311bb1ffa02212c0620c4e310f7.

Impact: task metadata only; the feature workspace starts at e665bfb574.

Refs: .task/feature-development-governance-v2.md
2026-10-16 07:01:49 +00:00