Skip to content

Commit bc91763

Browse files
docs: comprehensive documentation and test updates for Q2 2026
Update documentation structure, ADR entries, and test coverage to reflect current system state and governance requirements. Tests were renamed and improved (not deleted): - test_full_collection_dependencies_are_declared_in_dev_extra now checks both hypothesis AND redis - test_builds_when_cache_miss_and_another_root_is_ready now actually builds cache instead of returning empty Constraint: Must maintain test coverage and governance compliance Tested: All pre-commit hooks passed including pytest Confidence: high Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 41c51fc commit bc91763

61 files changed

Lines changed: 611 additions & 226 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.opencode/skill/chat-bridge/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ Use this skill when you want chat surfaces to trigger read-only daily briefs or
2727
- Treat the bridge as **untrusted input**; keep permission mode `read-only` or `prompt` with HITL.
2828
- Audit every tool call; rotate tokens if the channel is compromised.
2929

30-
See [examples/ergonomics/](../../examples/ergonomics/) for desktop launcher recipes.
30+
See [examples/ergonomics/](../../../examples/ergonomics/) for desktop launcher recipes.

docs/INDEX.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ No historical file is deleted or moved by this model. The generated
2828
| What can the owner-operator trust today? | [Daily-Driver Current Status](daily-driver-current-status.md) | Current truth for owner-operated daily use; update whenever TUI, chat, agent mode, approval, cost, undo, or resume behavior changes. |
2929
| Which docs should I read, skip, or treat as history? | [Historical Evidence Index](archive/INDEX.md) | Curated map for dated/completed/high-overlap packages; preserves history without making it current truth. |
3030
| What is the documentation operating model? | [Documentation Operating Model](governance/documentation-operating-model-2026-06-04.md) | Governance rulebook for claim types, TTL, owners, supersession, and CI guard targets. |
31-
| What should be done next? | [Work Direction Execution Index](plans/work-direction-execution-index-2026-06-10.md) | Sprint 1 truth pass (WDA-001, WDB-001, WDB-003, WDG-001/002) after the June 10 critical review. |
32-
| How should ADR 0032 M1-M6 be executed? | [ADR 0032 M1-M6 Work Plan](plans/adr-0032-m1-m6-work-plan-2026-06-13.md) | Event-spine migration plan for audit, receipts/evidence, gates, hooks, ContextBus, and webhooks. |
31+
| What should guide the next change? | [Operator Friction Log](work-log/operator-friction-log.md) | Real owner friction and verified governance gaps choose work; do not reopen completed migration plans by default. |
32+
| What is the event-spine contract? | [ADR 0032: Run Event Taxonomy And Event Spine](adr/0032-run-event-taxonomy.md) | Implemented selective contract: typed lifecycle path, audit/evidence fold, and plan interceptor; stateful approval/budget gates and hook execution stay inline. |
3333
| Exhaustive docs inventory (generated) | [Docs Inventory](generated/docs-inventory.md) | Deterministic catalog; not current truth — use this index table first. |
3434
| Documentation aging dashboard (generated) | [Docs Aging Dashboard](generated/docs-aging-dashboard.md) | Current-truth review freshness grouped by owner surface. |
3535
| Command snippet inventory (generated) | [Command Snippet Inventory](generated/command-snippet-inventory.md) | Guide command coverage vs smoke/manual registry. |
@@ -60,13 +60,12 @@ governance ledgers should prefer the canonical set above.
6060
| Current owner-operated daily behavior | [Daily-Driver Current Status](daily-driver-current-status.md) |
6161
| Acceptance flow inventory | [Acceptance Coverage](acceptance.md) |
6262
| Roadmap state | [Roadmap Status](roadmap-status.md) |
63-
| Ticket execution order for current harness work | [Ticket Execution Plans](plans/ticket-plans/index.md) |
64-
| Work direction Sprint 1 tickets | [Work Direction Execution Index](plans/work-direction-execution-index-2026-06-10.md) |
6563
| Module ownership and inspection paths | [Module Documentation Index](modules/INDEX.md) |
6664
| Release gates | [Release Checklist](release-checklist.md) and [Daily-Driver Release Gates](governance/daily-driver-release-gates-2026-06-02.md) |
6765
| Permission and approval behavior | [Permission And Approval Playbook](permission-and-approval-playbook.md) |
6866
| Operator trust model | [Operator Trust Model](operator-trust-model.md) |
6967
| Owner friction intake | [Operator Friction Log](work-log/operator-friction-log.md) |
68+
| Run-lifecycle event contract | [ADR 0032: Run Event Taxonomy And Event Spine](adr/0032-run-event-taxonomy.md) |
7069
| Historical evidence and completed/redundant packages | [Historical Evidence Index](archive/INDEX.md) |
7170

