Repository navigation
Stage the openDox/openXdox two-layer product: the brainstorm packet, the three domain mappings, and the topic Brett's 2026-09-04 rulings commission - #659
Conversation
… the topic Brett's 2026-09-04 ruling commissions Brett ruled on 2026-09-04 (governing record: openxFactory issue #656) that the document-and-ideation workbench becomes TWO open-source repositories — `opensoft/openDox`, a hosted installable app with its own database whose objects are users, projects, documents and ideas, keeping the git and NotebookLM integrations and the document-management and ideation tooling, and `opensoft/openXdox`, openDox tuned for openxFactory — with domain descendants (`MedxDox`, `codexDox`) pinning openXdox in the ratified `<Domainx><Product>` form and a DomainxFactory install standing one up in the tenant with its own database. Ideation only: no contract, code, spec or naming-record edit. The ratified `docs/openxdox-naming.md` owes an Amendment 3 (the measured `opendox` collision facts plus Brett's acceptance) and that amendment is carried by the future OpenSpec change, not by this slice. Five brainstorm documents under `ideation/brainstorm/` (Status: brainstorm, contradiction legal): the overview (the ruling, the four layers, the two departures from the wallet precedent), the core product (the four objects, and that only the USER is genuinely absent — the promoted spec says twice that the dashboard authorizes nothing on the hosted actor), the boundary (a measured first cut of 48 modules / 40 web files / 125 test files, and the corpus-adapter seam), persistence and truth (four candidate authority boundaries against the D5 precedent), and a synthesis on install and tenancy (the Hermes FastAPI+Postgres precedent, three deployment shapes for "its own db", and what `domain-descendant-boundary` has to grow for a product with a schema). One staged topic, `opendox-two-layer-product`, conforming to the outline template: ten settled claims, 13 open questions with Context / Recommended answer / Explanation / Disposition status, six recorded conflicts, an exit path on the `split-openxwallet-repo` shape adapted for a two-repository non-byte-identical extraction, and the folds — `openxdox-install-app-provisioning` (its two-App security invariant and manifest-flow finding survive; its Q1 contract home moves inside the two-layer change) and codexFactory #89 (its obligations list becomes the change's checklist; its one-level re-parenting scope becomes a consequence of the split). Measured 2026-09-04 at openxFactory origin/main: 49,605 LOC Python / 30,410 LOC web / 3,927 test functions (52% of the repo's total) / a 289 KB 102-requirement spec; the coupling is asymmetric — 12 of 48 modules carry 23 `doc_health` imports while the back-edge is exactly two lazy imports of one class in one 377-line module, so the cycle is cheap to break from the right side. Doc-health: 6 critical / 4 error / 27 warning / 14 info on both the tip and an origin/main baseline worktree — the new documents add ZERO findings at any severity. Refs #656 Lane: openxfactory-opendox Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X7e6BQZysoULChFmDmgG1Z
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.
🟢 Approval recommended
The changes are ideation-document additions/updates with only minor documentation nits (verbatim-quote typo marking) and no contract/spec/code impact.
Pull request overview
This PR stages and indexes an ideation-only “two-layer” product direction for openDox/openXdox based on the 2026-09-04 ruling recorded in issue #656, capturing settled claims, measured inventory, sequencing constraints, and the full set of open questions without making any contract/spec/code/naming-record edits.
Changes:
- Adds a new staged topic (
Status: staged) foropendox-two-layer-product, including claims, evidence/inventory, folds, sequencing constraints, and 13 open questions in the outline-template shape. - Adds a five-document brainstorm packet (
Status: brainstorm) that explores the split, boundary, persistence authority options, and install/tenancy implications. - Updates the ideation staging index and ideation README to reference and anchor the new staged topic + brainstorm entry point.
File summaries
| File | Description |
|---|---|
| ideation/staging/opendox-two-layer-product/opendox-two-layer-product.md | New staged topic capturing settled claims + measured inventory + open questions for the openDox/openXdox two-layer split. |
| ideation/staging/INDEX.md | Registers the new staged topic row and adds the corresponding detail section entry. |
| ideation/README.md | Adds a “Brainstorm (active)” entry pointing at the packet overview and the staged topic. |
| ideation/brainstorm/opendox-two-layer-overview.md | Brainstorm entry point summarizing the ruling, the four-layer model, and links to the packet’s supporting docs. |
| ideation/brainstorm/opendox-core-product.md | Brainstorm doc focusing on openDox’s neutral core object model (users/projects/documents/ideas) and implications. |
| ideation/brainstorm/opendox-openxdox-boundary.md | Brainstorm doc measuring a first-cut module boundary and naming the corpus-adapter seam + cycle-break. |
| ideation/brainstorm/opendox-persistence-and-truth.md | Brainstorm doc exploring db-vs-git authority boundaries and governance implications. |
| ideation/brainstorm/opendox-synthesis-install-and-tenancy.md | Brainstorm synthesis on install/runtime precedent (Hermes) and per-tenant tenancy consequences. |
Review details
Suppressed comments (3)
ideation/staging/opendox-two-layer-product/opendox-two-layer-product.md:103
- In Claim 5, the quoted ruling sentence includes transcript typos ("MedxFacotry", "tenand") but the text isn’t block-quoted as a verbatim excerpt, so the misspellings are easy to misread as this document’s own spelling. Adding
[sic]keeps the quote faithful while avoiding accidental propagation of the errors.
5. **A DomainxFactory install brings up its descendant, in the tenant, with its
own database.** "If I install MedxFacotry, then I get a medXdox install
running in the installed tenand with its own db." The install composition is
real and the database is per tenant.
ideation/staging/opendox-two-layer-product/opendox-two-layer-product.md:631
- Q3’s Context quotes the transcript but doesn’t label it as such; it also repeats transcript typos ("MedxFacotry", "tenand") without
[sic]. Consider explicitly labeling it as a transcript quote and marking the typos, so later readers don’t treat them as canonical spellings.
Context: "If I install MedxFacotry, then I get a medXdox install running in the
installed tenand with its own db" reads as per-tenant, and every sovereignty
ideation/brainstorm/opendox-synthesis-install-and-tenancy.md:45
- The verbatim quoted ruling includes transcript typos ("MedxFacotry", "tenand") without any
[sic]marker. Adding[sic]preserves fidelity while signaling these are original errors.
> "If I install MedxFacotry, then I get a medXdox install running in the
> installed tenand with its own db."
- Files reviewed: 8/8 changed files
- Comments generated: 4
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| Summary: Synthesis across the packet: the per-tenant descendant install Brett | ||
| described ("If I install MedxFacotry, then I get a medXdox install running in | ||
| the installed tenand with its own db") is the requirement that forces every | ||
| other choice — it makes the app-with-a-database non-optional, it makes the |
| openXfactory"; and the descendant sentence from earlier in the same sitting is | ||
| "If I install MedxFacotry, then I get a medXdox install running in the installed | ||
| tenand with its own db." |
| ("We then further pin that down to medxDox and CodeXdox for use in those domain | ||
| factories. If I install MedxFacotry, then I get a medXdox install running in the | ||
| installed tenand with its own db"). The inventory the claims rest on was |
…ain mappings, the pull-ups, and a three-column assignment Brett ruled four of the topic's open questions and gave direction on the fifth within the hour of the founding ruling, all recorded on openxFactory issue #656. They are now SETTLED CLAIMS (11-15) in the staging fragment and are worked through the brainstorm packet: - Q1 (15:24Z) — the database owns IDENTITY AND COORDINATION (users, memberships, projects, the project-to-repository mapping, sessions, unsaved drafts); git owns GOVERNED ARTIFACTS, read from repositories and written back ONLY through the apply lane. Every existing gate stays valid and the database is disposable relative to the corpus. Rejected: documents in the database with git as an export, and the ideas-until-promoted hybrid. - Q2 (15:31Z) — reuse the Hermes install pattern: FastAPI + Postgres deployed as xFactory-Hermes-Install is on AKS, OIDC through the Keycloak broker, growing into the OpsxFactory `dox` workload set. - Q3 (15:32Z) — one instance and one database per tenant, ALWAYS, in both the operator-hosted (Case A) and tenant-hosted (Case B) cases; no cross-tenant data ever shares a store. So the descendant IS the deployment unit. - Q4 (15:34Z) — openDox DEFINES the corpus-adapter interface, openXdox IMPLEMENTS it, the two `doc_health` back-imports move into a small neutral module both sides depend on, and the dependency points ONE way. - Q5 (15:48Z) — a DIRECTION, not a module ruling: a THREE-layer test. openDox must be useful ALONE to a student or a lab assistant; openXdox holds the machinery COMMON to how MedxFactory, LedgerxFactory and AdxFactory each map onto the workbench; descendants hold the domain-specific mapping. The per-module assignment is design work this topic carries. New brainstorm document `opendox-domain-mappings.md` works the three mappings explicitly against ratified domain facts (Medx: Patient/Care Organization Hermes, Dream Object / Simulation Scenario at `governed` with ratified templates; Ledgerx: Engagement/Firm Hermes, Counterparty Health Profile / Financial Scenario; Adx: Advertiser/Marketing Organization Hermes, Persona / Campaign Simulation at `calibrated`) and extracts SEVEN machineries common to them — the corpus-adapter implementation, the lifecycle engine, the gate-and-commission loop, the evidence-and-provenance surface, the model/scenario workbench, the role-and-authority projection, and the review lane. It also records the uncomfortable finding, held as a hypothesis: no model/scenario UI exists anywhere in the 80K lines, and under the strict reading of the test most of today's reader is `codexDox` rather than the common core. The boundary document becomes a THREE-COLUMN assignment (openDox ~24.9K / openXdox ~10.9K plus a large unbuilt remainder / descendant ~5.0K / 10.9K residue split by function) with the pull-up candidates named and ranked for a lab assistant: the bounded-knowledge and compression stack, abstracts, the lens set-builder, the NotebookLM connection, and the editor-and-chat surface. NOT pulled up: Adx's calibration loop and the gate console. Remaining open for Brett: Q6 sequencing against the five active `ideation-dashboard` changes, and Q7 repository ownership, license and the measured `opendox` collisions. Four secondary questions (Q8-Q11) carry recommendations and travel into the change; Q11 — whether the lifecycle vocabulary is parameterized — is the one whose answer most changes what gets built. Doc-health: 6 critical / 4 error / 27 warning / 14 info on both the tip and the origin/main baseline; the 109-row finding sets diff to zero in both directions. Refs #656 Lane: openxfactory-opendox Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X7e6BQZysoULChFmDmgG1Z
There was a problem hiding this comment.
🟡 Changes recommended
ideation/staging/INDEX.md currently lists brainstorm packet files using non-existent shorthand names instead of the actual paths, which makes the index misleading to readers.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Lite
| - Files: 1 (`opendox-two-layer-product.md`). Brainstorm packet (six docs): | ||
| `ideation/brainstorm/opendox-two-layer-overview.md` (entry point), | ||
| `-core-product.md`, `-domain-mappings.md` (the three mappings and the common | ||
| core), `-openxdox-boundary.md` (the three-column assignment and the pull-ups), | ||
| `-persistence-and-truth.md`, `opendox-synthesis-install-and-tenancy.md`. |
…and real paths in the INDEX packet list Copilot review on PR #659 raised two findings and both are real. 1. The verbatim ruling quotes carried the transcript's misspellings with no editorial marker, so a reader could take "MedxFacotry" or "tenand" for this document's own spelling — the more so because claim 4 turns on the ruling's descendant spelling being wrong against the ratified `<Domainx><Product>` form. Every misspelling inside a quoted ruling now carries `[sic]`, in all six places the quotes appear, and the quotes stay byte-faithful otherwise. Marked beyond the two Copilot named, for consistency within the same quote: `shoudl`, `braintorming`, `reserch`, `finacial`, `managment`. 2. `ideation/staging/INDEX.md`'s brainstorm-packet list used shorthand backticked names (`-core-product.md`) that resolve to no path, and dropped the `ideation/brainstorm/` prefix on the last entry. An index that cannot be followed is the defect the index exists to prevent, so the six entries are now real relative links. Doc-health unchanged: 6 critical / 4 error / 27 warning / 14 info on both trees, 109-row finding sets diffing to zero in both directions; `doc_health.families._template_gaps` still returns `[]` on the fragment. Refs #656 Lane: openxfactory-opendox Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01X7e6BQZysoULChFmDmgG1Z
|
Lane: openxfactory-opendox Both Copilot findings taken at
Re-verified on the new head: doc-health 6 critical / 4 error / 27 warning / 14 info on both this branch and an Codex review was not requested — its quota is exhausted. 🤖 Generated with Claude Code |
There was a problem hiding this comment.
🟢 Approval recommended
The PR is ideation-only and cleanly adds the staged topic + brainstorm packet with consistent indexing updates, without touching contracts/specs/code as constrained by the PR description.
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
RULING for lane openxfactory-opendox PR #659 (head Lane: openxfactory-opendox |
Lane: openxfactory-opendox
Claim: #656 (comment)
Ideation only. No contract, code, spec or naming-record edit — this PR touches
ideation/and nothing else. Thedocs/openxdox-naming.mdAmendment 3 the ruling owes is carried by the future OpenSpec change, not by this slice.Brett ruled four of the topic's open questions and gave direction on the fifth while this was being authored; they are encoded as settled claims 11–15 and worked through the packet.
The rulings, as encoded
opendox-persistence-and-truth.mdrestructured — aRULEDsection, the four-option space kept as what the choice was made from, and the consequences the ruling makes concretexFactory-Hermes-Installis on AKS, OIDC through the Keycloak broker, growing into the OpsxFactorydoxworkload set. Rejected: a DB bolted onto today's stdlibserve.py; a new full-stack platform.opendox-synthesis-install-and-tenancy.mddoc_health→ideation_dashboard.boundaryback-imports move into a small neutral module both sides depend on. The dependency points one way. Rejected: openDox pinning doc-health as a library; openXdox as a tuned copy with no shared interface.What Q5 changed about the deliverable
The direction replaced "app versus integration" with three questions asked of every module and requirement: would someone with no notion of factories, gates or tenants use it (openDox); is it the machinery common to how MedxFactory, LedgerxFactory and AdxFactory each map onto the workbench (openXdox); or is it one domain's own mapping (a descendant). Two obligations followed, and both are discharged here.
1. A new brainstorm document,
opendox-domain-mappings.md— the three mappings worked explicitly against ratified domain facts, not invented ones (docs/domain-instantiation-pre-run-questionnaire.md,contracts/policies/layer-vocabulary.yaml,docs/governed-derived-model.md):governedtiercalibratedtierEach mapping is worked through its artifact kinds, lifecycle, acts and gates, evidence class, and external enforcement — and the seven machineries common to all three are extracted: the corpus-adapter implementation, the lifecycle engine, the gate-and-commission loop, the evidence-and-provenance surface, the model/scenario workbench, the role-and-authority projection, and the review lane.
Two findings from that work, both recorded rather than smoothed over:
governed-derived-modelfamily; Medx's templates are ratified; Adx conforms atcalibrated. There is no surface for a model or a scenario. It is the largest genuinely missing piece of the openXdox core, and it is greenfield — which changes the work from "carve" to "carve and build".codexDox, not the common core — the lifecycle taxonomy, the promotion funnel, the change/spec/delta vocabulary, doc-health's families, the three lanes. Held as a hypothesis, and it contradicts this packet's own boundary document over ~15K lines. The concrete test between the readings is stated: would a clinician ever see the word "requirement"?2. The boundary document is now a three-column assignment of the 48 modules and the 102 requirement clusters under the test — openDox ~24.9K LOC, openXdox ~10.9K plus a large unbuilt remainder, descendant (
codexDox) ~5.0K, and 10.9K of residue that must be split by function (serve.py6,733 behind an app-server extension point so openXdox contributes routes without forking the server;cli.py;workbench.py;authoring.py).The pull-up candidates, named and ranked for a lab assistant (the direction's explicit ask):
doxbench_knowledge, 1,231 LOC) — filed as governance today only because its input set is called "the staged set". The core research move.doxbench_abstract_store446 + the generation surface) — deterministic abstracts that state their own absences, plus a distilled abstract verified against the document's declared fields. A literature-review tool inside a governance dashboard.lens, 282).notebook_action, 239) — with the stage-to-book mapping left behind, since a per-project book is the neutral shape.Deliberately not pulled up: Adx's
calibrated-tier calibration loop (domain machinery, and openDox has no outcome to read) and the gate console (a student has nobody to gate against).Files
ideation/brainstorm/opendox-two-layer-overview.mdideation/brainstorm/opendox-core-product.mdideation/brainstorm/opendox-domain-mappings.mdcodexDoxhypothesisideation/brainstorm/opendox-openxdox-boundary.mdideation/brainstorm/opendox-persistence-and-truth.mdideation/brainstorm/opendox-synthesis-install-and-tenancy.mddomain-descendant-boundarymust grow for a product with a schemaideation/staging/opendox-two-layer-product/opendox-two-layer-product.mdideation/staging/INDEX.mdideation/README.mdClaims encoded (15)
Ten from the founding ruling: two open-source repositories, neither of which exists today (verified); openDox's scope is the app with an explicitly expandable feature set; openXdox's scope is the openxFactory integration; descendants pin openXdox in the ratified
<Domainx><Product>form (the transcript'smedXdox/CodeXdoxwould be a third casing scheme); a DomainxFactory install stands the descendant up in the tenant with its own database; the ratified naming record is overridden and owes an Amendment 3 carried by the change; a ruled departure fromsplit-openxwallet-repoR3's seam rule; a forced departure from the byte-identical floor; the brand "Opensoft openDox" is already in canon in a promoted requirement; and this slice is ideation only. Five more from the afternoon: Q1–Q4 as ruled, and Q5 as a direction whose per-module assignment is design work.Open questions
Two await Brett (numbering follows the governing record):
ideation-dashboardchanges. The one genuine conflict is named rather than deferred:add-nightly-dashboard-refreshis ratified, cross-repo across three repositories, and ADDS seven requirements todoc-healthon the dashboard's behalf while Q4 rules that dependency one-way. That needs a decision, not a merge — and its lane has three worker runs, zero successes, so "wait for it to archive" has no date. Recommendation: four preparatory slices now; every active change archived, re-homed or waived before the carve.opendoxcollisions. Measured: a GitHub orgopendoxexists (created 2026-03-20, one unrelated repo); six repos namedopendox, the largest dormant since 2022 and one active 2026 project (fum4/opendox) in the adjacent agent-written-docs space; per-owner namespacing leavesopensoft/openDoxavailable. And everyopen*repository in this org is private and unlicensed,openXwalletincluded — so "two layers of opensource" has no in-house precedent. Q5 gives visibility a product answer too: a student cannot use a private repository.Four travel into the change with recommendations: Q8 the three-way capability split; Q9 what replaces byte-identity (test-count arithmetic summing to the pre-split count, a neutral conformance corpus, a snapshot-equivalence run); Q10 whether a consumer may pin openDox directly — otherwise Q5's standalone test is unsatisfiable; Q11 whether the lifecycle vocabulary is parameterized, which is the one whose answer most changes what gets built.
Every question carries Context / Recommended answer / Explanation / Disposition status — no bare questions, per the ratified template contract.
Conflicts recorded (not smoothed over)
The read-only review's NOT NOW recommendation and its three still-true facts; the ratified naming record that says
openDoxis taken; the wallet precedent's seam rule pointing the other way; Q5's second layer disagreeing with the layer's own name (a domain-mapping core versus one domain's integration);add-nightly-dashboard-refreshdeepening the coupling Q4 rules one-way;domain-descendant-boundary's laziness rule versus commissioned descendants; and Q1 keeping documents in git while Q5 asks openDox to be useful alone — which composes only if a standalone openDox ships a trivial adapter implementation over a plain local git repository, and nothing states that.Folds
openxdox-install-app-provisioning(staged 2026-08-14, gate MET, exit unraised twenty days on). Survives: the two-App security invariant, the no-app-creates-app-API finding, tenant ownership, the globally-unique-name convention, the small apply repo. Q3 strengthens all of it — the manifest flow now runs once per tenant by construction, and its Case A / Case B distinction becomes load-bearing. Q1 settles one of its worries the other way: the dispatch App does not become moot, because git stays authoritative. Its Q1 contract home moves inside the two-layer change (a per-tenant install provisions a database as well as two Apps). The topic folder stays staged.Doc-health evidence
Run on both trees with
--single-repo . --as-of 2026-09-04:origin/mainbaseline worktree (bc1bd4ee)8ca6ba9b)Zero added findings at any severity — including
info. The finding sets were diffed row by row (109 rows each, normalizing the run'sRepo-Identity):ONLY IN TIPandONLY IN BASELINEare both empty. Canon share moves 36.7% → 35.5%, the expected dip when new brainstorm and staged words land.Template conformance was also checked directly against the checker rather than only through the report —
doc_health.families._template_gapsreturns[]on the fragment.Other verification:
OPENSPEC_TELEMETRY=0 openspec validate --all --strict— 89 passed, 0 failed, unchanged.pytest tests/doc-health -q— 1552 passed (staging/lifecycle/brainstorm/template selection: 49 passed).pytest tests/ideation-dashboard/test_staging_seed.py tests/ideation-dashboard/test_authoring_agent.py tests/notebooklm/test_sync_notebooklm_books.py -q— 151 passed (the tests that readstaging/INDEX.mdandideation/README.md).Notes
ideation/only and noopenspec/changes/path.Refs #656deliberately, notCloses— issue openDox + openXdox: two open-source layers, an installable app with users, projects and a database; domain descendants pin openXdox (Brett's ruling 2026-09-04) #656 is the governing record until the OpenSpec change lands.Refs #656
🤖 Generated with Claude Code
https://claude.ai/code/session_01X7e6BQZysoULChFmDmgG1Z