Skip to content

Commit 2e68fcb

Browse files
samrusaniSami Rusani
andauthored
[codex] Phase 12 closeout and v0.3.2 release prep (#157)
* Phase 12 closeout and v0.3.2 release prep * Track control-doc truth gate files --------- Co-authored-by: Sami Rusani <sr@samirusani>
1 parent de19350 commit 2e68fcb

31 files changed

Lines changed: 704 additions & 271 deletions

.ai/active/SPRINT_PACKET.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Sprint Packet
2+
3+
## Sprint Title
4+
Phase 12 Closeout and `v0.3.2` Release Update
5+
6+
## Activation Note
7+
- This packet is active.
8+
- `v0.2.0` is the latest published tag.
9+
- `v0.3.2` is the current release target for the completed Phase 12 boundary.
10+
- Phase 12 implementation scope is complete through `P12-S1` to `P12-S5`.
11+
12+
## Sprint Type
13+
closeout
14+
15+
## Sprint Reason
16+
Phase 12 implementation is complete. The remaining work is not another product sprint. It is closeout:
17+
- summarize the completed phase clearly
18+
- align canonical docs to Phase 12 completion
19+
- update release docs from the old `v0.2.0` boundary to the new `v0.3.2` target
20+
- prepare the repo for either a `v0.3.2` tag or next-phase planning
21+
22+
## Git Instructions
23+
- Branch Name: `codex/phase12-closeout-v0-3-2`
24+
- Base Branch: `main`
25+
- PR Strategy: one docs/control branch, one PR
26+
- Merge Policy: squash merge after review `PASS` and explicit approval
27+
28+
## Baseline To Preserve
29+
- shipped Phase 9 through Phase 11 baseline
30+
- shipped Bridge `B1` through `B4`
31+
- shipped Phase 12 `P12-S1` through `P12-S5`
32+
- current published tag remains `v0.2.0` until a new tag is cut
33+
34+
## Exact Goal
35+
Close Phase 12 cleanly and move the documented release boundary to `v0.3.2` without falsely claiming that the `v0.3.2` tag has already been cut.
36+
37+
## In Scope
38+
- Phase 12 closeout packet
39+
- Phase 12 closeout summary
40+
- current-state and roadmap alignment for completed Phase 12
41+
- `v0.3.2` release checklist, tag plan, and runbook
42+
- README and public-doc release-boundary updates
43+
- changelog update for completed Phase 12
44+
45+
## Out Of Scope
46+
- new product or runtime features
47+
- reopening any Phase 12 implementation sprint
48+
- tagging or publishing `v0.3.2` without explicit approval
49+
- defining the next phase in detail
50+
51+
## Proposed Files And Modules
52+
- `README.md`
53+
- `CHANGELOG.md`
54+
- `PRODUCT_BRIEF.md`
55+
- `ARCHITECTURE.md`
56+
- `ROADMAP.md`
57+
- `RULES.md`
58+
- `CURRENT_STATE.md`
59+
- `.ai/handoff/CURRENT_STATE.md`
60+
- `.ai/active/SPRINT_PACKET.md`
61+
- `docs/runbooks/phase12-closeout-packet.md`
62+
- `docs/phase12-closeout-summary.md`
63+
- `docs/release/v0.3.2-release-checklist.md`
64+
- `docs/release/v0.3.2-tag-plan.md`
65+
- `docs/runbooks/v0.3.2-public-release-runbook.md`
66+
- public docs that still hard-code the old `v0.2.0` release boundary
67+
- `scripts/check_control_doc_truth.py`
68+
69+
## Planned Deliverables
70+
- Phase 12 closeout packet
71+
- Phase 12 closeout summary
72+
- `v0.3.2` release-target docs
73+
- canonical doc alignment to completed Phase 12
74+
- updated release-boundary references in public docs
75+
76+
## Acceptance Criteria
77+
- Phase 12 is described as complete in canonical docs
78+
- The documented release target is `v0.3.2`
79+
- the docs do not falsely claim that `v0.3.2` is already tagged or published
80+
- closeout docs summarize what shipped in `P12-S1` through `P12-S5`
81+
- control-doc truth passes after the closeout update
82+
83+
## Required Verification
84+
- `python3 scripts/check_control_doc_truth.py`
85+
- `./.venv/bin/python -m pytest tests/unit/test_control_doc_truth.py -q`
86+
87+
## Control Tower Decisions Needed
88+
- whether to tag and publish `v0.3.2` immediately after closeout
89+
- whether to run a dedicated release-readiness pass before the `v0.3.2` tag
90+
- what the next planned phase is after Phase 12
91+
92+
## Exit Condition
93+
This closeout packet is complete when Phase 12 is summarized cleanly, canonical docs reflect completed Phase 12 truth, and the documented release target is updated to `v0.3.2` without claiming a tag that has not yet been cut.

.ai/handoff/CURRENT_STATE.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,32 @@
55
- Phase 10 is shipped.
66
- Phase 11 is shipped.
77
- Bridge `B1` through `B4` are shipped.
8-
- `v0.2.0` is released.
8+
- `v0.2.0` is the latest published tag.
9+
- `v0.3.2` is the current release target.
910
- Phase 12 Sprint 1 (`P12-S1`) is shipped.
1011
- Phase 12 Sprint 2 (`P12-S2`) is shipped.
1112
- Phase 12 Sprint 3 (`P12-S3`) is shipped.
1213
- Phase 12 Sprint 4 (`P12-S4`) is shipped.
13-
- Phase 12 Sprint 5 (`P12-S5`) is the active execution sprint.
14+
- Phase 12 Sprint 5 (`P12-S5`) is shipped.
15+
- Phase 12 closeout and `v0.3.2` release update are the active control packet.
1416

1517
## Current Baseline Truth
1618
- Alice has typed memory, provenance, trust classes, correction/supersession behavior, open loops, recall, resumption, and explainability.
1719
- Alice exposes CLI, MCP, hosted/product, provider-runtime, and Hermes bridge surfaces.
1820
- The codebase already includes semantic retrieval, embeddings, entities/entity edges, trusted-fact promotion, retrieval evaluation fixtures, deterministic resumption briefs, daily briefs, chief-of-staff briefing flows, and the shipped `P12-S1` hybrid retrieval/reranking foundation with retrieval traces.
19-
- The codebase also includes the shipped `P12-S2` memory mutation candidate and operation foundation, the shipped `P12-S3` contradiction/trust foundation, and the shipped `P12-S4` public eval harness.
20-
21-
## Not Yet First-Class In Repo
21+
- The codebase also includes the shipped `P12-S2` memory mutation candidate and operation foundation, the shipped `P12-S3` contradiction/trust foundation, the shipped `P12-S4` public eval harness, and the shipped `P12-S5` task-adaptive briefing layer.
2222

2323
## Phase Transition Note
24-
- Phase 12 is active.
24+
- Phase 12 is complete.
2525
- `P12-S1` is complete and establishes the retrieval baseline.
2626
- `P12-S2` is complete and establishes the mutation baseline.
2727
- `P12-S3` is complete and establishes the contradiction/trust baseline.
2828
- `P12-S4` is complete and establishes the public-eval baseline.
29-
- `P12-S5` is the active sprint and should build briefing behavior on top of shipped retrieval, mutation, contradiction, and eval baselines without reopening those systems.
30-
- The current `P12-S5` branch implements task-adaptive brief generation, comparison, and model-pack briefing defaults, pending Control Tower merge approval.
29+
- `P12-S5` is complete and establishes the task-adaptive briefing baseline.
30+
- The active docs task is phase closeout, summary, and `v0.3.2` release-target alignment.
31+
- There are no remaining Phase 12 feature sprints.
3132

3233
## Immediate Control Tower Decisions Needed
33-
- Decide briefing modes and payload schema for user recall, resume, worker subtask, and agent handoff.
34-
- Decide provider/model-pack fields for briefing strategy and max brief tokens.
35-
- Decide whether `P12-S5` needs CLI-only, API, and MCP surfaces simultaneously or can stage them.
34+
- Decide when to cut the `v0.3.2` tag and release.
35+
- Decide whether a dedicated release-readiness pass is needed before the tag.
36+
- Decide the next planned phase after Phase 12 closeout.

.gitignore

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,23 @@ apps/web/node_modules/
1010
artifacts/
1111

1212
# Internal operating docs (keep local, exclude from public repo)
13-
.ai/
13+
.ai/*
14+
!.ai/active/
15+
!.ai/handoff/
16+
.ai/active/*
17+
!.ai/active/SPRINT_PACKET.md
18+
.ai/handoff/*
19+
!.ai/handoff/CURRENT_STATE.md
1420
BUILD_REPORT.md
1521
REVIEW_REPORT.md
1622
ARCHIVE_RECOMMENDATIONS.md
1723
RECOMMENDED_ADRS.md
1824

1925
# Internal planning/process docs (keep local, exclude from public repo)
20-
docs/archive/planning/
26+
docs/archive/planning/*
27+
!docs/archive/planning/2026-04-08-context-compaction/
28+
docs/archive/planning/2026-04-08-context-compaction/*
29+
!docs/archive/planning/2026-04-08-context-compaction/README.md
2130
docs/archive/sprints/
2231
docs/phase5-sprint-17-20-plan.md
2332
docs/phase8-sprint-29-32-plan.md

ARCHITECTURE.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Scope Boundary
44
- **Shipped baseline:** Phases 9-11 and Bridge `B1` through `B4`.
5-
- **Current repo execution posture:** `v0.2.0` is released; `P12-S1`, `P12-S2`, `P12-S3`, and `P12-S4` are shipped; `P12-S5` is the active sprint.
6-
- **Phase 12 delta:** retrieval quality, mutation explicitness, contradiction handling, public evals, and adaptive briefing.
5+
- **Current repo execution posture:** `v0.2.0` is the latest published tag; `v0.3.2` is the current release target; Phase 12 is complete.
6+
- **Active control-doc task:** Phase 12 closeout and `v0.3.2` release update.
77

88
## Current System Overview
99
Alice is a modular continuity platform with shared continuity semantics across local, hosted, provider-runtime, MCP, and Hermes-integrated surfaces.
@@ -92,7 +92,7 @@ Shipped in `P12-S1`:
9292
- trust-aware reranking
9393
- persisted retrieval traces
9494

95-
Planned additions:
95+
Delivered additions:
9696
- `retrieval_runs`
9797
- `retrieval_candidates`
9898
- debug surfaces for API, CLI, and MCP
@@ -135,13 +135,13 @@ Important baseline note: `P12-S4` is now the evaluation baseline for the rest of
135135
Source-of-truth note: the checked-in fixture catalog defines the authoritative suite/case set and ordering; persisted eval suite/case rows are synchronized snapshots for execution and audit, not an independent planning surface.
136136

137137
### P12-S5: Task-Adaptive Briefing
138-
Separate durable memory from output-specific briefing layers.
138+
Shipped in `P12-S5`:
139139

140-
Planned additions:
140+
Delivered additions:
141141
- `task_briefs`
142142
- provider/model-pack briefing strategy fields
143143

144-
Important baseline note: `P12-S5` should build on shipped retrieval, mutation, contradiction, and eval baselines. Existing resumption, daily-brief, and chief-of-staff briefing surfaces are starting points, not greenfield replacements.
144+
Important baseline note: `P12-S5` closes the planned Phase 12 implementation scope. Existing resumption, daily-brief, and chief-of-staff briefing surfaces remain the starting points rather than being replaced wholesale.
145145

146146
## Security And Reliability Rules
147147
- Keep user/workspace isolation intact for continuity, provider, and channel data.
@@ -169,7 +169,5 @@ Important baseline note: `P12-S5` should build on shipped retrieval, mutation, c
169169
- release/eval artifacts committed only when they correspond to exact commands and fixtures
170170

171171
## Control Tower Decisions Needed
172-
- Should Phase 12 retrieval ship behind a feature flag before it replaces the default recall path?
173-
- Should new endpoints use `/v1/retrieval/*`, `/v1/evals/*`, `/v1/briefs/*`, or extend existing continuity endpoints?
174-
- Should contradictions attach to continuity objects only, memories only, or both with a shared abstraction?
175-
- Should `DELETE` be restricted to logical deletion/tombstoning by default?
172+
- Whether `v0.3.2` should be tagged immediately or held until a dedicated release pass.
173+
- What the next planned phase is after the completed Phase 12 architecture baseline.

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
## 2026-04-14
44

5+
- Closed out Phase 12 after shipping all five planned sprints:
6+
- `P12-S1` hybrid retrieval + reranking
7+
- `P12-S2` automated memory operations
8+
- `P12-S3` contradiction detection + trust calibration
9+
- `P12-S4` public eval harness
10+
- `P12-S5` task-adaptive briefing
11+
- Added Phase 12 closeout summary and closeout packet.
12+
- Updated the documented release target from `v0.2.0` to `v0.3.2` for the completed Phase 12 boundary.
13+
- Aligned Python, API, web, CLI, core-package, and Hermes plugin version metadata to `0.3.2`.
14+
- Added `v0.3.2` release checklist, tag plan, and public release runbook.
15+
- Kept the published release truth explicit: the latest published tag remains `v0.2.0` until `v0.3.2` is cut.
16+
517
- Prepared `R1` release-readiness package for `v0.2.0` as a pre-1.0 public release boundary.
618
- Added `v0.2.0` release checklist, tag plan, and public release runbook.
719
- Realigned launch-facing docs to shipped scope through Phase 11 and Bridge `B1` through `B4`.

CURRENT_STATE.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,32 @@ Canonical handoff state lives at [.ai/handoff/CURRENT_STATE.md](.ai/handoff/CURR
88
- Phase 10 is shipped.
99
- Phase 11 is shipped.
1010
- Bridge `B1` through `B4` are shipped.
11-
- `v0.2.0` is released.
11+
- `v0.2.0` is the latest published tag.
12+
- `v0.3.2` is the current release target.
1213
- Phase 12 Sprint 1 (`P12-S1`) is shipped.
1314
- Phase 12 Sprint 2 (`P12-S2`) is shipped.
1415
- Phase 12 Sprint 3 (`P12-S3`) is shipped.
1516
- Phase 12 Sprint 4 (`P12-S4`) is shipped.
16-
- Phase 12 Sprint 5 (`P12-S5`) is the active execution sprint.
17+
- Phase 12 Sprint 5 (`P12-S5`) is shipped.
18+
- Phase 12 closeout and `v0.3.2` release update are the active control packet.
1719

1820
## Current Baseline Truth
1921
- Alice has typed memory, provenance, trust classes, correction/supersession behavior, open loops, recall, resumption, and explainability.
2022
- Alice exposes CLI, MCP, hosted/product, provider-runtime, and Hermes bridge surfaces.
2123
- The codebase already includes semantic retrieval, embeddings, entities/entity edges, trusted-fact promotion, retrieval evaluation fixtures, deterministic resumption briefs, daily briefs, chief-of-staff briefing flows, and the shipped `P12-S1` hybrid retrieval/reranking foundation with retrieval traces.
22-
- The codebase also includes the shipped `P12-S2` memory mutation candidate and operation foundation, the shipped `P12-S3` contradiction/trust foundation, and the shipped `P12-S4` public eval harness.
23-
24-
## Not Yet First-Class In Repo
24+
- The codebase also includes the shipped `P12-S2` memory mutation candidate and operation foundation, the shipped `P12-S3` contradiction/trust foundation, the shipped `P12-S4` public eval harness, and the shipped `P12-S5` task-adaptive briefing layer.
2525

2626
## Phase Transition Note
27-
- Phase 12 is active.
27+
- Phase 12 is complete.
2828
- `P12-S1` is complete and establishes the retrieval baseline.
2929
- `P12-S2` is complete and establishes the mutation baseline.
3030
- `P12-S3` is complete and establishes the contradiction/trust baseline.
3131
- `P12-S4` is complete and establishes the public-eval baseline.
32-
- `P12-S5` is the active sprint and should build briefing behavior on top of shipped retrieval, mutation, contradiction, and eval baselines without reopening those systems.
33-
- The current `P12-S5` branch implements task-adaptive brief generation, comparison, and model-pack briefing defaults, pending Control Tower merge approval.
32+
- `P12-S5` is complete and establishes the task-adaptive briefing baseline.
33+
- The active docs task is phase closeout, summary, and `v0.3.2` release-target alignment.
34+
- There are no remaining Phase 12 feature sprints.
3435

3536
## Immediate Control Tower Decisions Needed
36-
- Decide briefing modes and payload schema for user recall, resume, worker subtask, and agent handoff.
37-
- Decide provider/model-pack fields for briefing strategy and max brief tokens.
38-
- Decide whether `P12-S5` needs CLI-only, API, and MCP surfaces simultaneously or can stage them.
37+
- Decide when to cut the `v0.3.2` tag and release.
38+
- Decide whether a dedicated release-readiness pass is needed before the tag.
39+
- Decide the next planned phase after Phase 12 closeout.

PRODUCT_BRIEF.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ Alice is a pre-1.0 continuity platform for AI agents and agent-assisted workflow
1111

1212
## Current Repo Posture
1313
- `v0.2.0` is tagged and released.
14+
- `v0.3.2` is the current release target for the completed Phase 12 boundary.
1415
- Release Sprint 1 (`R1`) is complete and now baseline truth.
15-
- Phase 12 is active.
16+
- Phase 12 is complete.
1617
- `P12-S1` Hybrid Retrieval + Reranking is shipped.
1718
- `P12-S2` Automated Memory Operations is shipped.
1819
- `P12-S3` Contradiction Detection + Trust Calibration is shipped.
1920
- `P12-S4` Public Eval Harness is shipped.
20-
- `P12-S5` Task-Adaptive Briefing is the active sprint.
21+
- `P12-S5` Task-Adaptive Briefing is shipped.
22+
- Phase 12 closeout and `v0.3.2` release update are the active control-doc task.
2123

22-
## Next Phase
24+
## Completed Phase
2325
### Phase 12: Retrieval Quality + Adaptive Continuity
2426
Raise Alice from a strong continuity substrate to a measurably better memory system by improving:
2527
- retrieval precision
@@ -61,5 +63,5 @@ Alice already has durable memory, provenance, trust classes, revision/supersessi
6163
- Worker-task briefs are smaller and sharper than generic recall context without degrading resumption quality.
6264

6365
## Control Tower Decisions Needed
64-
- Whether new Phase 12 APIs should live under new `/v1` feature namespaces or extend the existing continuity surface.
65-
- Whether `DELETE` in memory operations means hard delete, logical tombstone, or a restricted administrative path.
66+
- When to cut and publish the `v0.3.2` tag/release.
67+
- What the next planned phase is after Phase 12 closeout.

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ durable memory for agents, agent resumption, open loop tracking, local-first ai
1515

1616
Alice helps agents **remember what matters, resume interrupted work, explain why something is true, and improve when corrected**.
1717

18-
`v0.2.0` is a **pre-1.0 public release**. It packages shipped baseline scope through Phase 11 and Bridge `B1` through `B4` without claiming `v1.0.0` stability guarantees.
18+
`v0.3.2` is the current **pre-1.0 release target** for the completed Phase 12 boundary. The latest published tag remains `v0.2.0` until the `v0.3.2` release is cut.
1919

2020
Most assistants are still good only in the moment. They can answer the current prompt, but they struggle to preserve decisions, track open loops, recover context across sessions, and stay aligned after memory corrections.
2121

@@ -27,14 +27,20 @@ It provides a **local-first memory and continuity engine** for capture, recall,
2727

2828
**Works across local, self-hosted, enterprise, and external-agent workflows via CLI, MCP, provider runtime, OpenClaw import, and Hermes integration.**
2929

30-
## Release Boundary (`v0.2.0`)
30+
## Release Boundary (`v0.3.2` Target)
3131

32-
Shipped baseline included in this pre-1.0 release:
32+
Completed baseline included in this pre-1.0 release target:
3333

3434
- Phase 9 continuity core and deterministic local CLI/MCP/importer seams
3535
- Phase 10 hosted/product layer
3636
- Phase 11 provider runtime, adapters, and model packs
3737
- Bridge `B1` through `B4` provider contract, auto-capture flow, review/explainability flow, and bridge docs/smoke validation
38+
- Phase 12 retrieval quality stack:
39+
- hybrid retrieval and reranking
40+
- explicit memory mutation operations
41+
- contradiction detection and trust calibration
42+
- public eval harness and baseline reports
43+
- task-adaptive briefing
3844

3945
Historical planning/control artifacts remain available in:
4046
[docs/archive/planning/2026-04-08-context-compaction/README.md](docs/archive/planning/2026-04-08-context-compaction/README.md)
@@ -136,6 +142,11 @@ The current open-source surface includes:
136142
- scheduled archive maintenance, ops status reporting, and failure alerting
137143
- Hermes bridge with provider lifecycle hooks, always-on continuity prefetch, turn auto-capture, policy-based commit modes (`manual` / `assist` / `auto`), and reviewable explainable candidate memory flows
138144
- provider runtime abstraction with workspace-scoped provider registration, capability snapshots, OpenAI-compatible base adapter, local Ollama/llama.cpp, self-hosted vLLM, enterprise Azure, model packs, and external-agent integration paths
145+
- hybrid retrieval with persisted retrieval traces and debug visibility
146+
- explicit memory mutation operations with auditability and idempotent replay behavior
147+
- contradiction detection, contradiction-aware ranking penalties, and trust-signal inspection
148+
- public eval harness with fixture catalog and checked-in baseline report support
149+
- task-adaptive briefing for user recall, resume, worker subtask, and agent handoff
139150
- importers for OpenClaw, Markdown, and ChatGPT exports
140151
- OpenClaw adapter and demo path
141152
- evaluation harness and integration docs
@@ -301,15 +312,16 @@ That means the system behaves consistently across local workflows, MCP-connected
301312

302313
## Scope Notes
303314

304-
Included in `v0.2.0`:
315+
Included in the `v0.3.2` target:
305316

306317
- local-first continuity core
307318
- CLI and MCP surfaces
308319
- importer paths (OpenClaw, Markdown, ChatGPT exports)
309320
- provider runtime and model-pack support from Phase 11
310321
- Hermes provider-plus-MCP bridge path with MCP-only fallback
322+
- Phase 12 retrieval, mutation, contradiction/trust, public eval, and task-adaptive briefing surfaces
311323

312-
Deferred beyond `v0.2.0`:
324+
Deferred beyond `v0.3.2`:
313325

314326
- `v1.0.0` compatibility/support guarantees
315327
- managed cloud/SLA commitments

0 commit comments

Comments
 (0)