Repository navigation
adopt-neutral-tooling-home: ratified + tranches A/B realized (doc-health spine, routing lanes, NLM sync, dashboard runtime) - #57
Conversation
…ementations The doc-health checker suite, ideation dashboard runtime, cross-factory routing/organizer lanes, and the NotebookLM lifecycle sync move from codexFactory to openxFactory. MODIFIED deltas amend the two ownership requirements (doc-health ownership split, notebook-projection sync ownership); the routing amendment lands pre-promotion in its active change (D5). Rationale recorded: layering inversions (neutral schemas citing domain paths, cross-reference.yaml producer inversion), the private-sibling credential tax, unclaimed mass (nothing inventoried in codexFactory stack.yaml), and Brett's 2026-08-03 open-sourcing plan — public openxFactory carries the big neutral LOC under Sonar, private codexFactory shrinks to its engineering core. Copy-with-provenance, no history grafting (D1: private history must not ride into a repo slated for open-sourcing). Full sweep evidence in supporting-docs. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR proposes (proposal-stage) the adopt-neutral-tooling-home OpenSpec change, documenting a plan to relocate neutral tooling implementations (doc-health, ideation dashboard runtime, and NotebookLM sync) into openxFactory, and to repoint downstream callers accordingly.
Changes:
- Adds a new OpenSpec change record (
proposal.md,design.md,tasks.md) describing tranche-based relocation and repointing work. - Adds delta specs for
doc-healthandlifecycle-notebook-projectionclarifying implementation ownership moving to openxFactory. - Records supporting evidence via a codexFactory neutrality sweep write-up, and links the new change from the repo README.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds the new change to the “Active changes” list with a short rationale/evidence pointer. |
| openspec/changes/adopt-neutral-tooling-home/tasks.md | Defines tranche-by-tranche task plan for moving code, tests, workflows, and repointing callers. |
| openspec/changes/adopt-neutral-tooling-home/supporting-docs/codexfactory-neutrality-sweep.md | Captures evidence motivating the relocation (neutral LOC inventory + findings). |
| openspec/changes/adopt-neutral-tooling-home/specs/lifecycle-notebook-projection/spec.md | Delta spec: asserts openxFactory owns the conforming NotebookLM sync implementation. |
| openspec/changes/adopt-neutral-tooling-home/specs/doc-health/spec.md | Delta spec: asserts doc-health contract/schema/implementation ownership in openxFactory with nightly hosted in aggregation repo. |
| openspec/changes/adopt-neutral-tooling-home/proposal.md | Proposal narrative and impact summary for the relocation and related coordination. |
| openspec/changes/adopt-neutral-tooling-home/design.md | Design decisions (history handling, tranche order, ownership boundaries, hosting split). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| `web/`, `scripts/ideation-dashboard-nightly.py`, | ||
| `ideation-readiness-nightly.py`, `derive-possibles-nightly.py`, | ||
| `docs/ideation-dashboard-session-runbook.md`, | ||
| `tests/ideation-dashboard/`. |
| - COORDINATE: the active `add-cross-factory-ideation-routing` change's | ||
| unpromoted ownership requirement ("codexFactory SHALL own selection, | ||
| orchestration adapters, validation, and report integration") is amended | ||
| in place to name openxFactory, since the lanes move with the doc_health | ||
| package that hosts them. |
Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
Suppressed comments (3)
openspec/changes/adopt-neutral-tooling-home/specs/doc-health/spec.md:3
- This delta spec doesn’t follow the established lifecycle header pattern used by other OpenSpec delta specs (e.g.
openspec/changes/add-hermes-customer-subject-runtime-contract/specs/shared-contract-ownership/spec.mdstarts withStatus:+Ratified by:before## MODIFIED Requirements). Adding the lifecycle header here will make the document’s authority clear and keep validation conventions consistent.
# doc-health Delta: Implementation Comes Home
## MODIFIED Requirements
openspec/changes/adopt-neutral-tooling-home/specs/lifecycle-notebook-projection/spec.md:3
- This delta spec is missing the standard lifecycle metadata header (
Status:and eitherRatified by:orProposed by:) that other delta specs inopenspec/changes/**/specs/*/spec.mduse. Without it, readers can’t tell if this is draft or ratified text.
# lifecycle-notebook-projection Delta: Sync Implementation Comes Home
## MODIFIED Requirements
openspec/changes/adopt-neutral-tooling-home/proposal.md:5
- The PR description/title frame this as a proposal-stage draft, but the proposal front matter is already stamped
Status: ratifiedwith a ratifier and date. This is a governance signal mismatch that will confuse validation and readers. Please align either (a) the PR messaging (if this is genuinely ratified) or (b) the front matter (if this is still awaiting ratification).
Status: ratified
Ratified by: Brett's approval of `adopt-neutral-tooling-home` on 2026-08-03, with design D1-D8 carried as decided (copy-with-provenance, tranche order, readiness split to aggregation, pre-promotion routing amendment)
Provenance: adopted from codexFactory main@e4caa03bf48655b54bc96fc5450d9ad5bddf4886 (copy, no history graft — D1). 114 files / ~31k LOC: scripts/doc_health/ (minus the two CloudPC readiness evaluators, which ride tranche D to the aggregation repo — D3), doc-health.py, sync-notebooklm-books.py, tests/doc-health/, tests/notebooklm/, doc-health-reusable.yml, and the suites' pytest infrastructure (pytest.ini anchor, hermeticity conftest). Scoped rider: ideation_dashboard/__init__.py + boundary.py (the lanes' write-boundary import; tranche B overwrites byte-identically). Path hygiene: SYNC_SCRIPT and 9 workflow entrypoints now openxFactory-rooted; ownership prose updated incl. the emitted cross-reference _YAML_HEADER. Neutral citations made truthful: catalog-snapshot schema x2, validate-document-catalog x5, cross-reference.yaml producer, lifecycle-notebook workspaces managed_by x3, doc-health.md + lifecycle-notebook-projection.md prose/paths. The active add-cross-factory-ideation-routing ownership requirement amended pre-promotion (D5) with a dated note in its ledger. Gates: 551 passed + 3 tranche-B probe skips; existing suites unaffected (45 + 146); 11/14 doc-health families match the 2026-08-02 nightly exactly, 3 diffs are corpus drift (documented in tasks 1.5 evidence); openspec --all --strict 54/54. Co-Authored-By: Claude Fable 5 <[email protected]>
Provenance: adopted from codexFactory main@e4caa03bf48655b54bc96fc5450d9ad5bddf4886 (copy, no history graft — D1). 168 files / ~98k LOC: scripts/ideation_dashboard/ (package incl. web/ at scripts/ideation_dashboard/web/), the three nightly entrypoints, the session runbook, tests/ideation-dashboard/. kickoff.py, serve.py, and all web assets byte-identical to the pin (D4 held at byte level); the two tranche-A riders overwrote byte-identically (sha256-verified); exactly 14 files differ from the pin, all deliberate and ledgered. D3 refinement (dated note in design.md, flagged for Brett): readiness.py IS CloudPC CI-host code and still rides tranche D to the aggregation repo; readiness_dispatch.py is the ideation-readiness LANE dispatch (docstring + imports quoted in the note) and comes home with its 13-test suite plus the restored cross-lane register-carry test — tranche A's repointed workflow lines are now live unedited. Gates: tests/ideation-dashboard 2522 passed / 23 env-conditional skips; doc-health+notebooklm 610 passed 0 skipped (all three tranche-B probes flipped to passes); existing suites green (ideation_dashboard 45, catalog+routing+avatar 146, avatar_runtime 97, hermes CLI 21); snapshot shape identical to the published openxFactory snapshot with corpus-drift deltas only; serve smoke HTTP 200; openspec --all --strict 54/54. Open items ledgered in tasks 2.x evidence: doxbench publisher-side stack-pin ruling (serve's two doxbench routes fail closed from a publisher checkout), six tombstoned cross-repo pins for tranche C/D, the HGR conftest exemption, check_repo_tree tests/ exclusion. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
Review posture for the record: bot review is structurally unavailable on this PR — Codex has no environment for this repo, and Copilot declines PRs over 20,000 changed lines (this one moves ~129k). Verification substitute, per the tranche evidence ledgered in tasks.md: the adopted trees are byte-compared against provenance pin codexFactory main@e4caa03b (exactly 14 deliberate diffs, each named and justified); the moved suites run green in the new home (610 + 2,522 tests, zero unexplained skips); 11/14 doc-health families byte-match the last nightly with the 3 diffs attributed to corpus drift; the authored governance content (~500 lines) passed openspec --all --strict 54/54. Merging on Brett's 2026-08-03 ratification plus this evidence. |
…, with openXdox's governed projection registered by the host (plan 034) (#1215) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Plan 034, task **T064** (slice P2-H): phase 2's consumer pins (T090 steps 5–6), `specs/034-opendox-standalone-operation/tasks.md` at openxFactory `main` `80217a92`. The precedent is T047 (opensoft/openXdox#20, then #1181). - **Landing order, done:** - T066 (#1213) has landed as `80217a92`. openxFactory already holds at both pin sets, and the plan's T064 text already reads "the one host line" (holder decision (a), 2026-09-30). - opensoft/openXdox#21 has landed, squashed to `f257e021`. - **Holder decisions in force:** - (a) the plan-text correction rode in T066; - (b) T092's phase-2 `edits[].note` annotations ride in T063's checkpoint, NOT here; - (c) the three candidate-pin reds with no both-pins form are answered in this PR. - It stays a DRAFT until the holder marks it READY. ## The pins: both pairs in ONE commit (`59866105`) | pair | gitlink | pin file `commit:` | `digests.tree_sha256` | | --- | --- | --- | --- | | openDox | `663ac683` → **`d5098297`** | same (`contracts/opendox-pin.yaml`:118) | `ec826603…9d5d` → **`2815ca2353d1cd4c220b5391e1c0bc45c2cabfec9aa196cee1e0a4bcc9e857cc`** (28 records) | | openXdox | `57e2b8f2` → **`f257e021`** | same (`contracts/openxdox-pin.yaml`:109) | `e52c1383…6390` → **`52f0598edb8517dce7be3acc7637c9552020a4e2e1716be7bb8a1f352d406959`** (29 records) | - `d5098297` is openDox root `main`, three commits ahead of `663ac683`: - #14 (`52005213`, T053) cuts `dox-v1.1`. The annotated tag `851a28e9` is over `52005213`, and the spec leg moves `8fe8c4c7` → `f7ee3c76`. - #15 changes only `contracts/CHANGELOG.md`. - #16 (T062) moves `code` `2d116415` → `047bb4fa`. - **`f257e021` is opensoft/openXdox `main`, where #21 squash-landed.** It moves `code` `6158151e` → `6a3b93b9`, which is openXdox-code `main` after #34–#36 (T060, T059, T061). It also moves `contracts/opendox-pin.yaml` `663ac683` → `d5098297` (T090 step 5). - Every digest was recomputed three ways, with controls on the old values: `repo_shape.tree_digest`, an independent `ls-tree` + `sha256`, and the forge's tree listing. - **Why one commit and not "one commit each" (T090 step 6).** #21 changes the openDox pin that `verify-opendox-pin.py` check 5 reads through the openXdox gitlink. So moving the openXdox pair alone would fail check 5, and the runbook's § 3 step 8 moves the openDox pair *"in the SAME commit"*. Each pair still moves as one unit (box 9.5). **The holder decided the single commit on 2026-09-28.** This PR therefore deliberately departs from T090 step 6's "one commit each". - Both pin files are edited in place, keeping their line counts. The openDox `migration:` block keeps `range` and `reversible`, because no migration path changes over `2d116415..047bb4fa`. Its `runbook` names the new code leg `047bb4fa`, and the block is identical to openXdox's derived copy, which `tests/opendox_pin` asserts. - **Gates.** `verify-openxdox-pin.py` prints `OK openxdox-pin verified: openXdox@f257e021…, gitlink read from HEAD`, with digest `52f0598e…`. `verify-opendox-pin.py` prints `OK … openDox@d5098297…, lockstep with openXdox confirmed`. ## What else it carries | commit | what | F11.1 surface | | --- | --- | --- | | `47e47c69`, `5663b4ed` | **The host line.** `scripts/opendox_host.register_openxfactory()` calls `openxdox.projection_contributions.register()` once openDox answers this host's profile, and before `register_seams()` (`5663b4ed`, on Copilot's finding at `d6c47f4f`). A profile openDox refuses is refused before any seam is written, so openDox's unread defaults stay where they were. The contribution call is all or none on its own, and its refusal leaves the profile registered and no host seam written, as a refusal inside `register_seams()` leaves the profile. The docstring says why openxFactory makes the call itself (it registers with openDox alone), and why its order differs from `openxdox.domain_profile.register()`'s. `tests/domain_profile/test_host_registers_openxdox_projection.py`, 9 cases, covers registration, a fresh interpreter (nothing before the call, everything after), the order, idempotence, both refusal directions (one with openDox's entry-point defaults preinstalled and unread), the process's pre-held contributions, and a mutation. Three planted breaks are each caught: the line removed fails 5 cases, moved before the profile 4, and moved after the seams 2. | HOST, HOST_TESTS | | `47e47c69` | Items C2 and C3 of #1213: the host line's import puts `projection_contributions.py` in the render unit's by-name imports, so the lane's `RENDER_LEG_MODULES` and the seal test's `RENDER_UNIT_IMPORTS` gain it. The seal carries a leg's whole `src/`, so no sealed artifact changes. | ADMITTED_ARC_EDITS (both paths) | | `4859bfa5` | Item C1 of #1213: `test_ruling_q7_two_direct_upstreams_in_lockstep`'s snapshot literal moves `663ac683` → `d5098297`, as its comment says it does on every bump. | ADMITTED_ARC_EDITS | | `d6c47f4f` | **129 `created:` admissions** in `docs/opendox-carve-admissions.yaml`, pinned in `tests/carve_arrival` by path, `since` and count, as T047's 37 are. They cover every file a leg added since its last pin, under the destination's declared roots, that no row places. Each `since` is the leg's own squash landing (`git log --diff-filter=A`), and each path is present at the new pin. | ADMITTED_ARC_EDITS (both paths) | The 129 admissions: - **`openxdox_code`, 13**: #34 (T060) 1, #35 (T059) 5, #36 (T061) 7, among them `src/openxdox/projection_contributions.py` and the packaged `src/openxdox/contracts/`. - **`opendox_code`, 80**: #53 (T050) 9, #54 (T052) 3, #56 (T051) 3, #57 (T054) 2, #58 (T057) 54, #59 (T055) 5, #66 (T056) 2, #68 (T058) 1, #70 (T055 follow-up) 1. - **`opendox_spec`, 36**: openDox's spec leg moved with `dox-v1.1` (`8fe8c4c7` → `f7ee3c76`). 35 come from openDox-spec #16 (T053), and one is older: `docs/front-end-package-boundary.md` (#8), which the spec walk already refused at `8fe8c4c7` and no earlier bump admitted. With all 36, `verify-carve-arrival.py --destination opendox_spec --phase B` prints OK at `f7ee3c76`. - **Derived, not run green, for the `-code` legs**, as at T047. At both new pins `--phase B` still refuses `arrival-undeclared-edit` before it reaches the created-file walk. ## Review | Copilot at | verdict | threads | answered in | | --- | --- | --- | --- | | `d6c47f4f` | Changes recommended | Taking the contributions back after a refused profile emptied each seam, which does not restore an unread openDox default they had replaced. A boolean cannot tell a partly pre-existing set apart either. | `5663b4ed`: the call moves after the profile and before the host's seams, so a refused profile writes no seam and no rollback is needed. Copilot's case is a test, with the defaults preinstalled. No openXdox API change is needed. The thread is answered and resolved. | ## F11.1, on the real commits `PACKET_MERGE=94b6f7f1… ARC_TIP=<this branch's head>` over the guard extracted from `openspec/changes/add-neutral-product-standalone-operability/tasks.md` prints: > `requirement 1 holds: 0 note(s) annotated, every other path a declared surface (11.1)` (exit 0, over the arc's landings through `5663b4ed`: T047's `f56c87c6` and this PR's five commits) Every path this PR touches is on a declared surface: - PIN_PAIRS: `openDox`, `contracts/opendox-pin.yaml`, `openXdox`, `contracts/openxdox-pin.yaml`; - HOST: `scripts/opendox_host.py`; - HOST_TESTS: `tests/domain_profile/test_host_registers_openxdox_projection.py`; - ADMITTED_ARC_EDITS: `scripts/ideation_dashboard/dashboard_refresh_lane.py`, `tests/ideation-dashboard/test_dashboard_source_seal.py`, `tests/openxdox_pin/test_openxdox_pin_verifier.py`, `docs/opendox-carve-admissions.yaml` and `tests/carve_arrival/test_verify_carve_arrival.py`. The admitted list does not grow, and no manifest note is annotated here: T092's phase-2 notes go to T063, on decision (b). ## The falsifiers, at the COMMITTED pins T047's falsifiers, with the consumer gate's suite at its floors. Each local run is the gates' own steps: both verifiers, then the pin suites, then `tests/ideation-dashboard`, then `pytest tests/ -q -m "not postgres"`. They run with Python 3.12.3, the hash-pinned lock, node 24, the pinned OpenSpec CLI 1.12.0, and `PINNED_CORE_CHECKOUT` at codexFactory `b21f0100`. Each runs in a checkout named `openxFactory`, with every gitlink at the committed pins and recursively initialized: openDox/code `047bb4fa`, openDox/spec `f7ee3c76`, openXdox/code `6a3b93b9`, openXdox/spec `f088b097`. | run | head | verifiers | pin suites (floor 105/105/0) | `tests/ideation-dashboard` (floor 1137/1137/0) | `pytest-suite` | | --- | --- | --- | --- | --- | --- | | **CI** | `5663b4ed` | OK, OK, lockstep confirmed (run `37065541361`) | **105/105/0** | **1481/1481/0** | **8927 passed, 6 skipped, 0 failed**: `selected=9345 passed=9339 skipped=6 failures=0 errors=0`, margin 2295, `skipped==6` (run `37065541376`). All 12 checks pass. | | F1 | `5663b4ed` | OK, OK | 105/105/0 | 1481/1481/0 | 8928 passed, 5 skipped, 0 failed | | R1 (rehearsal) | the same edits before `5663b4ed`, over the candidate root `bfd0c5a2` | OK, OK | 105/105/0 | 1481/1481/0 | 8926 passed, 5 skipped, 0 failed | - **#1213's red list is empty at the committed pins.** All three of its T064-owned items (C1-C3) pass, and so do the 187 that the host line answers. - The consumer suite has 1481 cases, one more than #1213's 1480, because the seal's by-name-module refusal is parametrized over `RENDER_UNIT_IMPORTS`, which gained `projection_contributions.py`. The whole suite has 8933 tests (local XML) against #1213's 8923: the host-line file adds nine and the seal adds that one. - `validate-carve-manifest.py` prints OK (456 rows), and `validate-former-id-arrival.py --base origin/main --head HEAD` passes. - A local run skips 5 where CI skips 6, for the reason #1213 states: the work tree sits inside an aggregation checkout, so the aggregation ignore-file case runs and passes there. - In the openXdox root, `make pins` and `make validate` exit 0 at #21's head. ## What this leaves for the aggregation This PR does not do the opensoft/xFactory root pin-sync. When it runs, it needs: - the root `openDox` gitlink → `d5098297a5c262f9977193305210bccb4ec51e89`; - the root `openXdox` gitlink → `f257e021399288f430cc89cc0f23cc2cd62be9a7`; - the root `openxFactory` gitlink → this PR's landed sha, with `.github/clearing/openxfactory/PIN.yaml` in the same commit (CLAUDE.md rule 2). Arc: neutral-product-standalone-operability 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Summary
doc-health+lifecycle-notebook-projectionownership — the contract owner adopts its implementations; pre-promotion amendment to the active routing change's ownership requirement (D5). Rationale: layering inversions, the private-sibling credential tax, unclaimed mass, and the open-sourcing/Sonar split.385dfaf): 123 files / ~31k LOC —scripts/doc_health/,doc-health.py,sync-notebooklm-books.py, both test suites,doc-health-reusable.yml, pytest infrastructure. Neutral citations made truthful (schema ×2, validator ×5, cross-reference producer, workspacesmanaged_by×3, two docs).82ae3d8): 168 files / ~98k LOC — the full dashboard package (web/ included), three nightlies, session runbook, the 2,522-test suite.kickoff.py/serve.py/web byte-identical to the pin; exactly 14 deliberate diffs, all ledgered.readiness.pyis CloudPC CI-host code → tranche D/aggregation as ratified;readiness_dispatch.pyturned out to be the ideation-readiness lane dispatch (docstring + import evidence quoted) → adopted home with its tests.Provenance for all adopted trees: codexFactory main@
e4caa03bf48655b54bc96fc5450d9ad5bddf4886, plain copy per D1 (no private history grafted into a repo slated for open-sourcing).Validation (all re-run independently on the branch tip)
tests/doc-health+tests/notebooklm: 610 passed, 0 skippedtests/ideation-dashboard(moved): 2,522 passed, 23 environment-conditional skipstests/ideation_dashboard45, catalog+routing+avatar validators 146, avatar_runtime 97, hermes CLI 21openxFactory-snapshot.json; serve smoke HTTP 200OPENSPEC_TELEMETRY=0 openspec validate --all --strict: 54/54After this PR (same change, other repos)
Tranche C: codexFactory sheds the moved trees (own PR; playwright-smoke
smoke_signalsimport flagged). Tranche D: aggregation repoints the nightlyuses:+ CLAUDE.md command, adoptsreadiness.py. Open ruling for Brett: doxbench publisher-side stack-pin (serve's two doxbench routes fail closed from a publisher checkout — tombstoned test, needs disposition).🤖 Generated with Claude Code