diff --git a/.agent-loop/CURRENT_STATE.md b/.agent-loop/CURRENT_STATE.md index b95437898..d7b3e1a2c 100644 --- a/.agent-loop/CURRENT_STATE.md +++ b/.agent-loop/CURRENT_STATE.md @@ -28,12 +28,12 @@ authority; these records do not grant or withhold it. | Initiative | Durable state on `main` | Remaining boundary | |---|---|---| -| [WS-ARCH-001](initiatives/WS-ARCH-001-modular-monolith-boundaries/STATUS.md) | Boundary foundation is merged through PR #310; no product behavior changed | Review the proposed submission-capability split across TASKS, PROJECTS, CHECKERS, ART, AUTH, and composition before implementing or activating contributor preparation | +| [WS-ARCH-001](initiatives/WS-ARCH-001-modular-monolith-boundaries/STATUS.md) | Boundary foundation and the TASK/PROJECT public facts are merged through PRs #310, #314, and #315; no product behavior was activated | Implement only `02C`, the CHECKERS effective pre-submit public API, before ART preparation work resumes | | [WS-ART-001](initiatives/WS-ART-001-immutable-artifact-storage/STATUS.md) | Active delivery initiative; verified ready-admission publication and hidden preparation are merged through `04C2` | Replace the non-executable 05-wave XINT/ART contracts with WS-ARCH-001 split public-API contracts before activation, Submission consumption, or live cutover | -| [WS-AUTH-001](initiatives/WS-AUTH-001-workstream-authorization-service/STATUS.md) | Active delivery initiative; foundations and project-policy authority are merged through `12F3` | Remaining activation chunks depend on exact merged POL, ART, and REV behavior; refresh each executable contract on current `main` | +| [WS-AUTH-001](initiatives/WS-AUTH-001-workstream-authorization-service/STATUS.md) | Active delivery initiative; project-policy authority and unified compilation authorization are merged through `12I` | POL-03B consumes 12I next; remaining AUTH activation chunks wait for their exact hidden owner behavior | | [WS-CON-001](initiatives/WS-CON-001-contribution-compensation-boundary/STATUS.md) | Active delivery initiative; policy persistence and shared lifecycle audit are merged | Complete hidden services, contribution records, conditional awards, fulfillment, and reconciliation after named AUTH and REV gates | | [WS-AUTH-003](initiatives/WS-AUTH-003-module-boundary-recovery/STATUS.md) | AUTH boundary foundation and first public-capability proof through POL-03A are merged | Repair each touched AUTH capability through `authorization.api` and shrink the canonical AUTH ledger | -| [WS-POL-003](initiatives/WS-POL-003-unified-project-guide-compilation/STATUS.md) | Active delivery initiative; hidden compilation custody is merged through `03A` | Continue AUTH-12I activation, then authorized compilation persistence and later approval integration in dependency order | +| [WS-POL-003](initiatives/WS-POL-003-unified-project-guide-compilation/STATUS.md) | Active delivery initiative; hidden compilation custody and AUTH-12I activation are merged | Implement POL-03B authorized compilation persistence, then continue the reviewed dependency order | | [WS-REV-001](initiatives/WS-REV-001-review-revision-lifecycle/STATUS.md) | Active delivery initiative; queue admission and reviewer-lease persistence are merged through `03A2` | Continue packet, review, decision, revision, recovery, and release chunks after named ART, AUTH, and CON gates | | [WS-QUAL-002](initiatives/WS-QUAL-002-behavior-ownership-catalogue/STATUS.md) | Active quality initiative; catalogue foundation `01` is merged | Add context evidence, then populate subsystem ownership before considering a changed-line-aware mutation gate | | [WS-XINT-002](initiatives/WS-XINT-002-art-auth-end-to-end/STATUS.md) | Guide and pre-submit materialization activation is merged | Continue only remaining ART and AUTH activation edges required by the artifact delivery path | diff --git a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/CHUNK_MAP.md b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/CHUNK_MAP.md index da91122ea..bcecff1e7 100644 --- a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/CHUNK_MAP.md +++ b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/CHUNK_MAP.md @@ -3,10 +3,11 @@ | Chunk | Goal | Risk | State | |---|---|---:|---| | `WS-ARCH-001-01` | Canonical module map, exact general edge ledger, public-API validator, and CI foundation | L1 | Complete | +| `WS-ARCH-001-HK1` | Post-02B durable-state and local-worktree housekeeping | L2 | In review; documentation and local operations only | | `WS-ARCH-001-02` | Coordination record for the split submission preparation/consumption capability sequence | L1 | Split; non-executable parent | -| `WS-ARCH-001-02A` | TASKS task/assignment/predecessor and Submission public facts/ports | L1 | Proposed first implementation chunk after plan approval | -| `WS-ARCH-001-02B` | PROJECTS locked guide and submission-policy public facts/ports | L1 | Proposed after 02A | -| `WS-ARCH-001-02C` | CHECKERS effective pre-submit plan and bounded execution-result public facts/ports | L1 | Proposed after 02B | +| `WS-ARCH-001-02A` | TASKS task/assignment/predecessor and Submission public facts/ports | L1 | Merged PR #314 | +| `WS-ARCH-001-02B` | PROJECTS locked guide and submission-policy public facts/ports | L1 | Merged PR #315 | +| `WS-ARCH-001-02C` | CHECKERS effective pre-submit plan and bounded execution-result public facts/ports | L1 | Next executable chunk; entry gate satisfied | | `WS-ARCH-001-02D` | ART hidden preparation public API and private-edge migration | L1 | Proposed after 02A-02C | | `WS-ARCH-001-02E` | ART ready-admission consumption and binding public capability | L1 | Proposed after 02D | | `WS-ARCH-001-02F` | TASK-owned immutable Submission command and hidden composed transaction | L1 | Proposed after 02E | diff --git a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/DISCOVERY.md b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/DISCOVERY.md index 550057bdc..dfb46113b 100644 --- a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/DISCOVERY.md +++ b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/DISCOVERY.md @@ -135,3 +135,25 @@ edges are removed. - Which legacy edges can be removed in the same feature chunk without changing behavior? - Which next migration identifier is free on then-current `main`? + +## Post-02B repository housekeeping + +PRs #314 and #315 merged the TASKS and PROJECTS public capability foundations. +The PROJECTS change also extracted locked-policy persistence from the legacy +repository into `projects/locked_policy_repository.py`; this is the intended +capability-sized recovery pattern rather than a repository-wide rewrite. + +The post-merge inventory confirms that large legacy production and test +containers remain, including `projects/service.py`, `artifacts/service.py`, +`tests/test_projects.py`, and `tests/test_authorization.py`. Their size is +evidence of frozen structural debt, not permission for a bulk split. Each +executable capability chunk must extract the behavior and tests it touches, +preserve old-to-new assertion coverage where required, and leave unrelated +containers unchanged. + +Local worktree state is operational rather than repository authority. At the +post-02B audit, dirty worktrees existed for CON lifecycle evidence, +pre-start-assurance planning, and QUAL test-structure planning. They must not +be removed or overwritten. Dead temporary registrations and clean merged +worktrees may be pruned only after confirming no process owns them, their HEAD +is contained in `origin/main`, and they contain no uncommitted or unique work. diff --git a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/STATUS.md b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/STATUS.md index edadeb495..8bc9e12a2 100644 --- a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/STATUS.md +++ b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/STATUS.md @@ -11,6 +11,14 @@ - Completed foundation: WS-ARCH-001-01 installs the canonical registry, exact general debt ledger, AUTH-ledger composition, protected-base validator, public-API checks, behavior-ownership record, and hosted CI enforcement. -- Planning in review: WS-ARCH-001-02 is split into 02A-02I across TASKS, +- Approved split: WS-ARCH-001-02 is divided into 02A-02I across TASKS, PROJECTS, CHECKERS, ART, AUTH, composition, and the final API clean cut. -- Next implementation boundary after plan approval: WS-ARCH-001-02A only. +- Completed capability foundations: TASKS `02A` merged through PR #314 and + PROJECTS `02B` merged through PR #315. +- Next implementation boundary: WS-ARCH-001-02C only. It exposes CHECKER-owned + effective-plan and bounded execution-result contracts without activating the + contributor preparation route. +- Repository housekeeping after PR #315 found no competing clean-up + initiative: WS-ARCH-001 remains the general boundary owner, WS-AUTH-003 owns + AUTH-specific debt, and test-structure repairs remain incremental with the + capability being touched. diff --git a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-02A-task-submission-context-api.md b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-02A-task-submission-context-api.md index c0c38bf31..39e1cff61 100644 --- a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-02A-task-submission-context-api.md +++ b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-02A-task-submission-context-api.md @@ -1,7 +1,7 @@ # Chunk Contract: WS-ARCH-001-02A — TASK Submission Context Public API -Implementation state: in review; on merge, this chunk is complete and -WS-ARCH-001-02B becomes the next eligible implementation boundary. +Implementation state: merged through PR #314. This contract is historical +scope evidence; current sequencing lives in `STATUS.md` and `CHUNK_MAP.md`. ## Parent initiative diff --git a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-02B-project-locked-policy-api.md b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-02B-project-locked-policy-api.md index c1f8f419b..ec5314cf8 100644 --- a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-02B-project-locked-policy-api.md +++ b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-02B-project-locked-policy-api.md @@ -1,7 +1,7 @@ # Chunk Contract: WS-ARCH-001-02B — PROJECT Locked Policy Public API -Implementation state: in review; on merge, this chunk is complete and -WS-ARCH-001-02C becomes the next eligible implementation boundary. +Implementation state: merged through PR #315. This contract is historical +scope evidence; WS-ARCH-001-02C is the next eligible implementation boundary. ## Parent initiative diff --git a/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-HK1-post-merge-housekeeping.md b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-HK1-post-merge-housekeeping.md new file mode 100644 index 000000000..9dd5abb48 --- /dev/null +++ b/.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/chunks/WS-ARCH-001-HK1-post-merge-housekeeping.md @@ -0,0 +1,65 @@ +# Chunk Contract: WS-ARCH-001-HK1 Post-Merge Housekeeping + +## Goal + +Reconcile durable engineering state after PRs #312, #314, and #315 and record +the safe operational cleanup boundary before WS-ARCH-001-02C starts. + +## Scope + +Documentation and local-worktree housekeeping only. This chunk changes no +runtime behavior, schema, migration, authorization catalogue, test, or CI gate. + +## Allowed files + +```text +.agent-loop/CURRENT_STATE.md +.agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries/** +.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/STATUS.md +.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/CHUNK_MAP.md +.agent-loop/initiatives/WS-POL-003-unified-project-guide-compilation/STATUS.md +``` + +Local operational cleanup may remove only worktree registrations or directories +that are clean, inactive, and fully contained in `origin/main`. Dirty or +unmerged worktrees are inventory only and remain untouched. + +## Not allowed + +Production or test code; workflows; coverage thresholds; migrations; product +behavior; mass file splitting; deleting a dirty, active, or unmerged worktree; +creating another architecture or test-structure initiative. + +## Acceptance criteria + +- [x] AUTH-12I is recorded as merged through PR #312. +- [x] WS-ARCH-001-02A and 02B are recorded as merged through PRs #314 and #315. +- [x] WS-ARCH-001-02C is the sole immediate implementation boundary. +- [x] POL-03B is recorded as eligible after merged AUTH-12I. +- [x] Dirty and unmerged worktrees are preserved. +- [x] Safe cleanup requires clean state, merged ancestry, and no active process. +- [x] Incremental capability-sized code and test recovery remains explicit. + +## Risk and reviewers + +Risk: L2 documentation/operations reconciliation. Required review: architecture, +docs, and senior engineering. CI integrity review is required if any workflow, +test command, or threshold unexpectedly changes. + +## Verification + +```bash +python3 scripts/check_markdown_links.py +rg -n "12I implemented pending review|12I.*not merged|02A only|02B.*Proposed" \ + --glob '!**/WS-ARCH-001-HK1-post-merge-housekeeping.md' \ + .agent-loop/CURRENT_STATE.md \ + .agent-loop/initiatives/WS-ARCH-001-modular-monolith-boundaries \ + .agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service \ + .agent-loop/initiatives/WS-POL-003-unified-project-guide-compilation +git diff --check +``` + +## Human review focus + +Confirm the records describe merged behavior, do not turn planning into +authorization, and preserve all worktrees containing unique or uncommitted work. diff --git a/.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/CHUNK_MAP.md b/.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/CHUNK_MAP.md index f72bfa165..24e004d43 100644 --- a/.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/CHUNK_MAP.md +++ b/.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/CHUNK_MAP.md @@ -72,7 +72,7 @@ stopped. | `WS-AUTH-001-12F1` | Submission Policy Authority Foundation | L1 | Merged through PR #286; zero activation | | `WS-AUTH-001-12F2` | Manual Submission Policy Drafts | L1 | Merged through PR #292 as `81f281bd` | | `WS-AUTH-001-12F3` | Transitional Fixed-Service Policy Derivation | L1 | Merged through PR #295 as `99c0aaf0`; superseded at POL-04B live cutover | -| `WS-AUTH-001-12I` | Unified Compilation Request/Execute Activation | L1 | Proposed after hidden POL-03A; before POL-03B | +| `WS-AUTH-001-12I` | Unified Compilation Request/Execute Activation | L1 | Merged through PR #312 as `98eae13e`; POL-03B is the next consumer | | `WS-AUTH-001-12F4` | Unified Pre-Submit Approval Activation | L1 | Proposed after hidden POL-05A; before POL-05B | | `WS-AUTH-001-12G` | Unified Post-Submit Projection Activation | L1 | Proposed after hidden POL-06A; zero model calls | | `WS-AUTH-001-12H` | Unified Guide Activation Cutover | L1 | Proposed after POL-06B/07 and complete approved unified lineage | diff --git a/.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/STATUS.md b/.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/STATUS.md index 84de4b544..ae9956892 100644 --- a/.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/STATUS.md +++ b/.agent-loop/initiatives/WS-AUTH-001-workstream-authorization-service/STATUS.md @@ -186,7 +186,7 @@ Open pull requests, not this file, are the transient review view. | `WS-AUTH-001-12F1` | Merged | `codex/ws-auth-001-12f1-submission-policy-foundation` | #286 | Submission-policy PREP, replay, provenance, and audit custody foundation merged as `5a4186cc`; zero activation. | | `WS-AUTH-001-12F2` | Merged | `codex/ws-auth-001-12f2-manual-submission-policy` | #292 | Governed Project Manager append-only manual-draft create/update cutover merged as `81f281bd`. | | `WS-AUTH-001-12F3` | Merged; transitional | `codex/ws-auth-001-12f3-service-derivation` | #295 | Merged as `99c0aaf0`; authority/provenance is reused, while its separate inference entry point is removed at POL-04B. | -| `WS-AUTH-001-12I` | Implemented; review pending | `codex/ws-auth-001-12i-unified-compilation-activation` | - | Exact Project Manager request/recovery and fixed project-setup execution activation; POL remains hidden until 03B. | +| `WS-AUTH-001-12I` | Merged | `codex/ws-auth-001-12i-unified-compilation-activation` | #312 | Exact Project Manager request/recovery and fixed project-setup execution activation merged as `98eae13e`; POL remains hidden until 03B. | | `WS-AUTH-001-12F4` | Proposed | - | - | Activates approval of the stored unified pre-submit component; no inference. | | `WS-AUTH-001-12G` | Proposed | - | - | Activates deterministic stored post-submit projection; zero model calls. | | `WS-AUTH-001-12H` | Proposed | - | - | Activates only a complete approved unified guide lineage. | diff --git a/.agent-loop/initiatives/WS-POL-003-unified-project-guide-compilation/STATUS.md b/.agent-loop/initiatives/WS-POL-003-unified-project-guide-compilation/STATUS.md index aea95ef3d..8b306226d 100644 --- a/.agent-loop/initiatives/WS-POL-003-unified-project-guide-compilation/STATUS.md +++ b/.agent-loop/initiatives/WS-POL-003-unified-project-guide-compilation/STATUS.md @@ -29,8 +29,8 @@ determine transient implementation ownership. | Canonical CHECKER/POL post-submit registry | POL-01 | Present; remaining POL-002 work must be reframed as executor ownership, not inference | | POL-01 strict manifest | POL-02 | Merged PR #299 | | POL-02 adapter | POL-03A | Merged PR #301 | -| Hidden POL-03A compilation custody | AUTH-12I compilation request/execute activation | POL-03A merged PR #307; AUTH-12I implemented pending review | -| AUTH-12I | POL-03B authorized persistence | Implemented pending review; not merged | +| Hidden POL-03A compilation custody | AUTH-12I compilation request/execute activation | POL-03A merged PR #307; AUTH-12I merged PR #312 | +| AUTH-12I | POL-03B authorized persistence | Merged PR #312; dependency satisfied | | Hidden POL-04A unified setup-service manifest | AUTH-12B2 setup-ledger activation | Not yet implemented | | Hidden POL-05A approval manifest | AUTH-12F4 approval activation | Not yet implemented | | Hidden POL-06A deterministic post manifest | AUTH-12G projection/approval activation | Not yet implemented | @@ -46,6 +46,6 @@ explicit allowed/not-allowed paths, runnable verification commands, and named reviewer tracks. They cannot authorize implementation in their current form. `WS-POL-003-03A` merged through PR #307 at `5e459a8f`. It installs hidden -compilation custody and the first public AUTH-capability consumer proof. AUTH-12I -now implements the exact request/execute activation on its review branch; POL-03B -remains blocked until that activation is reviewed and merged. +compilation custody and the first public AUTH-capability consumer proof. +AUTH-12I merged through PR #312 at `98eae13e`; POL-03B is now the next eligible +POL implementation boundary.