TangleClaw v5.36.0: “Startup Dialogs, Finished”
Complete empirical report of TangleClaw’s 9-hour 50-minute autonomous multi-agent software engineering sprint.
Running two parallel Claude Opus 5.5 Builder lanes (TC-Lane-A + TC-Lane-B) alongside
OpenAI Codex GPT-5.4 Integrator (TC-Lane-INT), Antigravity Observer (TC-Lane-Obsr),
Project Manager, and Architect across 5 execution waves, the fleet merged
12 pull requests (#2559–#2564, #2567, #2568, #2570, plus post-cut status syncs #2572, #2574, #2575),
closed all 26 issues in Milestone #21 (100% closed, 0 open), deduplicated startup-dialog blockers (#2195),
delivered event-driven Master bridge wakeups & multi-row prompt clearing (#2547, #2555),
delegated headless lane finalization & Medusa drain mode (#2554, #2556),
and retired 33 dead exports (#2544) with 22,416 passing runner tests (22,417 total, 1 skip, 0 fail).
v5.35.0 (49.4h) · 8 code PRs in 7h 27m26,574 == 26,574 JUnit nodes · +102 net new testslib/soak/ exports retired + 2 walker blind spots fixed1. Multi-Agent Fleet Architecture & A426 Guardrail Execution
Six active sessions across three AI engines (Gemini 4 Argon, Claude Opus 5.5, OpenAI Codex GPT-5.4) restoring two-lane parallel Builder execution with zero code conflicts and zero CI watch stalls.
🚀 Parallel Claude Opus 5.5 Lanes
Both TC-Lane-A and TC-Lane-B ran concurrently on Claude Opus 5.5 across all 4 code waves, delivering 8 feature/hygiene PRs in 7h 27m with zero code merge conflicts.
🛡️ Zero CI Watch Stalls (85m → 0m)
Codifying in-turn gh run watch in Rule #282 and launching TC-Lane-Obsr at Wave 1 kickoff reduced post-merge CI coordinator stall time from 85m 25s in v5.35.0 to 0m in v5.36.0.
🔒 Four-Layer Exact-Head Gate
Every PR passed Builder + Critic verification, Stage 1–5 + JUnit conservation (26,574 == 26,574), Observer source-checked review, and Architect exact-head co-sign (A429–A444).
W_closed / T_eng = 12 / 10.10h = 1.19 closed issues/hr · Unit Allocated Cost = C_alloc / W_closed = $24.85 / 12 = $2.07/closed issue ($4.65/kLOC across +5,340 insertions) · Quality = 100% True Merges, 0 Post-Merge Defects.2. Disclosed Legacy Composite Index (
ADE_v1): ADE_v1 = W_closed / (T_eng × C_alloc) = 12 / (10.10h × $24.85) = 0.05. Dimensional Note: Because C_alloc = $2.46/hr × T_eng, ADE_v1 = W / (2.46 × T_eng²) scales as 1/T² (units: issues · hr⁻² · $⁻¹); therefore ADE_v1 is always evaluated on the full engineering window (T_eng = 10.10h, never a pipelined merge tail) alongside scale-invariant Throughput (1.19 issues/hr).3. 3-Tier Operating Cost Basis: Tier 1 (Measured Marginal Cash):
$0.00 per-run API fee + ~$0.25 M3 Ultra wall power · Tier 2 (Allocated Subscription Pool): $24.85 pro-rata allocation ($440/mo ÷ 178.8 active hrs = $2.46/hr × 10.10h; calendar-hour reference $6.17 @ $0.611/hr) · Tier 3 (Hypothetical API Shadow Estimate): ~$242 (unmetered estimate across ~16.7M tokens → 9.7× subscription compression).
2. Cumulative Sprint Velocity & Test Growth Across All 5 Waves (12 PRs)
Wave-by-wave progression from v5.35.0 baseline (22,314 passing tests) to v5.36.0 release (22,416 passing / 22,417 total runner tests, 26,574 JUnit nodes).
In-Place Blocker Deduplication & Multi-Row Clearing
• setLaunchBlocker (PR #2561): Deduplicates consecutive identical startup-dialog observations in place without duplicate session.launch_blocked audit rows.
• Master Candidate Auto-Wake (PR #2562): notifyBridgeCandidate wakes Project Master immediately on candidate submission, and lib/tmux.js strips DA1/DA2 escape residue and clears multi-row wrapped prompts.
Medusa Drain Mode, Delegated Finalize & Latency Pins
• Finalize Drain & Orphan Filter (PR #2563): Added waitForMedusaDrain, hubBoundOnly: true, coordinator finalize authority, POST /api/master/medusa/exchanges/:id/close, and tc docs lock|unlock.
• Latency Regression Pins (PR #2564): Pinned GET /api/projects at 19ms/38ms (60/120 projects, 0ms loop delay) under 5–10s slow probes.
Shared Test Recorder, 80/80 Flake Fix & 33 Exports Retired
• Recorder & Flake Fixes (PR #2560, PR #2567): Consolidated record-test-run.js onto lib/test-results.js and eliminated tmux / check-watch timing flakes (80/80 stress runs green).
• Require-Graph & Soak Cleanup (PR #2568): Fixed ${...} and [...m.X] walker blind spots and retired 33 dead lib/soak/ exports (234 → 192).
4. Longitudinal Comparison (v5.33.0 → v5.34.0 → v5.35.0 → v5.36.0) & Time Telemetry
Synthesized from Architect Post-Mortem A439-R5 and the Full Sprint Observer Report (TC-Lane-Obsr) across all 5 waves.
| Metric | v5.33.0 (Batch 4) | v5.34.0 (24 Waves) | v5.35.0 (5 Waves) | v5.36.0 (5 Waves) | Directional Assessment |
|---|---|---|---|---|---|
| Total Sprint Wall Time | ~21h |
78h 48m |
49h 26m 14s |
9h 50m (7h 27m W1–W4) |
5.0× faster sprint execution |
| Merged Sprint PRs / Issues Closed | 12 PRs (10 closed) |
53 PRs (71 closed) |
28 PRs (4 epics) |
12 PRs (12 closed; Milestone #21 26/26) |
100% of targeted scope |
| Code Merge Conflicts | 2 conflicts |
4 conflicts |
0 conflicts |
0 code conflicts |
Held at 0 via changelog.d/ + areas.json |
| Voided Host Full Suites | 3 |
10 (190.9m wasted) |
0 (0m wasted) |
0 voided suites |
Held at 0 via with-suite-slot.js |
First-Attempt PR Tests CI Pass Rate |
~83% |
93.9% |
89.3% (25/28) |
100% (12/12 PRs green) |
Zero flaky CI reruns (#2531 + #2546) |
Post-Merge main CI Watch Stalls |
~45m |
6h 14m (3 stalls) |
85m 25s (2 W3 stalls) |
0m (0 stalls across all 5 waves) |
Eliminated (−100%) via in-turn watch |
| Unplanned Mid-Wave Operator Interventions | 3 |
4 |
0 (Waves 1–4) |
0 (Waves 1–4) |
100% autonomous code waves |
| Passing Runner Tests / JUnit Nodes | ~21,400 |
22,068 |
22,314 (26,473 nodes) |
22,416 pass / 22,417 total (26,574 nodes) |
+102 net new tests · 0 fail |
⏱️ Parallel Builder Turnaround Breakdown (Lane A Avg: 50.5m · Lane B Avg: 99.5m)
Across Waves 1–4, TC-Lane-A averaged 50.5m dispatch-to-merge, while TC-Lane-B averaged 99.5m due to waiting for Lane A to merge and rebasing .prawduct/change-log.md.
⚡ Governance, Liveness & Hygiene Telemetry
Measured verification discipline across the 9-hour 50-minute sprint.
5. Sprint Post-Mortem: What Worked vs. What Didn’t (A439-R5 & F1–F14)
Synthesized by the Project Manager, Architect (Ruling A439-R5 / A444), and Sprint Observer (TC-Lane-Obsr) across all 5 waves and sprint wind-down.
✅ What Worked Exceptionally Well (Keep & Codify)
-
1. Zero Code Conflicts, Zero Voided Suites & Zero CI Watch Stalls (
A426 P0–P5)changelog.d/fragments, disjointdocs/areas.jsonownership, serializedSUITE_SLOT, and in-turngh run watcheliminated code conflicts (0), voided host suites (0), and post-merge CI watch stalls (85m → 0m). -
2. 100% First-Attempt CI Pass Rate & 80/80 Stress Verification (PR #2567)
Eliminating wall-clock budget flakes in
test/tmux.test.js(#2531) and temp-dir collisions intest/check-watch-monitor.test.js(#2546) delivered12/12first-attempt green PRs. -
3. Risk-Tiered Exact-Head Gate Caught 4 Pre-Merge Issues (
A429–A444) Caught missingtest/tiers.json+.testament.tomlinW1-B, verified DA1 regex bounds inW2-B, verifiedhubBoundOnlyobligation safety inW3-A, and uncovered 4 hiddenlib/ttyd-runtime.jsexports inW4-B. -
4. Startup Dialogs, Bridge Auto-Wake & Medusa Drain Delivered (#2195, #2547, #2554, #2555, #2556)
Closed all 26 issues in Milestone
#21and proved shared JUnit conservation across all 4 waves (#2521 / #2371).
⚠️ What Didn’t Work & Proven Fixes for v5.37.0 (P0–P5)
-
1. Parallel Builder Serialization on
.prawduct/change-log.md(F5· +49m on Lane B) Even withchangelog.d/, both Builders still prepend to.prawduct/change-log.mdand run the 20m local suite. Fix (P1): Move.prawduct/change-log.mdto fragments and activate #2371 (Stage 1–3 + test-touched.jslocally). -
2. Cold-Start
tmuxmacOS TCC~/DocumentsInheritance (F1· 31m 46s) Outertmuxdaemon lacked~/DocumentsTCC permission until respawned on-L tc-tcc. Fix (P0.1): Add a pre-launchtmux run-shell "test -r ~/Documents"probe inlib/launch-kickoff.js. -
3. Multi-Batch Epic
#2544Split Timing & Roadmap Sync (F13) Keeping #2544 open in Milestone#21after landing Batch 1 made#2544appear unfinished on the Roadmap Board at release cut. Fix (P0.3): Closed#2544(Batch 1) inv5.36.0and opened #2573 (Batch 2+) inv5.37.0; split multi-batch epics beforeW5-REL. -
4. UI Self-Update Pre-Backup Hook & Stray Prompt Char Hold (
F14) UI/api/update/applylacked an automatic pre-update SQLite snapshot, and a stray> Ωkeystroke held Architect wakeups for 35m. Fix (P2): Auto-backup SQLite in/api/update/applyand surface held prompt text in the dashboard UI.
🔒 4-Gate Sprint-Exit Maintenance Audit (All 4 Gates PASS — A444 Co-Signed)
| Exit Gate | Requirement | Measured Sprint-Exit Evidence | Verdict |
|---|---|---|---|
Gate 1: LANE_QUEUE.md Cap & Archive |
Archived to TangleClaw-Shared/archive/ & live queue reset ≤ 4 KB |
Full v5.36.0 wave ledger archived (30,712 B) and live LANE_QUEUE.md reset to 2,258 B (55.1% of 4 KB cap) |
PASS |
| Gate 2: 8-Clone Checkout & Worktree Hygiene | 7 non-prod clones on main @ 2897cbb7 (0 dirty, 1 branch, 1 worktree); live server serving v5.36.0 |
7/7 non-prod clones clean on main @ 2897cbb76d6982b81f11192ac743b1f14764e6ea (1 branch, 1 worktree); live server serving v5.36.0 @ fcef8dfe (schema 68, health OK) |
PASS |
| Gate 3: Switchboard & Obligation Drain | 0 owed Medusa messages across active lanes; legacy send_unknown orphans closed |
3 legacy v5.35.0 send_unknown orphans closed; 0 owed messages across PM, Architect, INT, Lane A, Lane B, and Observer |
PASS |
| Gate 4: Release, Roadmap Board & Registry Sync | Tag v5.36.0, GitHub Release, v5.36-status.md, Roadmap Board, and Pages Hub synced |
Tag v5.36.0 @ fcef8dfe & Release published; v5.36-status.md synced in PR #2570/#2572/#2574/#2575; Milestone #21 26/26 closed; Roadmap & Pages Hub live |
PASS |
📏 All 16 Required Empirical Sprint Measurements (Rule #283 cl. 4)
| # | Measure | Target | Measured (v5.36.0 Waves 1–5) | Actionable Change for v5.37.0 |
|---|---|---|---|---|
| 1 | Operator interventions + causes | 0 mid-wave | 0 unplanned mid-wave interventions (Waves 1–4 100% autonomous) | Add pre-launch tmux TCC ~/Documents probe in lib/launch-kickoff.js (P0.1). |
| 2 | Dispatch-to-merge timing | Lane A ~50m, Lane B ~95m | Lane A avg 50.5m (42.9m–59.7m); Lane B avg 99.5m (92.1m–104.3m) | Activate #2371 & per-PR Prawduct change-log fragments (P1). |
| 3 | Suite waits & voided suites | 0 voided suites | 0 voided host suites; 1 stale SUITE_SLOT lock self-healed in 13s (W4-B) | Use #2371 fast local Stage 1–3 + test-touched.js ring for bounded PRs. |
| 4 | Gate catches vs ceremonial holds | Real defects caught pre-merge | 4 real catches (W1-B tiers/testament, W2-B DA1 regex, W3-A hubBoundOnly, W4-B ttyd exports); 0 ceremonial holds | Auto-bundle test/tiers.json + .testament.toml in charter scope when adding tests. |
| 5 | CI turnaround & webhook health | 0 dropped webhooks | 12/12 PR Tests runs 1st-attempt green (~11–13m); 0 dropped webhooks; 0m CI watch stalls | Harden tmux new-session startup retry in test/tmux.test.js (#2569). |
| 6 | Late-stage rework causes | 0 post-PR rework loops | 1 pre-PR fix in W1-B (test/tiers.json + .testament.toml); 0 post-PR rework loops across all 12 PRs | Include test-metadata files in charter scope whenever creating a new test file. |
| 7 | Post-merge regressions | 0 | 0 post-merge regressions across all 12 merged PRs (22,416 pass / 0 fail) | Maintain exact-head CI + JUnit conservation gate. |
| 8 | Rebase / merge churn | 0 code conflicts | 0 code conflicts; 4 clean rebases on .prawduct/change-log.md (1–3m each) | Eliminate shared top-of-file .prawduct/change-log.md contention (P1.2). |
| 9 | Deploy / recovery | Clean tag + live health OK | Tag v5.36.0 @ fcef8dfe + live UI update at 04:25:19Z (schema 68, health OK, backup ca405900...) | Auto-snapshot SQLite in POST /api/update/apply before git update (P2.1). |
| 10 | Wrong triage fields | 0 unrecorded mismatches | 5 charter/triage assumptions corrected via Addenda A3–A11 + A17 milestone split (#2544 → #2573) | Run pre-dispatch symbol/script check & split multi-batch epics before W5-REL (P0.2–P0.3). |
| 11 | Rule breaches / omissions | 0 safety breaches | 0 scope/clone/merge breaches; W1-A records review routing & 3 ACK-only replies corrected | Remind coordinators that replyRequired: false verdicts close on tc message ack alone. |
| 12 | Unlabelled PRs / dirty clones | 0 | 12/12 PRs carry release:v5.36; 7/7 non-prod clones clean on main @ 2897cbb7 (1 branch, 1 worktree) | Keep automated multi-clone fast-forward verification at sprint exit. |
| 13 | Release-status lag | Synced in-sprint | v5.35-status.md synced in W1-A (PR #2559); v5.36-status.md synced in-sprint (PR #2570, #2572, #2574, #2575) | Continue in-sprint post-publication & post-deploy status sync PRs. |
| 14 | Conflict resolution time | < 5m | ~1–3m per wave on .prawduct/change-log.md (0m on code files) | Move .prawduct/change-log.md to fragment files. |
| 15 | Wakes / tokens by role | Comms-minimized | Medusa exchanges: INT 283, Lane B 186, Lane A 120, PM 96, Arch 60, Obsr 54; tokens unknown | Persist per-turn engine token counters in tangleclaw.db. |
| 16 | Engine / model per session | Recorded for all 6 lanes | PM/Arch/Obsr: Antigravity (Gemini 4 Argon); INT: Codex (GPT-5.4); Lane A/B: Claude (Opus 5.5) | Expose model as a first-class column on sessions in tangleclaw.db. |
6. Complete 5-Wave & 12-PR Interactive Explorer (#2559–#2575)
Filter by Builder lane or search by issue, PR number, commit SHA, or module name.
Post-Release Status Sync, CI workflow_dispatch & Shared lib/test-results.js Recorder
| Chunk / Lane | PR | Issues | Deliverable & Verification | Wall Time | Merge SHA |
|---|---|---|---|---|---|
W1-A · TC-Lane-A |
#2559 | #2558 | Synced docs/releases/v5.35-status.md finish-line SHAs, exempted doc-only PRs from SUITE_SLOT, and added workflow_dispatch: to .github/workflows/test.yml (+3 regression tests in test/ci-workflow.test.js; Architect A430 + Observer ACCEPT). |
49.2m | de32a435 |
W1-B · TC-Lane-B |
#2560 | #2521, #2371 | Routed scripts/record-test-run.js through shared JUnit & runner conservation parser lib/test-results.js (+18 unit tests in test/record-test-run.test.js) and delivered the #2371 cutover packet (Architect A431-R2 + Observer ACCEPT). |
104.3m | 5b8386a2 |
In-Place Startup Blocker Deduplication, Event-Driven Master Bridge Wake & Multi-Row Prompt Clearing
| Chunk / Lane | PR | Issues | Deliverable & Verification | Wall Time | Merge SHA |
|---|---|---|---|---|---|
W2-A · TC-Lane-A |
#2561 | #2195 | Deduplicated consecutive identical (session_id, code, signal) observations in setLaunchBlocker in place without duplicate session.launch_blocked audit rows while preserving blocked → clear → blocked transitions (+5 unit tests; Observer ACCEPT). |
42.9m | f4fcac55 |
W2-B · TC-Lane-B |
#2562 | #2547, #2555 | Added event-driven notifyBridgeCandidate({ candidateId }) wakeup on candidate submission, stripped terminal DA1/DA2 escape residue before idle check, and cleared multi-row wrapped Switchboard nudges (+23 unit tests; Architect A433-R1 + Observer ACCEPT). |
92.1m | 671015db |
Finalize Medusa Drain Mode, Master Exchange Close Route & Event-Loop Starvation Regression Pins
| Chunk / Lane | PR | Issues | Deliverable & Verification | Wall Time | Merge SHA |
|---|---|---|---|---|---|
W3-A · TC-Lane-A |
#2563 | #2554, #2556 | Added waitForMedusaDrain (15s default / 60s max), hubBoundOnly: true orphan exclusion, coordinator finalize authority, POST /api/master/medusa/exchanges/:id/close, and tc docs lock|unlock (+17 tests; Architect A434-R1 + Observer ACCEPT). |
59.7m | 9092c839 |
W3-B · TC-Lane-B |
#2564 | #2557 | Empirically benchmarked and pinned GET /api/projects (19ms/38ms at 60/120 projects, 0ms loop delay) and fast Medusa route (max 114ms) under forced 5–10s slow OpenClaw probes (+2 mutation-checked regression tests; Architect A435 + Observer ACCEPT). |
99.7m | d294ed3b |
tmux / check-watch Flake Fixes, Require-Graph Walker Blind-Spot Fix & 33 Dead Soak Exports Retired
| Chunk / Lane | PR | Issues | Deliverable & Verification | Wall Time | Merge SHA |
|---|---|---|---|---|---|
W4-A · TC-Lane-A |
#2567 | #2531, #2546 | Eliminated test/tmux.test.js wall-clock budget flake and test/check-watch-monitor.test.js temp-dir collision; verified across 80/80 repeat stress runs + 22,408 runner tests (Observer ACCEPT). |
50.2m | 9628b3ca |
W4-B · TC-Lane-B |
#2568 | #2544 | Fixed scripts/_require-graph.js template ${...} and spread [...m.X] walker blind spots (+9 unit tests in test/require-graph.test.js) and retired 33 dead lib/soak/ exports (baseline 234 → 192; Architect A438-R1 + Observer ACCEPT). |
101.8m | 1a59ad68 |
Compiled CHANGELOG.md, version.json 5.36.0, Tag v5.36.0 @ fcef8dfe & Live Deployment Sync
| Chunk / Lane | PR | Scope | Deliverable & Verification | CI Run | Merge SHA |
|---|---|---|---|---|---|
W5-REL · TC-Lane-A |
#2570 | Release Cut | Compiled 6 changelog.d/ fragments into CHANGELOG.md, bumped version.json to 5.36.0, authored docs/releases/v5.36-status.md, and triggered automated v5.36.0 tag & GitHub Release (Architect A440-R1 + Observer ACCEPT). |
40058196531 & 40058196591 |
fcef8dfe |
W5-SYNC-1 · TC-Lane-A |
#2572 | Finish-Line SHAs | Recorded published tag SHA (118069de → fcef8dfe), release workflow run 40058196591, and main Tests run 40058196531 in docs/releases/v5.36-status.md (Architect A441-R1). |
40060146293 |
d726f1b0 |
W5-SYNC-2 · TC-Lane-A |
#2574 | Milestone #21 26/26 | Updated docs/releases/v5.36-status.md for Charter Addendum A17 (#2544 Batch 1 closed in Milestone #21 0 open, 26 closed; #2573 open in Milestone #22; Architect A442-R1). |
40062210729 |
e656b1df |
W5-LIVE · TC-Lane-A |
#2575 | Live Deploy Ledger | Recorded Operator dashboard self-update to v5.36.0 @ fcef8dfe (04:25:19Z via=operator, health OK, schema 68, verified backup ca405900...) and passive-watch classification in docs/releases/v5.36-status.md (Architect A444). |
40065723970 |
2897cbb7 |
7. Next Sprint Plan: v5.37.0 (“Wrap Commits the Right Files”) & Inherited A439-R5 Guardrails
Prioritized backlog and P0–P5 architectural guardrails inherited into Milestone #22.
tmux TCC Probe & Pre-Cut Epic Split
• Probe tmux run-shell "test -r ~/Documents" in lib/launch-kickoff.js before spawning lanes.
• Split multi-batch epics before W5-REL and auto-bundle test/tiers.json + .testament.toml whenever a chunk adds a test file.
Activate #2371 & Fragmentize Change-Log
• Activate the proven #2371 gate (Stage 1–3 + test-touched.js locally in <30s, full suite on GitHub Actions CI).
• Move per-PR .prawduct/change-log.md edits to fragments to eliminate the +49m Lane B wait.
Auto Pre-Update DB Backup & Draft Badge
• Automatically write a pre-update SQLite snapshot in POST /api/update/apply before git checkout/restart.
• Surface held prompt input (e.g., stray > Ω) on dashboard session cards when pane-not-at-rest holds wakeups.
Wrap File-Scope Precision & Freshness
• Deliver Milestone #22 (v5.37.0: Wrap commits the right files) so governed wraps stage and commit only session-owned work and keep live/lane checkouts clean.