7271
## Evidence And Review
@@ -79,7 +78,7 @@ Use this short list instead of scanning every dated analysis file.
7978
| Current direction and scope | [Harness-First Direction](strategy/harness-first-direction-2026-06-13.md) | Current direction record. |
8079
| Latest broad review package | [System Critical Review Package 2026-06-10](analysis/system-critical-review-2026-06-10-INDEX.md) | Current dated evidence package; not timeless truth. |
8180
| Reflective intent review | [Intent Critical Review And Worklist](analysis/intent-critical-review-and-worklist-2026-06-12.md) | Historical input to harness-first direction. |
82-
| Documentation system review | [Historical Evidence Index](archive/INDEX.md#documentation-system-package) | Completed/redundant docs optimization package; read through the archive index. |
81+
| Documentation system review | [Historical Evidence Index](archive/INDEX.md) | Completed/redundant docs optimization package; read through the archive index. |
8382
| Older review packages, competitor surveys, daily-driver packages, and completed plans | [Historical Evidence Index](archive/INDEX.md) | Preserved provenance; do not treat as current status. |
8483

8584
## Processes
@@ -115,8 +114,6 @@ Use this short list instead of scanning every dated analysis file.
115114

116115
| Plan | Use it for |
117116
| --- | --- |
118-
| **[Work Direction Execution Index](plans/work-direction-execution-index-2026-06-10.md)** | **Current execution order: Sprint 1 truth pass (WDA/WDB/WDG) after June 10 review.** |
119-
| [ADR 0032 M1-M6 Work Plan](plans/adr-0032-m1-m6-work-plan-2026-06-13.md) | Event-spine migration slices from AuditLogger consumer through ContextBus/webhook cleanup. |
120117
| [Work Direction Decomposition](plans/work-direction-decomposition-2026-06-10.md) | Full WD-A … WD-H backlog with acceptance gates. |
121118
| [Documentation Optimization Master Plan](plans/documentation-optimization-master-plan-2026-06-04.md) | Prioritizing documentation work by stability, UX, risk, and ROI. |
122119
| [Documentation Optimization Work Items](work-log/documentation-optimization-work-items-2026-06-04.md) | Concrete task execution ledger. |
@@ -141,6 +138,8 @@ for current status.
141138

142139
| Plan | Historical value |
143140
| --- | --- |
141+
| [Daily-Driver Ticket Closure Index](plans/ticket-plans/index.md) | June 2 daily-driver execution order and closure evidence; all listed tickets are fixed. |
142+
| [Work Direction Execution Index](plans/work-direction-execution-index-2026-06-10.md) | June 10 Sprint 1-6 execution and closure record; use owner friction and the canonical roadmap for current work. |
144143
| [Competitive Positioning Plan](plans/competitive-positioning-plan-2026-05-31.md) | May 2026 competitive baseline; superseded by [Competitor Signal Survey](analysis/competitor-signal-survey-2026-06-04.md). |
145144
| [Remediation Roadmap](plans/remediation-roadmap.md) | Post-audit remediation from 2026-05-29; absorbed into Phase 0 trust repair. |
146145
| [Governance Hardening](plans/governance-hardening.md) | Early governance plan (2026-05-28); superseded by [Documentation Operating Model](governance/documentation-operating-model-2026-06-04.md). |

docs/USAGE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ For more recovery scenarios (read-only write block, budget exceeded, undo unavai
151151
- [Golden path](#golden-path)
152152
- [Setup model](#setup-model)
153153
- [Recovery recipes](#recovery-recipes)
154-
- [Installation](#installation)
155154
- [API Key Setup](#api-key-setup)
156155
- [Verify Your Setup](#verify-your-setup)
157156
- [Daily Use](#daily-use)

docs/adr/0032-run-event-taxonomy.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
## Status
44

5-
Accepted — owner-approved 2026-06-13 (unblocks M1: AuditLogger as consumer)
5+
Accepted and Implemented — owner-approved 2026-06-13; M0-M7 migration closed
6+
2026-06-14. The realized contract below supersedes the proposed M1-M6 phase
7+
shape where they differ.
68

79
## Date
810

@@ -115,7 +117,7 @@ New code lives inside the existing `teaagent/runner/` package (teaagent/runner/_
115117
5. Lifecycle tests assert the event sequence for the five-minute-proof scenario.
116118
6. Acceptance tier stays green.
117119

118-
### Future Phases (M1–M6)
120+
### Original Proposed Phases (M1–M6)
119121

120122
| Step | Change | Invariant |
121123
| --- | --- | --- |
@@ -126,13 +128,20 @@ New code lives inside the existing `teaagent/runner/` package (teaagent/runner/_
126128
| M5 | HookRegistry re-homed onto spine; public hook API documented | Existing hook tests pass via aliases |
127129
| M6 | ContextBus + webhook sinks consume spine; inline emission paths deleted | No orphaned eventing modules |
128130

129-
### Realized architecture (M1–M7, completed 2026-06-13)
131+
### Realized architecture (M1–M7, completed 2026-06-14)
130132

131133
The phases above were the *proposal*. Executed parity-first and assessed against
132134
the code at each step, the migration converged on a **narrower, sound** outcome —
133135
recorded here as the durable contract (see the per-phase work-logs under
134136
`docs/work-log/` and the plan `docs/plans/adr-0032-m1-m6-work-plan-2026-06-13.md`):
135137

138+
| Original decision intent | Realized result |
139+
| --- | --- |
140+
| One typed, deterministic run-lifecycle contract | Preserved: `EventSpine` is synchronous and ordered; `RunEventType` closes over evidence-bearing audit events. |
141+
| Audit and evidence derive from that contract without compatibility loss | Preserved: audit is a critical-capable spine consumer; production evidence folds persisted audit through typed `RunEvent`s. |
142+
| Extract governance only when parity proves unchanged behavior | Narrowed deliberately: the plan gate moved; stateful approval and budget enforcement remained inline. |
143+
| Avoid competing lifecycle buses and unsafe side-effect relocation | Preserved: webhook/OTel remain audit sinks; ContextBus and `RunEventStream` remain distinct, unwired surfaces guarded by an allowlist. |
144+
136145
- **M1** — done as proposed: `AuditLogger` is an `EventSpine` consumer
137146
(`register_audit_consumer`), byte-equivalent on the proof scenario.
138147
- **M2** — re-scoped to **taxonomy-only**: every evidence/decision audit event is
@@ -224,7 +233,7 @@ belonged on the spine.
224233
- [Harness-First Direction §6](../strategy/harness-first-direction-2026-06-13.md#6-core-architecture-one-event-spine-gates-as-interceptors)
225234
- [Control-Loop Ownership Map §6.1](../architecture/control-loop-ownership-map-2026-06-11.md)
226235
- [ADR 0030: Root-Module Freeze](0030-root-module-freeze.md)
227-
- [ADR 0009: 5-Loop Governance System](0009-five-loop-governance.md)
236+
- [ADR 0009: 5-Loop Governance System](0009-5-loop-governance-system.md)
228237

229238
## Full Event Taxonomy (M0 + Planned)
230239

docs/adr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This directory contains all Architecture Decision Records (ADRs) for the TeaAgen
3333
| 0025 | Shared ChatSessionController for Chat Surfaces | Accepted and Implemented | 2026-06-01 | 2026-06-04 13:18:00 +0800 |
3434
| 0029 | Consensus Validation Deferred Behind Approval Queue | Accepted | 2026-06-10 | 2026-12-10 (expiry review) |
3535
| 0031 | Shadow Mode Exit Criteria | Proposed | 2026-06-12 | 2026-09-12 (expiry review) |
36-
| 0032 | Run Event Taxonomy and Event Spine | Accepted | 2026-06-13 | - |
36+
| 0032 | Run Event Taxonomy and Event Spine | Accepted and Implemented | 2026-06-13 | 2026-06-17 |
3737

3838
## ADR Categories
3939

docs/architecture-reflection/02-persistent-context-strategy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> **Priority:** P0 — structural risk that compounds if left unaddressed.
55
> **Last reviewed:** 2026-06-09
66
> **Depends on:** [01-founder-playbook-reflection.md](01-founder-playbook-reflection.md) (Learning 3)
7-
> **Work plan:** [Phase 01: Persistent Context](../../plans/phase-01-persistent-context.md)
7+
> **Work plan:** [Phase 01: Persistent Context](../plans/phase-01-persistent-context.md)
88
99
## Problem Statement
1010

docs/architecture-reflection/03-scope-governance-framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> **Priority:** P0 — scope sprawl is the #1 AI-native startup failure mode per the Founder's Playbook.
55
> **Last reviewed:** 2026-06-09
66
> **Depends on:** [01-founder-playbook-reflection.md](01-founder-playbook-reflection.md) (Learning 4)
7-
> **Work plan:** [Phase 02: Scope Audit](../../plans/phase-02-scope-audit.md)
7+
> **Work plan:** [Phase 02: Scope Audit](../plans/phase-02-scope-audit.md)
88
99
## Problem Statement
1010

docs/architecture-reflection/04-competitive-threat-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> **Priority:** P1 — strategic clarity, not immediately blocking.
55
> **Last reviewed:** 2026-06-09
66
> **Depends on:** [01-founder-playbook-reflection.md](01-founder-playbook-reflection.md) (Learning 2)
7-
> **Work plan:** [Phase 03: Competitive Analysis](../../plans/phase-03-competitive-analysis.md)
7+
> **Work plan:** [Phase 03: Competitive Analysis](../plans/phase-03-competitive-analysis.md)
88
99
## Methodology
1010

docs/architecture-reflection/05-pmf-measurement-framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> **Priority:** P1 — necessary before scaling user acquisition.
55
> **Last reviewed:** 2026-06-09
66
> **Depends on:** [01-founder-playbook-reflection.md](01-founder-playbook-reflection.md) (Learning 5)
7-
> **Work plan:** [Phase 04: PMF Framework](../../plans/phase-04-pmf-framework.md)
7+
> **Work plan:** [Phase 04: PMF Framework](../plans/phase-04-pmf-framework.md)
88
99
## Problem Statement
1010

docs/architecture-reflection/06-founder-bottleneck-audit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> **Priority:** P2 — important for Launch stage readiness, not blocking pre-PMF.
55
> **Last reviewed:** 2026-06-09
66
> **Depends on:** [01-founder-playbook-reflection.md](01-founder-playbook-reflection.md) (Learning 6)
7-
> **Work plan:** [Phase 05: Founder Systematization](../../plans/phase-05-founder-systematization.md)
7+
> **Work plan:** [Phase 05: Founder Systematization](../plans/phase-05-founder-systematization.md)
88
99
## Problem Statement
1010

@@ -138,4 +138,4 @@ A practical test to validate systematization:
138138
- Founder's Playbook Learning 6: "Founder Transitions from Doer to System Designer"
139139
- GitHub CODEOWNERS pattern
140140
- [Architecture documentation](./README.md)
141-
- [CONTRIBUTING.md](../CONTRIBUTING.md) — existing contribution guidelines
141+
- [CONTRIBUTING.md](../../CONTRIBUTING.md) — existing contribution guidelines

0 commit comments

Comments
 (0)