You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Render the refresh lane through the pinned products, and mount them in the nightly (#1161) - #1166
Everything below "What was broken" is lane openxfactory-4's text as of 2c4520e7, except the part of Evidence headed as this lane's. What changed since then, each change test-first (the new test failed at the commit before it):
52f341b7: the intake requires a full validator_revision, and the seal refuses a validator with no product revision or no openXdox leg to hold it to (Copilot thread PRRT_kwDOTAvnrs6mEqv5). The test stand-in validator is now a committed product tree.
e88ea23c: a real directory at --seal-result-out is removed (rmtree, following no link), so the planted-path refusal is written rather than unknown (the review's "Previously missed" item). The path is bounded: its directories resolve inside --repo-root, where the record step reads the result, and its name is a .json file.
8a20c6eb: each recorded verdict is held to its exit code (validated with 0, not-conformant with 1, as a real int), at the intake and at the seal. This mirrors opensoft/xFactory#526 thread PRRT_kwDOTK9OtM6mEotr.
7d142ac1: the validator unit's corpus-side schemas must be the bytes source_head holds (thread PRRT_kwDOTAvnrs6mXKyz). 49 of the real unit's 56 sources come from the corpus checkout.
113c2dd8: each product module the render unit imports by name is required at the intake and by the leg sealer (thread PRRT_kwDOTAvnrs6mXKy7). The set is held to an ast read of the entry and its bootstrap.
40d6aa18: the seal result's directory is held by a handle from before sealed code runs, and a replaced directory refuses the seal (thread PRRT_kwDOTAvnrs6mXVdo).
146f624c: the recipe is written the way the manifest is (thread PRRT_kwDOTAvnrs6mXZ53). recipe/ is made exclusively, relative to the seal directory as created, and opened without following a link. The Dockerfile is created O_EXCL|O_NOFOLLOW. At 40d6aa18 a link or a hard link planted there had a host file overwritten.
cdc59289: merge of main4663e9e8 (21 commits, none of them touching this PR's files).
09a8e5ac: tests only. These are the cases the mutation check found no test reached: a copy standing in for the seal directory, and a link swapped in just as recipe/ is made.
a895e270: a seal phase that could not write its own seal result now fails its step (thread PRRT_kwDOTAvnrs6mXs7Z). It returns SEAL_RESULT_UNWRITTEN_EXIT (3), and the step's default bash -e stops before sealed is read. A result path the lane cannot clear refuses the seal before sealed code runs. The record step reads the result only after a seal step that succeeded. At 09a8e5ac, a planted sealed: true left where the lane could not remove it was read by the workflow. This is the one exception to the lane's exit-0 contract, and both main and the wrapper name it.
Review state at a895e270:
All 26 review threads are resolved, and this lane answered each one. The last Copilot review is 5329070938, at a895e270.
These were closed by disposition, with no code change:
PRRT_kwDOTAvnrs6mXXw7: a false positive. The render's --output is the absolute scratch path.
PRRT_kwDOTAvnrs6mXs7M: a false positive. The --recursive comment sits above the test's slice, and the test passes.
PRRT_kwDOTAvnrs6mXq1R, PRRT_kwDOTAvnrs6mXs7R, PRRT_kwDOTAvnrs6mXs7X and PRRT_kwDOTAvnrs6mX2ts: each needs a sealed process that outlives the lane. Such a process could as well rewrite the seal tree and its manifest, so it is closed by containing the sealed runs, not by any change to the result file. That class predates this PR (main's probe already runs the sealed validator) and is proposed as a change of its own.
PRRT_kwDOTAvnrs6mX2tk: --seal-out confinement, out of scope for this PR by the coordinator's ruling.
SonarCloud: two pythonsecurity:S8707 findings remain, at _create_new_file and _open_directory, both reached through the unconfined --seal-out. SonarCloud is not a required check, and --seal-out confinement is out of scope for this PR.
This is openxFactory's half of the repair tracked in #1161. The nightly dashboard refresh has been broken end to end since the split-opendox § 5.2 shed (cc4ae9d3). The aggregation's worker child is the other half; its PR follows in opensoft/xFactory.
Rule 6. This PR touches nothing under openspec/changes/ and not the README OpenSpec Records block, so there is no landing window.
OpenSpec. No new change. This realizes behavior that add-nightly-dashboard-refresh already ratified: the sealed, credential-free child that renders and gates --strict.
What was broken
The breaks were measured on opensoft/xFactory run 35947804907 (2026-09-24):
The finalize job mounted neither product.
The snapshot lane died with CarveReachUnavailable.
The ideation-readiness and derive-possibles lanes skipped with "the pinned openxdox_spec leg is not materialized".
The refresh seal could not resolve the validator it carries.
The child's render names a module that is gone. It runs ideation_dashboard.cli, which left at the shed (No module named ideation_dashboard.cli).
scripts/ideation-dashboard-cli.py. The host entry is new, the command-line twin of ideation-dashboard-serve.py. It runs:
carved_reach.require() / install();
opendox_host.register_openxfactory();
then the product's own opendox.cli.main.
It is the bootstrap test_cli_column_split.py already calls the only lawful way to reach the command line post-shed. opendox_host's list of callers now names it.
The seal carries the render unit (manifest 2.1.0).
It carries the entry, the four host-bootstrap files, and both products' code legs (src/ only). The legs are archived at the commits the sealed source_head pins, read from that tree.
The legs are this parent's materialized checkouts. Nothing is fetched. A parent holding either product or leg at any other commit refuses and names both commits.
The validator must come from the same openXdox revision as the sealed leg.
verify_seal requires the unit whole.
Pre-dispatch --strict gate. The parent runs the child's own render from the seal, then the sealed validator over it under --strict, before anything is dispatched.
The render runs in a scrubbed environment:
no credentials, and none of the job's GH_/GITHUB_/GIT_/ACTIONS_/SSH_ variables;
a scratch HOME;
no bytecode written;
git fenced out of the aggregation checkout.
A rejection is StrictGateRejected. It is recorded as strict_failed in the seal result and in refresh-status.json, with the validator's findings, and the next report lists them.
The finalize job mounts openDox and openXdox and each product's spec and code leg. Each is named explicitly (not --recursive) and guarded like the openXwallet/MedxEHR inits.
prepare reads neither product. Run 35947804907 shows no failure or skip there for their absence, so it inits neither.
Decision scope.CORPUS_BAKED_PATHS now names the render unit. The Dockerfile's copied set is kept separately as CORPUS_COPIED_PATHS. A product re-pin is corpus movement. Against the live pin (8-path scope) this costs exactly one rebuild, and a test measures it.
The parent-side --strict gate cannot block the rest of the nightly
Every step of the refresh stage is continue-on-error: true.
The stage runs after report delivery.
A seal that is refused stops only that stage's dispatch. The snapshot lane and every other family run and report as before.
So the gate is not made report-only.
Today it will reject, naming #1159. Measured by sealing this checkout for real (real legs, real resolver, real render from the seal):
--strict REJECTED the snapshot this seal renders (validate-ideation-dashboard-contracts: 3 error(s), 0 warning(s)), a known defect, tracked as opensoft/openxFactory#1159 (3 of 3 finding(s)); the child's publication gate would refuse it the same way, so nothing is dispatched
ERROR [snapshot-dangling-cluster-ref] snapshot.json: possible 'pos-derived-cross-domain-persona-framework-package' claiming_clusters references unknown cluster 'cl-plane-1'
ERROR [snapshot-dangling-cluster-ref] snapshot.json: possible 'pos-derived-cross-layer-cost-accountability-pipeline' claiming_clusters references unknown cluster 'cl-plane-1'
ERROR [snapshot-dangling-cluster-ref] snapshot.json: possible 'pos-derived-roster-promotion-conformance-checklist' claiming_clusters references unknown cluster 'cl-plane-1'
validate-ideation-dashboard-contracts: 3 error(s), 0 warning(s)
The measured timings were: legs 0.3 s, validator 0.5 s, index 3.1 s, render plus --strict 10.0 s, and 22 s for the whole seal. No corpus data is edited, suppressed or dispositioned.
Lockstep with the aggregation's pin
The reusable workflow runs at openxFactory main, while its scripts come from the aggregation's openxFactory gitlink (dd2466ad today). Once this PR lands:
Until the aggregation's pin-sync:
The mount alone restores the snapshot lane.
The old seal script keeps refusing as it does today.
The record step hands --seal-result-in on only when the seal result says strict_failed, which an older pin never writes.
After the pin-sync (the xFactory PR, which moves the gitlink and PIN.yaml together), the 2.1.0 seal and the child reader meet.
A product re-pin in openxFactory is refused at the seal until the next aggregation pin-sync, and the refusal names both commits.
Host gates (not authored here)
The heartbeat labels (heartbeat_labels_missing): lane openxfactory-1, opensoft/xFactory#480.
The rider's ACR push credential: lane openXfactory-3 (OpsxFactory amend-rider-registry-push-channel).
This lane's guards since 2c4520e7 (lane openXfactory-5), at a895e270
pytest-suite at a895e270 (run 36298806173): selected=9063 passed=9057 skipped=6 failures=0 errors=0. On main8421603a (run 36299035404) it is selected=8890 passed=8884 skipped=6 failures=0 errors=0: 173 more passing, and the skips unchanged. Every required check is success. SonarCloud (not required) fails with the two --seal-out findings above.
Local runs. The seal and refresh-lane modules: 299 passed. Every module that reads doc-health-reusable.yml: 349 passed.
Mutations: 36 of 36 killed. Each guard added since 2c4520e7 was reverted by hand in this lane's clone, one at a time. Then tests/ideation-dashboard/test_dashboard_source_seal.py ran in full (the unmutated baseline is 246 passed), and the failing tests were recorded. The file was then restored and checked clean against git. The tests that kill M7c, M7d and M7e were added in 09a8e5ac, after the analysis for this table found that no test reached those guards.
Targeted suites, 1663 passed. They cover tests/ideation-dashboard, every test module that reads doc-health-reusable.yml, tests/domain_profile, tests/snapshot_equivalence and tests/pin_registrations.
New tests. They cover:
leg sealing over real nested submodules, plus five refusal shapes;
the coherence refusal;
the render unit in verify_seal, and the 2.0 and 1.x layouts;
the pre-dispatch render's invocation and environment, its refusals and the strict verdict;
the citation;
the CLI strict hand-off;
the workflow mount and record step;
a real seal of this checkout rendered from the seal;
an audit-hook test that repeats the measurement the render unit was declared from.
Mutations: 11 of 11 killed. The mutated guards were leg-pin equality, env scrub, tree-unchanged, citation value match, finalize mount, verify_seal render unit, a unit narrower than the render, the conditional hand-off, the strict-verdict gate, --no-validate and the validator/leg coherence.
The full pytest-suite gate and validate-openspec-cli-pin.py --all are compared with main in a follow-up comment.
Restore nightly dashboard refresh by sealing and validating the pinned post-shed render unit before dispatch.
New Features:
Add a shared CLI entrypoint for rendering the ideation dashboard through the post-shed product architecture.
Add pre-dispatch strict validation of snapshots rendered from the sealed source artifact, including recording validator findings and known-issue citations.
Bug Fixes:
Restore nightly dashboard refresh access to the pinned openDox and openXdox product code and schema legs after the repository split.
Enhancements:
Expand source seals to include the complete render unit, enforce product and leg pin coherence, and validate seal completeness before dispatch.
Separate copied corpus paths from the broader baked-input scope so renderer and product repins trigger the appropriate refresh decision.
Harden seal reads against Git replacement and ambient repository configuration.
CI:
Update the finalize workflow to materialize both products and their spec/code legs, and pass strict seal verdicts through the recording step without blocking other nightly lanes.
Tests:
Add comprehensive coverage for product-leg sealing, pin mismatches, render-unit verification, strict gating, environment isolation, workflow mounting, and real sealed rendering.
…n the nightly (#1161)
The nightly dashboard refresh has been broken end to end since the
split-opendox section 5.2 shed (cc4ae9d). This is openxFactory's half of
the repair tracked in #1161; the aggregation's worker
child is the other half.
- scripts/ideation-dashboard-cli.py is the host entry the child renders
through: carved_reach.require/install, opendox_host.register_openxfactory,
then the product's own opendox.cli.main.
- The seal (manifest 2.1.0) carries the render unit: that entry, the host
bootstrap files, and both products' code legs, archived at the commits the
sealed corpus pins them at. A parent that holds the products at any other
commit refuses and names both, and nothing is fetched.
- Before it dispatches, the parent renders the child's snapshot from the
seal and runs the sealed validator over it under --strict. A rejection is
recorded as strict_failed with the validator's findings, and a finding
that has a tracking issue is cited against it (#1159 today). The refresh
stage stays continue-on-error and after report delivery, so this stops
only the stage's own dispatch.
- The finalize job mounts openDox and openXdox and their spec and code
legs, by name, which also restores the snapshot, ideation-readiness and
derive-possibles lanes that failed or skipped for their absence.
- The decision scope names the render unit, which costs exactly one
rebuild against the live pin (a test measures it).
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This PR repairs nightly dashboard refresh after the post-shed layout by mounting the pinned products, sealing the exact renderer and product code used by the child, and running that sealed render through the validator under --strict before dispatch; failures are recorded as bounded verdicts without blocking unrelated nightly lanes.
Sequence diagram for the sealed nightly refresh pre-dispatch gate
sequenceDiagram
participant Workflow
participant Lane as dashboard_refresh_lane
participant Seal as Seal builder
participant CLI as ideation-dashboard-cli.py
participant Validator as Sealed validator
participant Record as Refresh status
Workflow->>Lane: seal_source()
Lane->>Seal: seal_render_legs()
Seal-->>Lane: renderer and pinned product code legs
Lane->>CLI: generate --no-validate from sealed tree
CLI->>CLI: carved_reach.require()
CLI->>CLI: carved_reach.install()
CLI->>CLI: opendox_host.register_openxfactory()
CLI->>CLI: opendox.cli.main()
CLI->>Validator: validate_snapshot(strict=True)
alt strict validation passes
Validator-->>Lane: validated
Lane-->>Workflow: sealed=true, dispatch may proceed
else strict validation rejects
Validator-->>Lane: findings
Lane-->>Record: strict_failed with bounded findings
Lane-->>Workflow: no child dispatch, unrelated lanes continue
end
Loading
Entity relationship diagram for the 2.1.0 seal contents
Aligned refresh provenance and regression coverage with the new render dependencies and verdict flow.
Made product re-pins and renderer/bootstrap changes trigger one corpus rebuild through the widened baked-input scope.
Added tests for real nested-leg sealing, pin mismatch refusals, seal verification, strict invocation/environment behavior, findings propagation, workflow mounts, and real checkout rendering.
Trigger a new review: Comment @sourcery-ai review on the pull request.
Continue discussions: Reply directly to Sourcery's review comments.
Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with @sourcery-ai issue to create an issue from it.
Generate a pull request title: Write @sourcery-ai anywhere in the pull
request title to generate a title at any time. You can also comment @sourcery-ai title on the pull request to (re-)generate the title at any time.
Generate a pull request summary: Write @sourcery-ai summary anywhere in
the pull request body to generate a PR summary at any time exactly where you
want it. You can also comment @sourcery-ai summary on the pull request to
(re-)generate the summary at any time.
Generate reviewer's guide: Comment @sourcery-ai guide on the pull
request to (re-)generate the reviewer's guide at any time.
Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
pull request to resolve all Sourcery comments. Useful if you've already
addressed all the comments and don't want to see them anymore.
Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
request to dismiss all existing Sourcery reviews. Especially useful if you
want to start fresh with a new review - don't forget to comment @sourcery-ai review to trigger a new review!
…er environment, a citation over every finding
Copilot's three threads on the first head (1036c18), all taken:
- Every git read and archive the seal's record depends on now runs as an
exact-content read: `git --no-replace-objects -C <repo> ...` in
carved_reach's scrubbed environment, reused rather than copied. That
covers the revision reads, the committer date, the gitlink reads and
both archives. A test gives the pinned leg commit a replace ref with
other bytes and points the environment at another repository and
object store, and the seal still holds the pinned commit's own bytes.
- The pre-dispatch render's environment is built from an allowlist
(PATH, LD_LIBRARY_PATH, the locale, the temp directories and the
Windows system variables) instead of filtered by a denylist, so a
credential nobody named never reaches it. The test adds AWS, Docker,
kube and npm variables and asserts that nothing outside the allowlist
arrives.
- The known-finding citation reads every validator line, and only the
detail the verdict carries is capped afterwards. A test puts the one
tracked finding past the cap.
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…nvironment, and the manifest is created exclusively
Copilot's second review of PR #1166 found two gaps.
The sealed validator inherited the job's credentials. The product's
`validate_snapshot` launches it with no environment of its own, so both
parent-side runs of the sealed copy (the probe and the pre-dispatch
--strict) handed it GH_TOKEN and everything else the finalize job exports.
`validate_in_render_environment` now makes the product's own call in a
fresh interpreter whose whole environment is the render's allowlist, from a
scratch directory, with git fenced out of the seal and out of that
directory. The three-outcome reading stays the product's: the harness hands
the result back as one JSON line whose shape is checked. The run is bounded
too, since the product's call has no timeout.
The render could plant `manifest.json`. The index excludes that one path, so
a link left there would have had the manifest written wherever it pointed.
Anything at that path now refuses the seal, and the manifest is created with
O_CREAT|O_EXCL, which never follows a link.
A defect of this PR's own, found while testing the first: the nightly names
its seal `dfr-seal`, relative to the job's working directory, and the render
runs from inside the seal. The render was handed relative paths, so every
nightly seal would have been refused as a render that could not run
(measured at 1036c18). The pre-dispatch render now makes the seal root absolute.
Sealing this checkout under a relative name, with fake tokens exported,
answers the tracked strict rejection (3 of 3 findings cited against
#1159).
SonarCloud rated the seal-result read a path-injection risk (pythonsecurity
S8707). `--seal-result-in` is now read only from inside `--repo-root`, which
is where the seal phase writes it.
Tests: the environment the validator PROCESS saw, for the probe and for the
precheck; the fenced call held equal to the product's in-process call over
every outcome; a hang, a launch failure, no verdict, a malformed verdict and
a non-zero harness exit; a relative seal; four shapes planted at the
manifest path and an exclusive-create race; a seal result outside the
checkout. Each of 14 mutations that undoes part of this fails a named test.
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…n, and the intake requires the render's bootstrap
Copilot's third review of PR #1166: `Path.is_file()` follows a link, so a
sealed render could make its `snapshot.json` a link, and the parent would
validate, and quote in its findings, whatever file on the host it named.
The output is now read only when it is a regular file with one link: never
a symbolic link, a hard link, a directory or a FIFO. It is opened without
following a link and checked again through the descriptor, so a swap after
the first check is refused too. The validator then judges a copy of exactly
those bytes, in a directory made after the render exited.
The same verifier gap Copilot found in the child's intake (opensoft/xFactory
PR #526) is in this reference verifier too. The entry imports its host
bootstrap before it reaches either product, and a seal missing one of those
four files passed an intake that checked the entry alone, failing only once
the render started. `verify_seal` now requires each of them
(`RENDER_BOOTSTRAP`).
Tests: four output shapes refused with nothing validated; a swap after the
check; the validator handed a copy of the render's bytes from outside its
output directory; each bootstrap file's absence reported by name. Each of 5
mutations that undoes part of this fails a named test. A real seal of this
checkout under a relative name still answers the tracked rejection, 3 of 3
findings cited against #1159.
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Checking only _materialized_head() lets a dirty openXdox/code checkout pass this pin comparison. The renderer itself is archived from the commit, but resolve_pinned_validator()/seal_validator() and the precheck's snapshot_mod are loaded from the leg's working tree, so an uncommitted edit can make the parent validate with bytes that the sealed child will not run while the manifest still claims the pinned revision. Refuse relevant leg worktree dirt (including ignored/untracked import-surface files), or run the resolver and precheck from the archived bytes; the existing snapshot-equivalence gate documents this exact HEAD-vs-on-disk failure mode.
…ifest, through directories held before sealed code runs
Copilot's fourth review of PR #1166: checking only the output's last path
component leaves the directory above it open. Sealed code could move the
scratch directory aside, put a link to another directory in its place, and
the parent would read a valid snapshot the render never wrote there.
- The scratch directory is held by a handle taken before the render runs.
The output is looked up and read relative to that handle, so whatever the
scratch path names afterwards, the parent reads only the directory it
made. A render that swapped it leaves no output there, and is refused as
a render that could not render.
- The seal directory has the same exposure for the manifest. Its identity
is taken when the lane creates it (a seal path that is itself a link is
refused), and the manifest is created relative to a handle on it, opened
without following a link and compared by identity. A seal directory
moved aside and replaced, by a link or by a copy the index would match,
gets no manifest anywhere.
The render's run moves into `_run_the_sealed_render`, so the precheck reads
as its steps.
Tests: a render that swaps its scratch directory for a link to a valid
snapshot; a seal directory replaced by a link and by a copy; the write
handed another directory or a link; a seal path that is a link. Each of 5
mutations that undoes part of this fails a named test.
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This scope comment says the bootstrap consists of five files, but RENDER_BOOTSTRAP is derived from CORPUS_RENDER_PATHS and contains four files (scripts/carved_reach.py, opendox_host.py, profile_openxfactory.py, and wire_messages.py). Please change “five” to “four” so the documented render-unit scope matches the manifest and its verification tests.
…e sealed product module
Copilot's fifth review of PR #1166: the harness imported the product's
`snapshot` module from this parent's own checkout. That worktree could be
dirty, or differ from the archived leg, so the pre-dispatch verdict was not
read end to end by the sealed code.
The harness now imports it from the seal's own openXdox leg
(`sealed_product_module`), for both runs: the probe and the pre-dispatch
--strict. The legs are sealed before either runs. The parent's `product`
now supplies only the result record's type and the outcome spellings. A
sealed leg that carries no product module leaves nothing to classify with,
and the seal is refused, naming the import that failed.
Tests: a recording product module in the seal shows it is the one that
classified, for the probe and for the verdict; a leg without the module is
refused. The stand-in legs and the fake products' openXdox legs now carry
the real module. Each of 2 mutations that reads the parent's copy instead
fails a named test.
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…roduct's schema leg to its pin
Copilot's sixth review of PR #1166 found two gaps.
- The probe runs the sealed validator with the seal writable, and it runs
before the seal's index is taken. A validator that rewrote or added a file
while it ran would have had the altered tree indexed and published. The
tree is now indexed around the probe as well, and a probe that changed it
refuses the seal.
- The sealed validator's schemas are composed from each product's `spec`
leg, and only the `code` legs were held to their pins. Each product's spec
leg must now be materialized at exactly the commit the product pins it at,
or the seal is refused naming both commits, as a code leg is. Its revision
is recorded beside the code leg's (`schema_leg`, `schema_leg_revision`).
Nothing of it is sealed as a leg: the schemas travel as bytes in the
validator unit.
Tests: a probe that rewrites a sealed file and one that adds one; a schema
leg not materialized and one at another commit; the recorded schema-leg
revision read against the product's own pin. Each of 4 mutations that
undoes part of this fails a named test. A real seal of this checkout under a
relative name still answers the tracked rejection, 3 of 3 findings cited
against #1159.
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…le, and require each leg's schema provenance
Copilot's seventh review of PR #1166 found two gaps, and a third came from
the same check in the child's intake (opensoft/xFactory PR #526).
- The seal result sits outside the seal, at the one path the workflow
gates the dispatch on, and it was written with `write_text`, which follows
a link. Sealed code runs before it is written. Its path is now cleared
before the seal starts, and an entry found there afterwards was made by
sealed code: the seal is refused, the entry is removed without being
followed, and the lane's own result is created exclusively in its place.
The manifest and the result share one exclusive-create primitive.
- `verify_seal` now requires each leg record's schema provenance: `schema_leg`
must be `spec`, and `schema_leg_revision` a full revision.
- A leg is sealed as its `src/` alone, so a file of the leg indexed outside
`src/` is refused, even when `file_count` counts it.
Tests: a link and a file planted at the result path during the seal; a stale
result and a stale link cleared before it; four schema-provenance tampers; a
leg carrying a file beside its `src/`. Each of 5 mutations that undoes part
of this fails a named test.
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The new caller-list sentence is grammatically incomplete: “the render the nightly refresh lane's worker child runs” is missing “that” (or equivalent), which makes the documented caller description hard to parse.
The workflow reads sealed from the seal result right after the seal
phase, so a result the lane could not write could not withhold the
dispatch: whatever sat at its path was read in its place. At 09a8e5a a
result that sealed code planted, saying sealed: true and left where the
lane could not remove it, was refused as planted and then read anyway,
because the phase exited 0. A result path the lane could not clear before
the seal started only warned, and the seal ran over it.
A seal phase given --seal-result-out that did not write its own result
now returns SEAL_RESULT_UNWRITTEN_EXIT (3). The step's default bash -e
stops before sealed is read, so nothing is uploaded and nothing is
dispatched. A path the lane cannot clear is refused before any sealed
code runs. The record step reads a reason or a strict verdict from the
result only after a seal step that succeeded. The exit contracts of the
wrapper and of main name the one exception.
Refs #1161
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add subprocess coverage for the production entrypoint
scripts/ideation-dashboard-cli.py:59
This new production entrypoint is not exercised by the test suite: the existing CLI tests execute an inline bootstrap and runpy the product module, while the sealed-render tests use a stand-in entry, so neither imports this file or checks its sys.exit(main(sys.argv[1:])) path. A typo in the wrapper's bootstrap or argument forwarding would therefore first appear in the nightly worker; add a subprocess test that invokes this exact script with the real bootstrap (or a hermetic equivalent) and verifies the product CLI receives the arguments and exit code.
… hold each to the sealed corpus (#1161)
The parent holds each schema the composed validator unit takes from the
corpus checkout to source_head with git (#1166). The child has no git, so it
could not mirror that check: no manifest field said which schemas came from
the corpus. The sealed corpus IS source_head's tree, so 2.2.0 records the
pairing and the intake holds it.
- validator_corpus_schemas: {schema name: corpus-relative path}, {} when the
unit takes nothing from the corpus. On a real seal of this checkout, 49 of
the 55 sealed schemas, each as contracts/schemas/<name>; the other six come
from the legs.
- The seal (seal_validator) records a schema only if the sealed corpus carries
its path as the bytes just sealed, and refuses one it does not ("the
validator unit takes {name} from the corpus at {relpath}, which the sealed
corpus does not carry as the same bytes ...").
- The intake (verify_seal, after validator_revision) refuses a record that is
not a mapping of names to paths, absent included ("validator_corpus_schemas
is None — the manifest does not record which of the sealed validator's
schemas came from the corpus"), and each pair not indexed under one digest.
A 2.1 seal now lacks this field as well as the serve unit.
Failing-first: KeyError 'validator_corpus_schemas' on the manifest and tamper
tests, `Failed: DID NOT RAISE SealRefused` on the parent refusal, and the 2.1
layout test with `At index 0 diff: "serve_entry is None, ..." !=
"validator_corpus_schemas is None — ..."`.
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This merges fix/refresh-lane-render-through-products at a895e27, on the
lane coordinator's word. It carries seat y's last two rounds: the recipe
write that is exclusive and follows no link, and the mutation evidence. It
is a merge, not a rebase, and nothing is force-pushed. Both #1166's rules and
the 2.2.0 additions are kept.
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
LANDED — lane openXfactory-5, session b254fdd5-0bdf-44e0-bb45-5a780234009f@Eagle, 2026-09-27T10:56:52Z, PR #1166 into opensoft/openxFactory main → merge 8fb505a; Render the refresh lane through the pinned products, and mount them in the nightly (#1161)
#1166 landed on main by squash at 8fb505a. This merges main into the seal
2.2.0 branch before the PR is re-targeted to main. It is a merge, not a
rebase, and nothing is force-pushed.
Three files conflicted:
- scripts/ideation_dashboard/dashboard_refresh_lane.py
- tests/ideation-dashboard/test_dashboard_refresh_lane.py
- tests/ideation-dashboard/test_dashboard_source_seal.py
Each conflict comes from the squash, not from a difference in content. The
merge base is main before #1166, so #1166's changes and this branch's
additions touch the same hunks.
Main's versions of all three files, and of
scripts/dashboard-refresh-nightly.py, are byte-identical to #1166's final
head a895e27. This branch already merged
that head, cleanly, at 9d370e5. So each conflict is resolved to this
branch's side, which is #1166's content plus the 2.2.0 additions. The
resolution keeps both, and each file's diff against main is exactly the
diff it had against a895e27.
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…llow-up) (#1179)
Seal 2.2.0: the nightly dashboard seal now carries the serve unit (the ideation-dashboard-serve entry point and the modules it imports, the carve manifest, the engineering domain profile, the doc_health and ideation_dashboard packages) and both product code legs (openDox/code/src, openXdox/code/src) at openxFactory's own nested pins, and records validator_corpus_schemas, so the refresh worker's build context satisfies the image recipe Omnigent-Install#322 landed at 6b7da477. The seal and its intake require the serve entry, the serve unit, and by name every module the render unit and the serve entry import from each leg; 2.1 seals are refused by what they lack. Stacked on #1166 (landed 8fb505a) and re-targeted to main by merge. 27 of 27 mutants killed; modules 352 passed; suite green. Refs #1161. Landed on Brett Heap's word of 2026-09-27, verbatim "land the 2.2.0 pair when green"; the worker half, opensoft/xFactory#535, re-points the aggregation's openxFactory pin at this landed sha and lands after xFactory#526. Deferred hardening recorded in the PR body: a duplicate-name refusal for validator_corpus_schemas completeness.
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
The refresh lane's --seal-out was unconfined (#1182, Copilot thread
PRRT_kwDOTAvnrs6mX2tk on #1166). At 133e37d a seal was made beside the
checkout, out of it by `..` or through a link, in an empty directory the
lane found, and in a directory `mkdir(parents=True)` made on the way; a
dangling link escaped as a bare FileExistsError; and a seal directory
swapped after the lane made it had the corpus and the validator
extracted through the swap, with the probe run from the other directory.
- `main` holds `--seal-out` before the seal starts (`_seal_out_path`):
its canonical path must be inside `--repo-root`, must be its own
spelling (no link at any component, the last included, dangling or
not), must not exist, and must be in a directory that does. A path
that breaks any of that is a recorded refusal: nothing of the seal
runs, the result is written, and the step exits 0 as before.
- `seal_source` refuses an existing path before the validator is
resolved, then makes the directory itself (`_new_seal_directory`): a
plain `mkdir` relative to a handle, reached by walking from
`--repo-root` without following a link, then opened without following
one and required empty. It holds that handle until the seal is done.
- Every write and read the lane makes under the seal goes through the
handle (`/proc/self/fd/<fd>` on Linux, the checked path elsewhere); the
recipe and the manifest are written through it, once the name is held
to still lead to it; and the name is held again before the corpus is
extracted. A swapped seal gets nothing more written and is refused.
The eight SonarCloud pythonsecurity:S8707 findings on this module whose
taint source is args.seal_out (_open_directory, _create_new_file,
_write_new_recipe, file_sha256, _extract_seal_archive x3, seal_source)
now only see the checked path, or the handle's own path.
Tests: the 22 new cases of the previous commit fail against 133e37d's
module and pass here; both modules 371 passed (352 at 133e37d).
Refs #1182
Refs #1161
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot's review of #1185 at 725f92e (review 5331401098):
- `main` clears the seal result's path before the seal runs, since
whatever sits there is the lane's to remove (#1166). A `--seal-out`
that named the same path, held it, or lay inside it lost an existing
seal, or what it held, and then passed as fresh
(PRRT_kwDOTAvnrs6mc4kl). The two paths are now compared first, as
spelled and as resolved (`_seal_paths_overlap`). On an overlap nothing
is cleared and nothing is sealed. The refusal is written only where
the result's path is free, and the step fails where it is not. A
`--seal-out` refused on its own keeps its own reason.
- Where the platform opens nothing relative to a handle, a seal
confined to a root is refused before anything is made
(PRRT_kwDOTAvnrs6mc4kc), since it could only be made, written and
checked by its path. `main` always confines it to `--repo-root`, and
the nightly's parent runs on Linux, where the handle is taken. A
direct call that confines nothing is still made by its path, as the
manifest's write always has been there.
Tests: the seven new cases of the previous commit fail against
725f92e's module and pass here.
Refs #1182
Refs #1161
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…code runs (#1182) (#1185)
Confines the dashboard refresh lane's --seal-out to the checkout and makes the seal directory fresh before any sealed code runs, the follow-up #1166 left open (Copilot thread mX2tk and the SonarCloud S8707 findings reached through --seal-out). The lane refuses a --seal-out outside --repo-root, one that leads through a link, one that already exists, one in a missing directory, and one overlapping --seal-result-out; it creates the directory itself, holds it open, and writes and checks everything under it through that handle, withdrawing the manifest if the directory is replaced. The nightly script and the doc-health workflow keep working unchanged. 25 of 25 guards killed; seal modules 388 passed; real seal validated over 400 documents. Refs #1182, #1161. Landed on Brett Heap's word of 2026-09-27, verbatim "land #1159 and #1182 when green". Six pre-existing S8707 findings in unchanged functions can only be confirmed closed on main's next analysis; #1182 stays open until they are.
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Brings main up to 6b97c60 before T047's pins move. One file overlaps
this branch, scripts/opendox_host.py, where #1166 extended the docstring's
caller list; it auto-merged.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ins (plan 034 T047)
Two reds the full pytest-suite finds, neither on a declared F11.1 surface,
so both are named in the PR for T007 batch E:
- tests/openxdox_pin/test_openxdox_pin_verifier.py::
test_ruling_q7_two_direct_upstreams_in_lockstep. Its snapshot literal,
which its own comment says "is expected to move on every future bump",
moves dc7aa08f -> 663ac683. Line count and positions kept.
- tests/ideation-dashboard/test_dashboard_source_seal.py::
test_the_render_leg_modules_are_what_the_render_unit_imports_by_name and
::test_the_serve_leg_modules_are_what_the_serve_entry_imports_by_name.
#1166's seal (on main since 6b97c60) holds the render unit's by-name
leg imports to an ast read of the entry and its host bootstrap. T046's
opendox_host.seams() imports four more openDox modules (corpus_adapter,
doxbench_packet, serve_wire, workbench), so the requirement grows by
those four: RENDER_UNIT_IMPORTS here, and the intake's own
RENDER_LEG_MODULES in scripts/ideation_dashboard/dashboard_refresh_lane.py.
The seal carries a leg's whole src/, so no sealed artifact changes. This
red is the merge of #1166 with the host wiring, and appears at any pin.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…rc edits at the committed pins (#1183)
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Bookkeeping only (T007 batch E). Records, in #1144's
(`add-neutral-product-standalone-operability`) `tasks.md`, every path phase 1
has actually moved, edited or found for F11.1's `COMPOSITION_TESTS` named set
(introduced by batch A, `5817152735`, Ruled R1Q2 (a), R1Q22 (a)), now that the
full committed-pin measurement is in. Brett ruled this batch's own landing
shape on `#656` comment `5856475254` ("P1-K's three questions", finding 3:
*"It lands as a bookkeeping PR with batch E, before T047"*), and his speed-up
ruling (`5857365170`) named it as one of three things authored ahead of its
last inputs ("Draft ahead in phase 1").
**Every input is now landed and MEASURED; no red is unaccounted for — but the
guard-code mechanism for one class of them is a separate, still-UNRESOLVED
question this PR does not answer (see item 4 below).** T034 (openDox-code#50
→ `71b631bc`), T035 (openDox-code#51 → `80acead1`), T039 (openDox#13 →
`663ac683`, pinning `code` to `2d116415`) and T044 (openXdox-code#33 →
`6158151e`) have all landed. P1-K's writer (openxFactory#1181) then ran
`pytest tests/ -q -m "not postgres"` at those committed pins: 266 failed, 1
collection error with #1181's host wiring alone and nothing else (run T1);
8886 passed, 6 skipped, 0 failed, 0 errors at #1181's fixing commits merged
with `main` `e369cb25` (run T4, head `f79a72f3`) — the same 6 skips `main`
has. Every one of the 267 committed-pin reds is one of the causes below —
that inventory is closed. What is NOT closed: 7 of those causes are arc edits
this PR admits but cannot yet route through F11.1's guard (item 4); that gap
is unresolved bookkeeping, left for T045/T093/T094 or a further ruling, not
silently assumed solved. (T044 supplies no composition-test path: its
declared exclusion, at the triple 885/881/4, is entirely openXdox-code's
own.)
**What this PR adds**, as one continuation paragraph after batch A's, at
11.1 / F11.1:
1. **Four paths join `COMPOSITION_TESTS`** — batch A's original two,
unchanged, plus P1-K's two, each re-described here at the fuller cause its
writer's measurement found:
- `tests/ideation-dashboard/test_authoring_classify_derivation.py::test_the_gate_reaches_the_corpus_only_through_the_two_public_names` —
at the pinned leg it binds no name out of the adapter package
(`bound == []`, was `["home_corpus"]`), plus a new assertion on the two
public names it takes from the interface module instead
(`sorted(interface) == ["DocumentId", "home"]`).
- `tests/ideation-dashboard/test_doxbench_status_exemption.py` — TWO
edits, not one: (i) the dependence-on-the-carved-rail assertion moves
from "exactly one import" to `seam_lines == []`, plus a new assertion
naming the rail's only readers; (ii) a separate collection error the
committed-pin run alone found (an import the local conftest can't
resolve), fixed by lending two names onto that conftest inside a
`try`/`finally` that removes them again straight after.
Both files stay in `tests/ideation-dashboard/`, are edited, not moved or
created, and each pins something openDox- or openXdox-owned, so both are
compositions in the deep sense, not only the structural one.
2. **Six more paths — T034's two, T035's four — do NOT join
`COMPOSITION_TESTS`, correcting this batch's own earlier, WRONG proposal.**
This batch's first draft put all six destinations under
`tests/ideation-dashboard/`, naming each in `COMPOSITION_TESTS`. **P1-K's
writer's measurement found that proposal INFEASIBLE, not merely unwise**:
`scripts/validate-carve-manifest.py` REFUSES `carve-file-undeclared` for
any NEW file under `tests/ideation-dashboard/` — the carve's
`moved_paths:` surface already covers the whole directory, closed to
undeclared arrivals. The six land under `tests/domain_profile/` instead
(same basenames, verified directly on #1181's head), which needs no
`COMPOSITION_TESTS` entry at all: `tests/domain_profile/` is already
`HOST_TESTS`, F11.1's SECOND declared surface, covering every path under
it unconditionally, new or edited.
- `tests/domain_profile/test_outline_template_agreement.py` — T034's
outline case.
- `tests/domain_profile/test_memory_gateway_roster.py` — T034's three
memory-gateway cases.
- `tests/domain_profile/test_workbench_manifest_validation.py` — T035, 3
cases.
- `tests/domain_profile/test_workbench_scoped_doc_health.py` — T035, 3
cases.
- `tests/domain_profile/test_session_worktree_book_scan.py` — T035, 2 of
its 3 proposed cases. `test_worktree_container_is_gitignored_in_the_aggregation_repo`
is HELD OUT: it SKIPS wherever no aggregation checkout exists (every CI
run), and landing it would move `pytest-suite`'s `EXPECT_SKIPPED` from 6
to 7. Held, not decided against.
- `tests/domain_profile/test_doxbench_chat_ceiling.py` — T035's one moved
case, plus one it adds fresh.
T035 (openDox-code#51 → `80acead1`) moves nine cases and adds one fresh
across these four destinations, not eleven — the corrected count, after
holding one case out.
3. **T035's fifth destination, `test_hermeticity_probe_routes.py`, still does
NOT join anything here** — reaffirming this batch's SECOND answer to
T035's open question (reversed from its first, on an earlier Copilot
finding at this PR — see the branch's commit history; do not re-admit
without re-deriving the reasoning). It pins nothing about the
composition; it lands as a plain, non-`Arc:`-trailered openxFactory test
in its own PR (T066's precedent), unclaimed as of this writing. P1-K's
writer's measurement found it already: two of its three cases fail today
and the third passes, all through
`tests/notebooklm/test_hermeticity_guard.py:87`'s stale
`find_spec("ideation_dashboard.workbench")` probe — a separate
`EXPECT_SKIPPED` question that PR must answer, not this one.
4. **Seven paths sit on NO F11.1 surface at all, and each is an ADMITTED arc
edit, not a composition test.** `5856475254` items 1-2 name the first
two; P1-K's writer's committed-pin measurement found the other five.
Every one is admitted IN PRINCIPLE — no further ruling is needed before
T047 lands them — but each still needs a GUARD-CODE mechanism this PR
records the NEED for and does not itself supply:
- `scripts/route_extension.py` — openDox-code#40 (T010, `0f10b1f5`)
changed the blob from `34802071…` to `7781665d…` (62817 bytes,
`sha256:d81124e62dba9df33abe44f3eb467188c98156f002cc7a92e297cd689da87515`),
so both carved replicas of the route-extension seam were stale. **260
of the 267 committed-pin reds share this ONE cause**
(`AttributeError: module 'route_extension' has no attribute
'collect_handler_contributions'`), across 11 files including both
`COMPOSITION_TESTS` paths above (an ordinary edit inside a composition
each already admits, not a new cause). T047's resync (`4303e67c`)
cures every one. openxFactory's copy is a
`not_moved / replicated_at_destination` row
(`docs/opendox-carve-manifest.yaml:2993-2996`) whose ONLY field is
`evidence:` — verified directly on #1181's resync commit: the row is
LEFT UNTOUCHED, no `edits:` block added. R1Q22 (a) removes the need for
a separate ruling before the resync; it does not by itself make
F11.1's guard admit the path, and the row's `edits:` grammar (RULED
Q-L7 (a)) would in any case only cover lines permitted to diverge from
the blob AT THE CARVE COMMIT, narrower than a wholesale resync.
openXdox-code's twin replica has already LANDED the same resync
(openXdox-code#29, merged `d84b5048`), re-verified directly on that
repo's `main` today at `6158151e`.
- `scripts/sync-notebooklm-books.py` — its `--session-ref` path now calls
`register_openxfactory()` before reaching
`workbench.session_documents` (`4303e67c`, the same commit as the
resync above). No carve-manifest row, no current surface.
- `scripts/ideation_dashboard/dashboard_refresh_lane.py` and
`tests/ideation-dashboard/test_dashboard_source_seal.py` (paired): two
cases broke when openxFactory#1166 merged with T046 —
`opendox_host.seams()` imports four modules the seal's
`RENDER_UNIT_IMPORTS`/`RENDER_LEG_MODULES` didn't yet name. Fixed
(`b05175f7`) by adding all four. **Red at ANY pin** — a standing gap
#1166 left, found only because this measurement ran the whole suite.
- `tests/openxdox_pin/test_openxdox_pin_verifier.py::test_ruling_q7_two_direct_upstreams_in_lockstep` —
a snapshot literal that its own comment says moves on every pin bump.
- `docs/opendox-carve-admissions.yaml` and
`tests/carve_arrival/test_verify_carve_arrival.py` (paired): the
arrivals registry gains `created:` entries for every file this PR
newly places under a declared surface, and its own verifying suite
moves with it.
**UNRESOLVED, plainly**: no guard-code mechanism exists yet for any of
these seven. F11.1's falsifier, as it stands, still checks only batch A's
original two-path `COMPOSITION_TESTS` set (item 1 above widens it to
four); it has no branch that admits a `route_extension.py`-shaped or
`sync-notebooklm-books.py`-shaped edit at all. T045, T093 and T094 (or a
further ruling, where a mechanism needs Brett's word) must choose how the
guard admits these seven before T047 can pass F11.1 clean — this PR
records only that each edit is admitted IN PRINCIPLE, and why, not the
mechanism, and does not itself close that gap.
5. **A carried-over risk, recorded and not actioned** (T035's "Notes for the
destinations," none of which blocked T035 itself): openxFactory's OWN
`tests/hermeticity.py` runs the same `find_spec` seam-probe SHAPE T035
just retired in openDox-code's copy; it resolves today only because
`scripts/ideation_dashboard/` still sits in this tree. No phase-1 task
removes that directory, so nothing acts on this now — T035's own words
are the flag for whichever future task does.
Once T045, T093 and T094 land it, `COMPOSITION_TESTS` reads (unchanged in
SIZE from batch A's own first proposal, though not in content):
COMPOSITION_TESTS = {
"tests/ideation-dashboard/test_extension_point_parity.py", # batch A
"tests/ideation-dashboard/test_serve_column_split.py", # batch A
"tests/ideation-dashboard/test_authoring_classify_derivation.py", # P1-K (#1181)
"tests/ideation-dashboard/test_doxbench_status_exemption.py", # P1-K (#1181)
}
This bookkeeping amendment does not itself touch the executable Python in
11.1's falsifier — it still checks batch A's two-path `COMPOSITION_TESTS`
set until T045, T093 and T094 land the widened one. No requirement or
scenario text is touched, and no box is added or removed.
Every fact above (blobs, byte counts, digests, PR/merge states, node-id
counts) was verified directly against each repository and against P1-K's
writer's `PROGRESS-T047.md`, not merely quoted from a PR body.
**Review history** (so the next reader doesn't have to reconstruct it): six
Copilot rounds so far, all found and fixed real issues — a stale
description/count/heading (round 1); an overclaimed "no new declared
surface" for the two admitted arc edits when no guard mechanism actually
exists yet (round 2); an overbroad admission of a non-composition test into
a permanent allow-list, reversed (round 3); a moved-versus-added case count
(round 4, superseded outright by the committed-pin restructure above — those
cases no longer join `COMPOSITION_TESTS` at all); this description having
fallen out of sync with the task text's final classification (round 5); and
this same round-5 review's second half — this description read "nothing is
still open" where the guard-code mechanism for 7 admitted edits plainly is
still open — fixed by qualifying the opening claim to the measurement only
and adding an explicit UNRESOLVED callout at item 4 (round 6, this
revision). Every thread replied to with evidence and resolved.
**Ruled**: R1Q2 (a), R1Q22 (a), `5817152735`; the specific paths and edits,
`5856475254` and T035's own hand-off (openDox-code#51); this batch's own
landing shape, `5856475254` finding 3; drafted ahead per the speed-up
ruling, `5857365170`.
**Claim**: `#656` comment
[5857465385](#656 (comment)).
**Landed inputs, verified directly (not just quoted):**
- T034 → openDox-code#50 → `71b631bc`
- T035 → openDox-code#51 → `80acead1`
- T039 → openDox#13 → `663ac683` (pins `code` to `2d116415`)
- T044 → openXdox-code#33 → `6158151e`
- P1-K → openxFactory#1181, committed-pin run T1 (266 failed/1 error) and run
T4 (8886 passed/0 failed at head `f79a72f3`)
- openXdox-code's route_extension.py resync → #29 → merged `d84b5048`; still
present at `main` `6158151e`
Validated from the openxFactory root, at this branch's head (merges current
`main` `e369cb25` in):
- `OPENSPEC_TELEMETRY=0 openspec validate add-neutral-product-standalone-operability --strict` → `Change 'add-neutral-product-standalone-operability' is valid`
- `python3 scripts/validate-openspec-cli-pin.py --all` → `Totals: 110 passed, 1 failed (111 items)`; that one finding is the pre-existing dispositioned exception `add-chain-attestation` (accepted by Brett Heap, 2026-09-05) — 0 UNDISPOSITIONED failures, identical to `main`.
- `python3 scripts/doc-health.py --single-repo .` → report **byte-identical** to the same run on `main` `e369cb25` (detached-HEAD comparison), 0 new regressions.
This PR touches only `openspec/changes/add-neutral-product-standalone-operability/tasks.md`, so it lands under a Rule 6 `LANDING`/`LANDED` window; the holder's lander merges it. No `Arc:` trailer (R1Q20 (a)), no closing keyword.
Batch E lands BEFORE T047. The holder posts READY.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lane: openxfactory-5 (openXfactory-5)
Held for
DRAFT — held for Brett Heap's landing word to lane openXfactory-5 (lands together with #1164 / Omnigent-Install#322).
Taken over
Lane openXfactory-5 took this PR over on 2026-09-27 from lane openxfactory-4's released state, as the incoming lane lane 4's handoff named:
Everything below "What was broken" is lane openxfactory-4's text as of
2c4520e7, except the part of Evidence headed as this lane's. What changed since then, each change test-first (the new test failed at the commit before it):52f341b7: the intake requires a fullvalidator_revision, and the seal refuses a validator with no product revision or no openXdox leg to hold it to (Copilot threadPRRT_kwDOTAvnrs6mEqv5). The test stand-in validator is now a committed product tree.e88ea23c: a real directory at--seal-result-outis removed (rmtree, following no link), so the planted-path refusal is written rather thanunknown(the review's "Previously missed" item). The path is bounded: its directories resolve inside--repo-root, where the record step reads the result, and its name is a.jsonfile.8a20c6eb: each recorded verdict is held to its exit code (validatedwith 0,not-conformantwith 1, as a realint), at the intake and at the seal. This mirrors opensoft/xFactory#526 threadPRRT_kwDOTK9OtM6mEotr.7d142ac1: the validator unit's corpus-side schemas must be the bytessource_headholds (threadPRRT_kwDOTAvnrs6mXKyz). 49 of the real unit's 56 sources come from the corpus checkout.113c2dd8: each product module the render unit imports by name is required at the intake and by the leg sealer (threadPRRT_kwDOTAvnrs6mXKy7). The set is held to anastread of the entry and its bootstrap.40d6aa18: the seal result's directory is held by a handle from before sealed code runs, and a replaced directory refuses the seal (threadPRRT_kwDOTAvnrs6mXVdo).146f624c: the recipe is written the way the manifest is (threadPRRT_kwDOTAvnrs6mXZ53).recipe/is made exclusively, relative to the seal directory as created, and opened without following a link. The Dockerfile is createdO_EXCL|O_NOFOLLOW. At40d6aa18a link or a hard link planted there had a host file overwritten.cdc59289: merge ofmain4663e9e8(21 commits, none of them touching this PR's files).09a8e5ac: tests only. These are the cases the mutation check found no test reached: a copy standing in for the seal directory, and a link swapped in just asrecipe/is made.a895e270: a seal phase that could not write its own seal result now fails its step (threadPRRT_kwDOTAvnrs6mXs7Z). It returnsSEAL_RESULT_UNWRITTEN_EXIT(3), and the step's defaultbash -estops beforesealedis read. A result path the lane cannot clear refuses the seal before sealed code runs. The record step reads the result only after a seal step that succeeded. At09a8e5ac, a plantedsealed: trueleft where the lane could not remove it was read by the workflow. This is the one exception to the lane's exit-0 contract, and bothmainand the wrapper name it.Review state at
a895e270:5329070938, ata895e270.PRRT_kwDOTAvnrs6mXXw7: a false positive. The render's--outputis the absolute scratch path.PRRT_kwDOTAvnrs6mXs7M: a false positive. The--recursivecomment sits above the test's slice, and the test passes.PRRT_kwDOTAvnrs6mXq1R,PRRT_kwDOTAvnrs6mXs7R,PRRT_kwDOTAvnrs6mXs7XandPRRT_kwDOTAvnrs6mX2ts: each needs a sealed process that outlives the lane. Such a process could as well rewrite the seal tree and its manifest, so it is closed by containing the sealed runs, not by any change to the result file. That class predates this PR (main's probe already runs the sealed validator) and is proposed as a change of its own.PRRT_kwDOTAvnrs6mX2tk:--seal-outconfinement, out of scope for this PR by the coordinator's ruling.pythonsecurity:S8707findings remain, at_create_new_fileand_open_directory, both reached through the unconfined--seal-out. SonarCloud is not a required check, and--seal-outconfinement is out of scope for this PR.seal-2.2.0-abf77701.patch) is not folded in here. It belongs to the Served dashboard image recipe (Omnigent-Install) cannot start since the openDox shed: serve.py path gone #1164 recipe PR.This is openxFactory's half of the repair tracked in #1161. The nightly dashboard refresh has been broken end to end since the split-opendox § 5.2 shed (
cc4ae9d3). The aggregation's worker child is the other half; its PR follows in opensoft/xFactory.57af6927). The branch is based on it.openspec/changes/and not the README OpenSpec Records block, so there is no landing window.add-nightly-dashboard-refreshalready ratified: the sealed, credential-free child that renders and gates--strict.What was broken
The breaks were measured on opensoft/xFactory run 35947804907 (2026-09-24):
CarveReachUnavailable.ideation_dashboard.cli, which left at the shed (No module named ideation_dashboard.cli).What this changes
scripts/ideation-dashboard-cli.py. The host entry is new, the command-line twin ofideation-dashboard-serve.py. It runs:carved_reach.require()/install();opendox_host.register_openxfactory();opendox.cli.main.It is the bootstrap
test_cli_column_split.pyalready calls the only lawful way to reach the command line post-shed.opendox_host's list of callers now names it.The seal carries the render unit (manifest
2.1.0).codelegs (src/only). The legs are archived at the commits the sealedsource_headpins, read from that tree.verify_sealrequires the unit whole.Pre-dispatch
--strictgate. The parent runs the child's own render from the seal, then the sealed validator over it under--strict, before anything is dispatched.GH_/GITHUB_/GIT_/ACTIONS_/SSH_variables;HOME;StrictGateRejected. It is recorded asstrict_failedin the seal result and inrefresh-status.json, with the validator's findings, and the next report lists them.The finalize job mounts
openDoxandopenXdoxand each product'sspecandcodeleg. Each is named explicitly (not--recursive) and guarded like the openXwallet/MedxEHR inits.preparereads neither product. Run 35947804907 shows no failure or skip there for their absence, so it inits neither.Decision scope.
CORPUS_BAKED_PATHSnow names the render unit. The Dockerfile's copied set is kept separately asCORPUS_COPIED_PATHS. A product re-pin is corpus movement. Against the live pin (8-path scope) this costs exactly one rebuild, and a test measures it.The parent-side
--strictgate cannot block the rest of the nightlycontinue-on-error: true.So the gate is not made report-only.
Today it will reject, naming #1159. Measured by sealing this checkout for real (real legs, real resolver, real render from the seal):
The measured timings were: legs 0.3 s, validator 0.5 s, index 3.1 s, render plus
--strict10.0 s, and 22 s for the whole seal. No corpus data is edited, suppressed or dispositioned.Lockstep with the aggregation's pin
The reusable workflow runs at openxFactory
main, while its scripts come from the aggregation's openxFactory gitlink (dd2466adtoday). Once this PR lands:--seal-result-inon only when the seal result saysstrict_failed, which an older pin never writes.PIN.yamltogether), the 2.1.0 seal and the child reader meet.Host gates (not authored here)
heartbeat_labels_missing): lane openxfactory-1, opensoft/xFactory#480.amend-rider-registry-push-channel).Not fixed here
ideation_dashboard/serve.py, so a refreshed image could not start. That is for Brett's word. A post-shed recipe will also need the two product legs in the child's build context.cl-plane-1refs. It is reported by the gate as above, not changed.Evidence
This lane's guards since
2c4520e7(lane openXfactory-5), ata895e270pytest-suiteata895e270(run 36298806173):selected=9063 passed=9057 skipped=6 failures=0 errors=0. Onmain8421603a(run 36299035404) it isselected=8890 passed=8884 skipped=6 failures=0 errors=0: 173 more passing, and the skips unchanged. Every required check is success. SonarCloud (not required) fails with the two--seal-outfindings above.doc-health-reusable.yml: 349 passed.2c4520e7was reverted by hand in this lane's clone, one at a time. Thentests/ideation-dashboard/test_dashboard_source_seal.pyran in full (the unmutated baseline is 246 passed), and the failing tests were recorded. The file was then restored and checked clean against git. The tests that kill M7c, M7d and M7e were added in09a8e5ac, after the analysis for this table found that no test reached those guards.validator_revisionverifiestest_verify_refuses_a_validator_revision_that_is_not_a_full_revision[null],test_verify_refuses_the_1x_layout_that_sealed_the_validator_in_the_corpustest_a_validator_the_seal_cannot_hold_to_the_render_is_refused[no-product-tree]test_a_validator_the_seal_cannot_hold_to_the_render_is_refused[no-validator-leg]leg_revisionis compared tootest_verify_refuses_a_seal_whose_render_unit_is_not_wholevalidator_revisionis compared tootest_verify_refuses_a_validator_revision_that_is_not_a_full_revision[abbreviated, empty, not-a-string]2c4520e7test_a_seal_result_sealed_code_planted_refuses_the_seal[a-directory-holding-links-out],test_a_stale_seal_result_is_cleared_before_the_seal_runs[a-directory-holding-links-out],test_clearing_the_result_path_follows_no_linktest_a_seal_result_path_the_lane_may_not_clear_is_refused[beside-the-checkout, climbing-out-of-it, through-a-link-inside-it].jsonfiletest_a_seal_result_path_the_lane_may_not_clear_is_refused[not-a-json-file]rmtreeruns where it could follow a swapped linktest_clearing_the_result_path_follows_no_linktest_a_stale_seal_result_is_cleared_before_the_seal_runs[a-link-to-a-workspace-file]test_verify_holds_the_probe_verdict_to_its_exit_code(8 cases)test_verify_holds_the_precheck_pass_to_its_exit_code(6 cases)boolexit code admitted (True == 1)test_verify_holds_the_probe_verdict_to_its_exit_code[a-bool-false, a-bool-true],test_verify_holds_the_precheck_pass_to_its_exit_code[a-bool]test_a_probe_verdict_that_does_not_pair_with_its_exit_code_is_refused[validated-with-exit-2, not-conformant-with-exit-0]test_a_pre_dispatch_verdict_that_does_not_pair_is_refused[validated-with-exit-2]okneed not agree with the pre-dispatch outcometest_a_pre_dispatch_verdict_that_does_not_pair_is_refused[a-finding-passed-as-ok]source_headtest_a_unit_schema_from_the_corpus_must_be_the_sealed_revisions[another-revision, a-revision-without-it]HEAD, notsource_headtest_a_unit_schema_from_the_corpus_must_be_the_sealed_revisions[another-revision, a-revision-without-it]test_verify_refuses_a_leg_without_a_module_the_render_unit_imports(8 cases)test_a_leg_without_a_module_the_render_unit_imports_is_refused[openDox-domain_profile.py, openXdox-serve_gate.py]serve_gate.pydropped from the named modulestest_the_render_leg_modules_are_what_the_render_unit_imports_by_name, plus the two[openXdox-serve_gate.py]casestest_a_result_directory_sealed_code_replaced_is_never_written_throughtest_a_result_directory_sealed_code_replaced_is_never_written_throughtest_a_seal_result_path_the_lane_may_not_clear_is_refused[in-a-directory-that-does-not-exist]mkdir(exist_ok=True)+write_textagaintest_the_recipe_is_never_written_through_anything_sealed_code_left(6 cases),test_the_recipe_directory_is_held_from_its_making_to_the_recipe(2 cases)recipe/adopted, not refusedtest_the_recipe_is_never_written_through_anything_sealed_code_left[a-directory-of-its-own]recipe/opened following a linktest_the_recipe_directory_is_held_from_its_making_to_the_recipe[a-link-out-for-its-directory]test_the_recipe_is_never_written_through_anything_sealed_code_left[the-seal-directory-replaced-by-a-copy]test_the_recipe_directory_is_held_from_its_making_to_the_recipe[a-link-out-at-the-recipe]test_the_recipe_is_never_written_through_anything_sealed_code_left[the-seal-directory-replaced]test_a_seal_result_the_lane_cannot_write_fails_the_step,test_a_seal_result_path_the_lane_cannot_clear_seals_nothing,test_a_seal_result_path_the_lane_may_not_clear_is_refused(6 cases)test_a_seal_result_path_the_lane_cannot_clear_seals_nothingtest_a_seal_result_the_lane_cannot_write_fails_the_step,test_a_seal_result_path_the_lane_cannot_clear_seals_nothingtest_a_seal_result_path_the_lane_cannot_clear_seals_nothingtest_the_record_step_reads_the_seal_result_only_after_a_seal_step_that_succeeded|| true) in the seal steptest_the_seal_steps_failure_is_what_withholds_an_unwritten_resultLane openxfactory-4's evidence, as of
2c4520e7tests/ideation-dashboard, every test module that readsdoc-health-reusable.yml,tests/domain_profile,tests/snapshot_equivalenceandtests/pin_registrations.verify_seal, and the 2.0 and 1.x layouts;verify_sealrender unit, a unit narrower than the render, the conditional hand-off, the strict-verdict gate,--no-validateand the validator/leg coherence.pytest-suitegate andvalidate-openspec-cli-pin.py --allare compared withmainin a follow-up comment.🤖 Generated with Claude Code
Summary by Sourcery
Restore nightly dashboard refresh by sealing and validating the pinned post-shed render unit before dispatch.
New Features:
Bug Fixes:
Enhancements:
CI:
Tests: