Skip to content

Migrate brainstorms into three-tier packets - #322

Merged
brettheap merged 8 commits into
mainfrom
codex/brainstorm-packet-migration
Aug 25, 2026
Merged

brettheap merged 8 commits into
mainfrom
codex/brainstorm-packet-migration

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Summary

  • Migrate brainstorm documentation into atomic, synthesis, and overview packet tiers.
  • Refresh ideation navigation and repair packet lifecycle links.
  • Regenerate the cross-reference/readiness index and preserve the existing possibles register.

This is documentation and ideation-governance work only; it does not change runtime, Hermes, API, or customer behavior.

Validation

  • python3 scripts/validate-ideation-cross-reference.py ideation/cross-reference.yaml --strict
  • pytest -q tests/doc-health — 771 passed
  • pytest -q tests/ideation-dashboard — 4142 passed, 13 skipped
  • git diff --check

The branch was updated with the latest origin/main before opening this PR.

brettheap added 8 commits July 28, 2026 21:47
… session resync refuses before mutating

F3 of the 2026-08-24 hosting migration evidence: live_session_targets asked
only each repository's canonical checkout, while the sweep path deliberately
enumerates every worktree - so --session-ref refused the two LIVE draft/*
sessions that --session-sweep saw, stranding their session notebooks on the
account being abandoned (migration step 5 held). Every worktree git lists is
now asked as a potential container owner through the same joint signal; an
unreadable worktree list degrades to the canonical root alone, safe there
because this mode has no retire arm and only ever refuses when it finds
nothing. The multi-match refusal names the paths and separates a
cross-repository collision (resolvable with --session-repository) from two
containers of one repository, which no alias can disambiguate.

The same landing closes the session route's exposure to the 2026-08-10 death
mode: sync_session_notebook was deliberately unbounded (workbench finding 21),
so nothing stopped a session whose derived corpus outgrew the provider's
per-notebook source cap - adds would have failed past the cap mid-flight. It
now carries the lifecycle books' capacity guard: an over-cap plan refuses
BEFORE any mutation and names the excess and the remedy. This is the
source-COUNT cap on the session route; F4's single-document size limit stays
open.

Step 5's retry is unblocked by this fix, not performed: both sessions remain
hosted on the personal account until a real --session-ref --apply run
migrates them.

Two new tests, one per behavior; tests/notebooklm suite 94 passed. The
evidence doc records both fixes beside their findings.
# Conflicts:
#	ideation/README.md
#	ideation/brainstorm/tenant-project-catalog-and-workstation-cache.md
#	ideation/cross-reference.yaml
Copilot AI lite review requested due to automatic review settings August 25, 2026 03:10

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates brainstorm documentation into atomic, synthesis, and overview packet tiers while refreshing ideation navigation, readiness artifacts, and NotebookLM synchronization tooling.

Changes:

  • Adds and reorganizes three-tier brainstorm packet documentation.
  • Updates lifecycle links and migration evidence.
  • Expands NotebookLM session discovery and source-capacity safeguards.

Reviewed changes

Copilot reviewed 101 out of 103 changed files in this pull request and generated 5 comments.

Show a summary per file
File Review notes
tests/notebooklm/test_sync_notebooklm_books.py No final comment.
scripts/sync-notebooklm-books.py Critical (1 vote): incomplete enumeration can select the wrong repository for unscoped lookup. Critical (1 vote): import binding remains canonical-checkout-only. Moderate (4 votes): capacity checks omit preserved unmanaged sources.
ideation/README.md No final comment.
ideation/brainstorm/worker-execution-synthesis-governed-lane.md No final comment.
ideation/brainstorm/worker-execution-overview.md No final comment.
ideation/brainstorm/worker-execution-host-contract.md No final comment.
ideation/brainstorm/worker-execution-governed-job-lifecycle.md No final comment.
ideation/brainstorm/topic-compilation-tree.md No final comment.
ideation/brainstorm/tech-stack-benches.md No final comment.
ideation/brainstorm/subject-recall-and-consent-path.md No final comment.
ideation/brainstorm/release-lifecycle-synthesis-governed-promotion.md No final comment.
ideation/brainstorm/release-lifecycle-overview.md No final comment.
ideation/brainstorm/release-lifecycle-immutable-source-provenance.md No final comment.
ideation/brainstorm/release-lifecycle-contract-identity-gate.md No final comment.
ideation/brainstorm/project-type-template-library-draft.md No final comment.
ideation/brainstorm/project-synthesis-provisioning-and-authority.md No final comment.
ideation/brainstorm/project-overview.md No final comment.
ideation/brainstorm/project-layer-scaffold.md No final comment.
ideation/brainstorm/practice-clearance-and-project-realization.md No final comment.
ideation/brainstorm/practice-adoption-synthesis-governed-loop.md No final comment.
ideation/brainstorm/practice-adoption-suggestion-envelope.md No final comment.
ideation/brainstorm/practice-adoption-overview.md No final comment.
ideation/brainstorm/practice-adoption-clearance-ledger.md No final comment.
ideation/brainstorm/ontology-synthesis-semantic-execution.md No final comment.
ideation/brainstorm/ontology-synthesis-lifecycle-and-agents.md No final comment.
ideation/brainstorm/ontology-overview.md No final comment.
ideation/brainstorm/omnigent-micro-agent-task-contract.md No final comment.
ideation/brainstorm/omnigent-micro-agent-synthesis-governed-execution.md No final comment.
ideation/brainstorm/omnigent-micro-agent-routing-and-composition.md No final comment.
ideation/brainstorm/omnigent-micro-agent-overview.md No final comment.
ideation/brainstorm/omnigent-micro-agent-foundations.md No final comment.
ideation/brainstorm/omnigent-micro-agent-evaluation-and-economics.md No final comment.
ideation/brainstorm/omnigent-lane-activation-path.md No final comment.
ideation/brainstorm/nightly-sweep-council-clearance-rule.md No final comment.
ideation/brainstorm/memory-retrieval-synthesis-governed-recall.md No final comment.
ideation/brainstorm/memory-retrieval-overview.md No final comment.
ideation/brainstorm/memory-retrieval-evidence-context-boundary.md No final comment.
ideation/brainstorm/memory-retrieval-consent-enforcement.md No final comment.
ideation/brainstorm/medxfactory-domain-roster-draft.md No final comment.
ideation/brainstorm/medical-omnigent-harness-adaptation.md No final comment.
ideation/brainstorm/medical-domain-synthesis-clinical-execution.md No final comment.
ideation/brainstorm/medical-domain-specialized-worker-envelope.md No final comment.
ideation/brainstorm/medical-domain-overview.md No final comment.
ideation/brainstorm/medical-domain-clinical-authority-boundary.md No final comment.
ideation/brainstorm/lens-ring-combination-explorer.md No final comment.
ideation/brainstorm/lens-keyword-search-and-adhoc.md No final comment.
ideation/brainstorm/lens-brainstorm-session-launch.md No final comment.
ideation/brainstorm/keycloak-identity-brokering.md No final comment.
ideation/brainstorm/immovable-leaf-ideation-lifecycle.md No final comment.
ideation/brainstorm/identity-custody-synthesis-trust-plane.md No final comment.
ideation/brainstorm/identity-custody-secret-and-record-boundaries.md No final comment.
ideation/brainstorm/identity-custody-principal-and-agent-binding.md No final comment.
ideation/brainstorm/identity-custody-overview.md No final comment.
ideation/brainstorm/hermes-synthesis-layer-content-and-authority.md No final comment.
ideation/brainstorm/hermes-synthesis-knowledge-and-retrieval.md No final comment.
ideation/brainstorm/hermes-synthesis-governed-practice-loop.md No final comment.
ideation/brainstorm/hermes-retrieval-primitives-contract.md No final comment.
ideation/brainstorm/hermes-persona-character-model.md No final comment.
ideation/brainstorm/hermes-overview.md No final comment.
ideation/brainstorm/hermes-legal-compliance-model.md No final comment.
ideation/brainstorm/hermes-layer-seeding-mechanism.md No final comment.
ideation/brainstorm/hermes-layer-content-seeding.md No final comment.
ideation/brainstorm/hermes-knowledge-base-architecture.md No final comment.
ideation/brainstorm/hermes-governed-nightly-sweep.md No final comment.
ideation/brainstorm/git-native-record-vault.md No final comment.
ideation/brainstorm/domain-practice-suggestion-generation.md No final comment.
ideation/brainstorm/domain-ontology-synthesis-governed-lifecycle.md No final comment.
ideation/brainstorm/domain-ontology-overview.md No final comment.
ideation/brainstorm/domain-ontology-maintenance-and-drift.md No final comment.
ideation/brainstorm/domain-ontology-generation-pipeline.md No final comment.
ideation/brainstorm/dashboard-workbench-synthesis-collaborative-document-turns.md No final comment.
ideation/brainstorm/dashboard-workbench-overview.md Nit (3 votes): archived dashboard/workbench links make the “active” wording stale.
ideation/brainstorm/dashboard-workbench-integrated-editor-canvas.md No final comment.
ideation/brainstorm/dashboard-workbench-chat-feedback-loop.md No final comment.
ideation/brainstorm/cost-accountability-and-efficiency-model.md No final comment.
ideation/brainstorm/contract-release-and-stack-surface.md No final comment.
ideation/brainstorm/codexfactory-domain-synthesis-policy-and-memory.md No final comment.
ideation/brainstorm/codexfactory-domain-synthesis-authority-and-deliberation.md No final comment.
ideation/brainstorm/codexfactory-domain-roster-draft.md No final comment.
ideation/brainstorm/codexfactory-domain-policy-model.md No final comment.
ideation/brainstorm/codexfactory-domain-overview.md No final comment.
ideation/brainstorm/codexfactory-domain-memory-and-practices.md No final comment.
ideation/brainstorm/codexfactory-domain-hermes-content.md No final comment.
ideation/brainstorm/codexfactory-domain-deliberation.md No final comment.
ideation/brainstorm/client-synthesis-ingestion-and-assurance.md No final comment.
ideation/brainstorm/client-synthesis-authority-and-policy.md No final comment.
ideation/brainstorm/client-risk-and-assurance-model.md No final comment.
ideation/brainstorm/client-policy-wizard.md No final comment.
ideation/brainstorm/client-overview.md No final comment.
ideation/brainstorm/client-layer-scaffold.md No final comment.
ideation/brainstorm/client-layer-roster-draft.md No final comment.
ideation/brainstorm/client-layer-content-draft.md No final comment.
ideation/brainstorm/client-ingestion-adapter-contract.md No final comment.
ideation/brainstorm/avatar-live-voice-synthesis-brokered-path.md No final comment.
ideation/brainstorm/avatar-live-voice-overview.md Nit (3 votes): archived proposals are described as active.
ideation/brainstorm/avatar-live-voice-feasibility-evidence.md No final comment.
ideation/brainstorm/avatar-live-voice-client-experience-boundary.md No final comment.
ideation/brainstorm/agent-certification-wallets.md No final comment.
health/ideation-readiness/2026-08-24/brainstorm-packet-migration-final-20260824.yaml No final comment.
health/ideation-readiness/2026-08-24/brainstorm-packet-migration-20260824.yaml No final comment.
docs/notebook-projection-migration-evidence-2026-08-24.md No final comment.
Suppressed comments (3)

health/ideation-readiness/2026-08-24/brainstorm-packet-migration-20260824.yaml:11

  • This earlier ideation_readiness_run record has the same missing run trace: both envelopes and scored_clusters are empty despite the migration's readiness output being represented as a per-cluster run. Empty arrays cannot identify the attempted clusters or preserve their failure evidence; either persist the run's envelope metadata or label this as a non-run/bootstrap record with a distinct artifact shape.
envelopes: []
scored_clusters: []

health/ideation-readiness/2026-08-24/brainstorm-packet-migration-final-20260824.yaml:11

  • This committed ideation_readiness_run record has no envelope references or scored-cluster entries, while the corresponding generated index contains 290 per-cluster worker failed results. The readiness scorer's evidence record is supposed to retain an envelope for each attempted cluster, including failed scoring, so this artifact cannot audit which run produced the unscored index. Persist the actual run metadata (or record this as an explicitly separate bootstrap/worker-unavailable event) and regenerate the index/evidence together.
envelopes: []
scored_clusters: []

ideation/README.md:652

  • The README now points this proposal at its archived path, but the retained packet still links to the deleted non-archive path at ideation/brainstorm/ideation-cross-reference-readiness.md:16. Please update that lifecycle link too; otherwise the packet's own provenance link is a 404.
- [add-ideation-cross-reference-readiness](../openspec/changes/archive/2026-08-04-add-ideation-cross-reference-readiness/proposal.md)
  — realized and archived 2026-08-04; owns the former
  `ideation-cross-reference-readiness` staged packet under

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +63 to +65
This packet is companion exploration for the active feasibility and client
lab proposals and the staged live-voice and hardening subjects. It does not
rewrite their requirements or tasks.
Comment on lines +71 to +72
This packet extends rather than silently amends the active dashboard and
workbench changes. Relevant context includes
# the cap mid-flight, the shared Ideation book's 2026-08-10 death. The
# books' guard therefore applies here too: refuse before ANY mutation,
# name the excess and the remedy.
if len(paths) > NOTEBOOK_SOURCE_CAP:
Comment on lines 1199 to +1200
except Exception: # noqa: BLE001 - a tree with no git has no sessions
worktree = None
if worktree is not None:
found.append(SessionTarget(repository=name, branch=branch,
worktree=worktree,
alias=bs.notebook_alias(name, branch),
checkout=checkout))
pass
Comment on lines +1195 to 1199
for record in sg.SessionGit(checkout).worktree_records():
candidate = Path(record.path)
if candidate not in roots:
roots.append(candidate)
except Exception: # noqa: BLE001 - a tree with no git has no sessions
@brettheap
brettheap merged commit 4e57009 into main Aug 25, 2026
3 checks passed
brettheap pushed a commit that referenced this pull request Aug 25, 2026
…ift-check

One upstream commit (#322, the brainstorm three-tier migration): 95 files under
ideation/brainstorm plus a handful of readiness and test artifacts. ZERO overlap
with this branch, and zero overlap with the contract-v1.41 inventory's member
set -- both verified by set intersection rather than inferred from a clean
merge, because the question that matters here is not "does git conflict" but
"could the release surface have moved".
brettheap pushed a commit that referenced this pull request Aug 25, 2026
…igation is canon

The five realization merges are all on main and each was re-verified an
ancestor of it at this gate - PRs #310 73766b4, #315 1274b9b, #316 51a875a,
#320 055a514, #325 44505d1 - so the merge-plus-green rule the packet declared
is satisfied and the archive act is this separate later commit, following
govern-openspec-corpus-membership.

The gate halted twice before it ran. The first halt found this packet's own
doc-health delta restating one scenario of an eight-scenario MODIFIED
requirement, which would have destroyed the other seven on promotion. While
that was being repaired, main archived add-release-inventory-drift-check
(b03b999) - the same defect, found independently the same day and ruled on by
Brett, whose account now stands in canon as the CORRECTED 2026-08-25 paragraph.
That sibling's delta had been written on top of this change's text, so canon
moved: nineteen families, not eighteen, with this change's own amendments
already inside it. The branch was reset to the new origin/main and every
artefact re-derived against it rather than merged. The faithful MODIFIED block
is therefore current canon verbatim - SHA-256
57cfc188905dc9926ebb9a9570db98d5bd419184409a91b83e56045fba27bf0b, all eight
scenarios identical scenario-by-scenario and in canon's order. Archived as
drafted it would have destroyed the seven scenarios and regressed the
enumeration to eighteen, dropping release-inventory drift, its paragraph, its
AND bullet, and Brett's CORRECTED paragraph.

The act is verified by requirement map rather than by the CLI's summary:
doc-health 26 -> 28 requirements and 105 -> 116 scenarios; document-lifecycle
14 -> 15 and 63 -> 68. Nothing removed from either, all 26 and all 14
pre-existing requirements byte-for-byte identical across the act, both promoted
files pure additions with zero deletions.

Closing symmetry: the enforcing family over openxFactory at --fail-on error
reads 0 findings, exit 0, both before and after - the family that reports an
unarrived delta says nothing about the delta this act just landed - and the
packet's header still parses at its new archived path, Status: ratified with
the record-citing Ratified: line clearing approver and date inside the 15-line
window. Post-archive gates: openspec validate --all --strict 76 passed 0 failed
(one fewer active), pytest tests/doc-health 874 passed 1 failed (the enumerated
environment artifact, unmoved), pytest -k workbench 140 passed. The full
single-repo report's findings are byte-identical to the baseline and exactly
two per-stage numbers moved, both predicted: standard 10851 -> 11102 for
docs/doc-health.md's own new words, and promoted specs 121304 -> 123563 for the
census taking in what this act promoted.

Task 5.2 ticks with its three arrivals; task 5.5 records that promotion
fidelity is structurally blind to this damage class, because latest-writer-wins
makes a destroying delta look faithful the instant it lands - a named candidate
for a pre-archive restatement-completeness check, not built here.

Also named, not fixed, and owed to the codex-archive lane rather than to this
one: ideation/cross-reference.yaml pins source_revision f13a3b6, PR #322's
branch tip, which is not an ancestor of main. The merged commit is 4e57009.

Co-Authored-By: Claude Fable 5 <[email protected]>
@brettheap
brettheap deleted the codex/brainstorm-packet-migration branch August 25, 2026 12:52
brettheap added a commit that referenced this pull request Sep 8, 2026
…ther by files that left

`ideation/cross-reference.yaml` is the source of truth and declares itself
GENERATED; `ideation/cross-reference.md` is its deterministic projection. The
split's 127-ish member entries across the departed files are now gone from
`topic_entries`, which after this commit references NO deleted path — verified
by resolving every member path against the tree: 0 missing of all members in
295 clusters.

REGENERATED WITH THE READINESS LANE, NOT THE BOOTSTRAP. The header names the
readiness scorer (`generator_version: ideation-xref-scorer-0.1.0`) as the
producer, and `scripts/bootstrap-ideation-cross-reference.py` — the one-time
2026-07-14 seed — would have DOWNGRADED the file: its documented posture is
`possibles_register: ABSENT`, so it would have destroyed 32 register entries
carrying Brett's own dispositions and their evidence hashes. The lane's merge
phase carries the register through unchanged by design
(`scripts/doc_health/readiness_dispatch.py`: "a readiness re-score that dropped
it would silently destroy merged possibles and their disposition audit
trails"). Run as
`scripts/ideation-readiness-nightly.py --phase merge --as-of 2026-09-08
--run-id ideation-split-domain-file-removal-20260908`, with no worker results
collected, which is how the landed file's own tiers were already unscored; the
immutable per-run evidence record rides in
`health/ideation-readiness/2026-09-08/`, on the precedent of
`brainstorm-packet-migration-final-20260824` (#322).

WHICH LINES ARE THE SPLIT AND WHICH ARE ABSORBED STALENESS. The landed index
was generated at `4e57009c` (2026-08-24) and the corpus has grown since, so a
regeneration on `origin/main` ALONE — measured, in a throwaway worktree —
already moves 1,747 insertions / 226 deletions and 290 clusters to 325. Of the
total diff here, that pre-existing drift is the larger part; the split's own
delta, measured as base-regeneration against this tree, is 30 clusters removed
and 1,212 changed lines. 28 of those 30 were present in the landed index. They
are clusters the multi-doc gate no longer forms because a departed file was one
of only two members — `cl-agent-mixes`, `cl-agent-roster`, `cl-clinical-roster`,
`cl-codexfactory-domain`, `cl-domain-memory`, `cl-domain-policy`,
`cl-escalation-rules`, `cl-gate-rules-council`, `cl-ledgerx`,
`cl-medical-domain`, `cl-memory-boundaries`, `cl-merge-readiness-council`,
`cl-trait-framework` and the rest. A cross-reference index surfaces RECURRENCE
across documents; one document is not a cross-reference, so the gate dropping
them is the rule working, not information lost. The recurrence they recorded now
recurs inside the destination repositories, whose own indexes will form it.
Net against the landed file: 290 clusters to 295.

Eight `possibles_register` documents still name a departed file, and they STAY.
Each is a human-dispositioned record of what the 2026-07-23 derive-possibles run
`DPOSS-71aecbb1422d` actually read — Brett's `outcome: accepted` with a
`passage_sha256` beside it. Rewriting `provenance.document` would falsify the
record of a run, which is the same trap this capability's own requirement "An
orphaned pin on an immutable record is repaired by retention, never by editing
the record" refuses for pins: "rewriting the pin would replace one defect with
another and would additionally falsify the record, which exists to say what a
run actually read." Nothing is orphaned either way — the bytes are reachable in
this repository's history and at the destinations — and the schema's `document`
is a free string with no cross-repo form to move them to. `ideation/README.md`
says all of this where a reader will find it.

FOUND EN ROUTE, NOT FIXED HERE: `persist()`'s internal `_render_markdown` in
`scripts/doc_health/ideation_readiness.py` stamps the projection
`Status: record`, while `scripts/render-ideation-cross-reference.py` stamps
`Status: projection` — which is what the landed file carries and what
`docs/document-lifecycle.md` requires ("A deterministic projection that a named
generator rewrites in place from a declared source of truth carries
`projection`, not `record`"). The `.md` here was re-rendered with the standalone
renderer so it lands correct. The generator disagreement is a code defect in
scripts/ and wants its own change.

Validators unchanged from their pre-split output, byte for byte:
validate-ideation-cross-reference (rc=1, the same 3 pre-existing errors, all in
`tests/ideation-dashboard/fixtures/base-repo/`, none in the real index),
validate-ideation-dashboard-contracts (0/0),
validate-ideation-routing (0/0), validate-document-catalog (0/0).

Lane: provenance-autonomous-merge
brettheap added a commit that referenced this pull request Sep 27, 2026
…n the nightly (#1161) (#1166)

Brings the nightly dashboard refresh back to working end to end after the split-opendox shed, on the openxFactory side, on Brett Heap's word of 2026-09-27, verbatim "land #1166, #526 and #322 when green" (issue #1161, taken over by lane openXfactory-5 from lane openxfactory-4's released draft). The refresh renders through the pinned openDox/openXdox products, not the shed path. The seal and its intake now: require a full validator_revision and a product tree to hold it to; remove a real directory planted at the seal result path, with the path confined to the checkout; require the probe and precheck verdicts to pair with their exit codes as integers (mirrored from the aggregation side); hold corpus-side validator sources to the bytes source_head holds; require by name every product module the render unit imports; hold the result directory open from before sealed code runs; write the recipe create-exclusive without following links; and fail closed with exit 3 when a seal phase cannot write its own result, so the workflow never reads a planted result. 36 of 36 mutants killed; 26 review threads resolved. Refs #1161, #1164. Omnigent-Install#322 (the recipe) landed at 6b7da477 before this; the aggregation child opensoft/xFactory#526 re-points at this landed sha and lands after it; the seal 2.2.0 pair (#1179, xFactory#535) follows.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants