Skip to content

T036 + T031: the required check runs the whole suite; README states why it was narrowed (plan 034) - #52

Merged
brettheap merged 10 commits into
mainfrom
build/034-p1g-t036-whole-suite-in-ci
Sep 27, 2026
Merged

brettheap merged 10 commits into
mainfrom
build/034-p1g-t036-whole-suite-in-ci

Conversation

@brettheap

@brettheap brettheap commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Plan 034, task T036, with T031 in the same PR (its "Lands with: T036"), slice P1-G (the whole suite in CI). The plan is specs/034-opendox-standalone-operation/tasks.md at opensoft/openxFactory main a9e7db75; its T031, T035, T036 and T037 entries are unchanged since 133e37d9. This PR realizes boxes 2.5, 9.1 and 9.2a (a required check now runs T030) of the ratified add-neutral-product-standalone-operability, and T031 realizes 2.6.

What changes

.github/workflows/validate.yml. The three pytest steps are gone, with their file lists, their comment blocks and every line that named the flag that switched the conftest chain off. The one required job now does four things:

  1. It installs .[runtime,test] under the lock, with --only-binary :all:. That is R1Q8 (a)'s install, the one the runtime job used.
  2. It runs a postgres:16 service.
  3. It runs python -m pytest -q --junitxml=pytest-report.xml with the DSN exported. No file list: testpaths is the suite.
  4. It pins the triple from that one report.

The runtime job is folded in, which T036 allows ("may then be folded in"). It was advisory under RULED Q-R3 (5701772032) "until a separate DECLARED act", and R1Q8 (a) is that act. Keeping it would run every DB-backed case twice, once required and once not. Under CI those cases fail rather than skip (tests_runtime/conftest.py), so a job whose service did not start is red, not green.

pyproject.toml.

  • testpaths = ["tests", "tests_runtime"].
  • The test extra gains opendox[runtime]. F9.1 installs .[test] alone, so without the runtime packages half of tests_runtime/ would fail under CI and skip elsewhere. The extra is named rather than copied, so the runtime's list is still declared once.
  • The runtime extra's comment now says why the required job may install it. tests_runtime/test_runtime_surface.py measures the import-weight contract in a fresh interpreter by what lands in sys.modules, so a leak is named with the extra installed and fails to import without it.

Pin the triple.

  • It reads one report. A missing report now stops the step with one refusal that names the file, instead of failing a zero read from nothing against every floor.
  • The skip refusal's message names no test file, which F9.1's second assertion requires. It also no longer lists "an edit to one of the three explicit lists", because there are none.
  • The floors are CI's own reading: 2481 / 2468, and SKIPPED exactly 13. Each move names its run:
head run (job) CI printed why it moved
56d51edc 36333569456 (108660020012) selected=2459 passed=2446 skipped=13 T035's merge. Its 289 cases are the whole difference from the pre-T035 local replica (2170 / 2157)
485e085a 36334996991 (108664042314) selected=2471 passed=2458 skipped=13 twelve run-count cases (below)
db3e8a4f 36337919108 (108672216615) selected=2481 passed=2468 skipped=13 ten more, for runs hidden inside a wrapper
13383a6f 36338192590 (108672985586) selected=2481 passed=2468 skipped=13, margin 0 the floors at that reading
1808146a 36339036146 (108675365224) selected=2481 passed=2468 skipped=13, margin 0 this head; since 13383a6f, comments, docstrings and one assertion message only

The pins that held the old shape, rewritten for this one:

  • tests/test_triple_pin.py covers one report. It gains test_the_pin_reads_the_report_the_pytest_step_writes, which holds the --junitxml target and REPORTS equal, so a rename of either cannot leave the pin reading a file nothing writes.
  • tests_runtime/test_deploy_shape.py:
    • test_the_workflow_declares_the_required_job_and_its_steps: one job, and one pytest run across every step, with no positional argument after it.
    • The run count is _pytest_runs. It splits each script on every shell separator (&&, ||, ;, a pipe, a background &, a newline, a subshell and a command substitution). It counts the word pytest wherever it stands in a command, so env, timeout, uv run, xargs, sh -c, bash -c and pytest.main( cannot hide a second run. It errs toward counting, and says so. test_the_run_count_sees_every_shell_separator drives the count over 22 scripts, including the two that pin that direction.
    • test_the_required_job_supplies_a_postgres_service_and_the_extras.
    • test_the_required_job_installs_the_runtime_and_test_extras, which replaces …installs_only_the_test_extra. Its docstring gives the measured reason the old premise no longer holds.
    • The lock case counts one workflow install instead of two.

Prose the fold made false:

  • tests_runtime/conftest.py's header, and its _skip_or_fail text and message;
  • docs/runtime.md: the tree line, the § 8 table, and § 9's two residue bullets, now CLOSED;
  • the header of constraints-cpython312-linux.txt, comments only, with no pin moved;
  • every statement that the required job installs .[test] and not .[runtime], or that the case runs in "BOTH jobs". These are in src/opendox/runtime/__init__.py, config.py, db.py, identity.py, migrations.py (twice) and cli.py, and in tests_runtime/test_runtime_cli.py, test_runtime_surface.py, test_migration_shape.py, test_schema_shape.py, test_oidc_verifier.py, test_deploy_shape.py and test_local_git_adapter.py. There are two more in tests/test_consumer_reach.py, and one in a pyproject.toml comment. The import-weight contract itself is unchanged;
  • the three DB-backed modules' headers, which said they run in the runtime CI job: tests_runtime/test_api_endpoints.py, test_migrations_apply.py and test_repository_act.py. They run in validate, and under CI they fail rather than skip without a database;
  • the lock test's missing-lock message, which named "the three installs". There are two: the required job's and the image's.

T031, README.md: box 2.6. The paragraph gave the narrowing's reason as the openDox → openXdox dependency. It now says what validate runs (the whole suite, no exclusion), and that the live cause of the old narrowing was the carved code's reaches into ideation_dashboard. The dependency itself was inverted at import time first.

The falsifier: F9.1 (openDox-code), both assertions, with the database DSN exported

This is F9.1 verbatim from #1144's tasks.md, after one line that exports the DSN, quoted, the way the job does. The database is a private postgres:16 container. The run is at this head, 1808146a:

export OPENDOX_TEST_DATABASE_URL='postgresql://opendox:opendox@host.docker.internal:55471/opendox'
set -euo pipefail
W=$(mktemp -d)
python -m venv --clear "$W/v9"
. "$W/v9/bin/activate"
pip install ".[test]"
python -m pytest -q                                   # NOT --noconftest, NOT a file list
test "$(grep -c -- --noconftest .github/workflows/validate.yml)" -eq 0
python - <<'EOF' … EOF                                # the named-file check, verbatim

It exits 0:

2468 passed, 13 skipped, 1 warning in 313.37s (0:05:13)

It exited 0 at 13383a6f too, with the same counts. That was before the last two commits, which change comments, docstrings and one assertion message only.

pip install ".[test]" brings FastAPI, psycopg, PyJWT and httpx through opendox[runtime]. The flag count is 0. The named-file check finds no tests/test_*.py or tests_runtime/test_*.py path outside a comment.

The 13 skips are all in tests/:

  • 2 in test_binding_stylesheets.py: T037's pair, the two that need openXdox's modules or its sheets;
  • 8 in test_doxbench_bridge_live.py: no omp harness;
  • 3 in test_openprofiler_broker_e2e.py: no broker binary.

tests_runtime/ skips none with the database up.

Planted mutations, each caught

Each plant is one change to a scratch copy of the head. A control run of the targets passes first.

T036's seven:

  1. The pytest step writes its report under another name: the join case fails.
  2. The pytest step names a test file: the shape case fails.
  3. A second pytest run chained onto the step: the shape case fails.
  4. The job installs .[test] alone: both extras cases fail.
  5. The service is renamed away: the service case fails.
  6. The pytest step names a bare tests_runtime: the shape case fails.
  7. The pin sums on past a missing report: the missing-report case fails.

Nine more, for the run count. A second run is added after the step with each of these, and each turns the shape case red:

  • ||
  • | (into xargs pytest)
  • a bare pytest
  • env CI=true pytest
  • timeout 600 pytest
  • uv run pytest
  • sh -c "python -m pytest …"
  • bash -c 'pytest -q'
  • python -c '… pytest.main([]) …'

The first version of the count read || as one run, and the second read the env form as one.

Copilot's reviews

head overview what it found where it went
4e0056d4 Changes recommended collect_ignore still listed the seven T035 landed and was merged at 56d51edc; answered with CI's reading, resolved
83fb977e Changes recommended the count missed ||; two stale ".[test] alone" statements fixed at 485e085a; the same claim swept everywhere else (comment 5857867635); resolved
485e085a Needs a closer look runs hidden in a wrapper fixed at db3e8a4f
b8623bf9 Needs a closer look env CI=true pytest; this body's floors did not match the file fixed at db3e8a4f; this body now carries the table above
13383a6f Changes recommended this body still carried the pre-T035 figures; a note above the separators still described the first count this body rewritten; the note corrected at ab862032
ab862032 Needs a closer look three DB-backed headers still named the runtime job; two statements in test_deploy_shape.py fixed at 1808146a, with the rest of that claim's instances
1808146a Approval recommended no findings

Two timing-sensitive cases, seen red once each on this machine

Neither case is new, and neither file is changed here. T036 brings both into the required job for the first time. CI ran both green at every head above.

  • tests_runtime/test_migrations_apply.py::test_the_draft_page_budget_does_not_read_the_bodies_it_sizes asserts a timing ratio above 4x. It read 3.87x once, under a full local run against a Docker Postgres. It passes alone 3 of 3. It was in the advisory runtime job before.
  • tests/test_model_provider_broker.py::test_a_token_past_its_declared_expiry_is_discarded_and_re_minted (T035's module) gives a token a wall-clock expiry one second in the past, at whole-second precision. It failed once in an F9.1 run. One of five module runs right after also went red, and I did not capture which case; the next 42 module runs were all green. The code compares now >= expires_at, so a red needs the wall clock to step back more than a second, which this WSL2 host can do. A follow-up could widen the margin (time.time() - 3600); that file is not this task's.

Left as it is, and why

  • Test docstrings that call a module "--noconftest safe, like every file validate runs today" (about 25 files under tests/). Each file is still safe to run with no conftest, so the claim about the file holds. Only the "validate runs today" framing is dated. A sweep through 25 carved files is not this task's to make, and F9.1 counts validate.yml alone.
  • src/opendox/cli.py:1120 names the flag about openXdox-code's own validate, not this one's.

Landing

  • T037 follows this PR, and P1-R (the openDox root pin) waits on T037.
  • Squash or merge, never rebase. Each commit carries both trailers, and so does this body.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

🤖 Generated with Claude Code

brettheap and others added 2 commits September 27, 2026 15:34
validate.yml's three pytest steps, their file lists and the comment
blocks beside them are gone; so is every line that named the flag that
switched the conftest chain off. The required job runs
`python -m pytest -q`, and pyproject.toml's testpaths (tests,
tests_runtime) is the suite (#1144 requirement 9, FR-006).

RULED R1Q8 (a): tests_runtime is part of the whole suite, with
PostgreSQL in the required job. The advisory runtime job is folded in,
as T036 allows: validate now carries its postgres:16 service, its
.[runtime,test] install and its DSN, so the DB-backed cases run once, in
the required check, and fail rather than skip under CI.

- pyproject.toml: testpaths = ["tests", "tests_runtime"]; the test extra
  names opendox[runtime], because F9.1 installs .[test] alone.
- Pin the triple reads one report. A missing report is the only refusal
  that fires then. The skip message names no test file (F9.1's second
  assertion). The floors are PROVISIONAL (0/0/0) until CI's own reading
  at the merged head.
- tests/test_triple_pin.py: one report, and a new case that holds the
  report the pin reads equal to the one the pytest step writes.
- tests_runtime/test_deploy_shape.py: pins the one-job shape, the
  service and extras in the required job, and one locked install.
- Prose the fold made false: tests_runtime/conftest.py,
  test_runtime_surface.py, test_runtime_cli.py, docs/runtime.md and the
  lock's header.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…an 034 T031)

Box 2.6: README.md:37-42 gave the narrowing's reason as the openDox ->
openXdox dependency. That dependency was inverted at import time first;
the live cause was the carved code's reaches into ideation_dashboard.
T036 ends the narrowing, so the paragraph now says what validate runs
(the whole suite, no exclusion) and records the cause.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 27, 2026 15:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Land with T035 and preserve dependency-free import-contract coverage before approval.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Updates required CI to run the PostgreSQL-backed full test suite in one job, with revised dependency configuration, pinning tests, and documentation.

Changes:

  • Consolidates runtime coverage into the required workflow.
  • Adds runtime test paths and dependencies.
  • Updates report pinning, documentation, and workflow-shape tests.
File Reviewed changes
tests/​test_triple_pin.py Tests single-report pinning and missing-report handling.
tests_runtime/​test_runtime_surface.py Updates runtime CI behavior documentation.
tests_runtime/​test_runtime_cli.py Updates conftest-loading documentation.
tests_runtime/​test_deploy_shape.py Validates workflow structure and dependencies.
tests_runtime/​conftest.py Updates required-job runtime behavior.
README.md Documents whole-suite validation and rationale.
pyproject.toml Adds test paths and runtime dependencies.
docs/​runtime.md Updates runtime testing documentation.
constraints-cpython312-linux.txt Updates lock usage documentation.
.github/​workflows/​validate.yml Runs the full suite with PostgreSQL and pins one report.

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

Comment thread .github/workflows/validate.yml Resolved
T035 emptied collect_ignore, so the seven modules it repaired now join
the whole suite this branch's `validate` runs. The pins are re-read from
CI's own run over this merge, not derived.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 27, 2026 16:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Unresolved moderate findings affect dependency coverage and workflow-shape validation.

Review effort: Lite
Findings: 1 High severity

Open (1)

Run 36333569456 (job 108660020012) printed, over 56d51ed (main
80acead with T035's empty collect_ignore, merged into this change):

  triple: selected=2459 passed=2446 skipped=13 failures=0 errors=0

The floors move from the provisional local replica (2170 / 2157) to
2459 / 2446, and SKIPPED stays exactly 13. T035's 289 cases
(`tests/` 1571 -> 1860 passed) are the whole difference; that is a
check on the reading, not its source.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 27, 2026 16:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The workflow guard misses chained runs using ||, while runtime-extra coverage and several CI documentation statements remain stale.

Review effort: Lite
Findings: 2 High severity

Open (2)
Previously missed (2)

In code that hasn't changed since last review

Low severity Update stale validate job and dependency prose

tests_runtime/​test_runtime_cli.py:1278

This change updates the helper's description for the conftest chain, but the same file still says the required validate job installs .[test] alone and that this assertion runs in “BOTH jobs” (lines 1293-1298); the later live reproducer repeats that old claim at lines 1349-1353. After folding runtime into validate, those statements describe a nonexistent job and the wrong dependency set, so please update the remaining prose too.

Low severity Correct stale validate dependency documentation

tests_runtime/​test_runtime_surface.py:283

The updated description correctly names validate as the required job, but this file still has an earlier import-weight docstring saying that validate installs .[test] and not .[runtime] (lines 120-123). With the new workflow installing .[runtime,test], that statement is now false and undermines the contract this test documents; please update the remaining stale wording as part of this fold.

Comment thread tests_runtime/test_deploy_shape.py Resolved
… 034 T036)

From Copilot's review at 83fb977.

The one-run guard in tests_runtime/test_deploy_shape.py split a step's
script on `&&`, `;` and newlines only, so `python -m pytest ... ||
python -m pytest ...` read as one run: a failed first run followed by a
second, pinned one would have passed it. The count now splits on every
shell separator (`||`, a pipe, a background `&`, a subshell and a command
substitution as well; a redirection's `&` is not one) and also counts a
bare `pytest` command word. The new parametrized case
test_the_run_count_sees_every_shell_separator drives the count over
twelve scripts. Planted in the workflow, `||`, `|`, `|| pytest` and a
subshell pair each turn the shape case red; the old split counted the
`||` chain as one run.

Prose that still said the required `validate` job installs `.[test]`
alone is corrected. That covers the two places the review named
(tests_runtime/test_runtime_cli.py, tests_runtime/test_runtime_surface.py)
and the same claim wherever else it stood:
src/opendox/runtime/{__init__,config,db,migrations,cli}.py,
tests_runtime/{test_migration_shape,test_oidc_verifier,test_deploy_shape,
test_local_git_adapter}.py, tests/test_consumer_reach.py and a
pyproject.toml comment. The import-weight contract is unchanged:
test_runtime_surface.py measures it in a fresh interpreter, by the leak
it looks for, with the extra installed or not.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 27, 2026 16:55
@brettheap

Copy link
Copy Markdown
Contributor Author

Copilot's review at 83fb977e also listed two stale statements as "previously missed", outside any thread. Both are fixed in 485e085a.

  • tests_runtime/test_runtime_cli.py: three places. The hermetic probe's docstring said the required job installs .[test] alone and that the case "runs in BOTH jobs". The live reproducer's skip reason repeated the claim. A comment near line 577 said the required job "installs" .[test] alone; it now says "then installed".
  • tests_runtime/test_runtime_surface.py: the import-weight assertion's message said the stdlib-only modules import "under .[test] alone — which is what the leg's REQUIRED validate job installs". It now says "without the runtime extra".

The same claim, that the required job installs .[test] and not .[runtime], also stood in these places, and the same commit corrects each of them:

  • src/opendox/runtime/__init__.py, config.py, db.py, migrations.py (twice) and cli.py;
  • tests_runtime/test_migration_shape.py, test_oidc_verifier.py, test_deploy_shape.py and test_local_git_adapter.py;
  • tests/test_consumer_reach.py, and a comment in pyproject.toml.

The contract itself is unchanged. test_runtime_surface.py measures it in a fresh interpreter, by the leak it looks for, with the extra installed or not.

The whole suite at 485e085a, locally with the database, is 2458 passed, 13 skipped. The twelve new cases are the run-count controls. The floors move to CI's own reading at this head in the next commit.

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The workflow-shape guard can miss wrapped second pytest invocations; strengthen it and add mutation coverage before approval.

Review effort: Lite
Findings: None

Resolved since last review (2)

Run 36334996991 (job 108664042314) printed, over 485e085:

  triple: selected=2471 passed=2458 skipped=13 failures=0 errors=0
  pins:   selected>=2459 (margin 12) passed>=2446 (margin 12) skipped==13

The twelve are test_the_run_count_sees_every_shell_separator's cases,
added for Copilot's review at 83fb977. The floors move to CI's reading,
2471 / 2458, and SKIPPED stays exactly 13.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 27, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Workflow-shape coverage and runtime documentation need correction, and the stated collection floors must match the checked-in values.

Review effort: Lite
Findings: None

Previously missed (1)

In code that hasn't changed since last review

Medium severity Handle env-wrapped pytest commands in invocation counting

tests_runtime/​test_deploy_shape.py:124

_COMMAND_WORD_RUN only recognizes a bare pytest when it is the first command word (after NAME=value assignments). A valid command such as env CI=true pytest -q tests_runtime is not matched, so chaining that second invocation onto the workflow step would still produce one counted run and evade the invariant this guard is intended to enforce. Handle common wrappers such as env or use a shell-aware command parser before relying on this count.

…n 034 T036)

From Copilot's reviews at 485e085 and b8623bf. The run count
recognized a bare `pytest` only as a command's first word, so
`env CI=true pytest -q tests_runtime` chained onto the step still read
as one run. It now counts the word wherever it stands in a command:
`python -m pytest`, a bare `pytest`, `env`, `timeout`, `uv run` and
`xargs` wrappers, `.venv/bin/pytest`, `sh -c` and `bash -c` programs,
and `pytest.main(` in a `python -c` one. The word inside a longer name
(`pytest-report.xml`, `pytest.ini`) is not counted.

It errs toward counting, and the parametrized case pins that direction:
a sentence that names the word bare counts. So the Pin step's
missing-report message now says "the test run" instead. The case now
drives the count over 22 scripts. Planted in the workflow, nine chained
or wrapped second runs each turn the shape case red. The previous
counter counted the review's `env` case as one run.

Also corrected: a comment in tests_runtime/test_runtime_cli.py that
still said the required job does not install the `runtime` extra.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 27, 2026 17:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The import-weight guard is ineffective while runtime dependencies are installed, and two documentation inconsistencies remain.

Review effort: Lite
Findings: None

Run 36337919108 (job 108672216615) printed, over db3e8a4:

  triple: selected=2481 passed=2468 skipped=13 failures=0 errors=0
  pins:   selected>=2471 (margin 10) passed>=2458 (margin 10) skipped==13

The ten are the wrapped-run scripts test_the_run_count_sees_every_shell_separator
gained for Copilot's reviews at 485e085 and b8623bf. The floors move to
CI's reading, 2481 / 2468, and SKIPPED stays exactly 13.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 27, 2026 17:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The required CI floors do not match the stated final-head measurements, and related workflow documentation needs correction.

Review effort: Lite
Findings: 1 High severity

Open (1)
Previously missed (1)

In code that hasn't changed since last review

Low severity Update parser explanation to reflect || command splitting

tests_runtime/​test_deploy_shape.py:114

This new explanatory block contradicts the implementation and the parametrized cases below: _COMMAND_SEPARATORS does split on ||, so the example is two commands and is intentionally caught by the one-run assertion. Please replace this leftover description of the old three-separator parser so future edits do not misunderstand the guard's coverage.

Comment thread .github/workflows/validate.yml Resolved
From Copilot's review at 13383a6: the note above `_COMMAND_SEPARATORS`
read as if the split still took only `&&`, `;` and newlines. It now says
the split takes every separator, and that the three-separator reading
was the first version's. Comment only; no count moves.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 27, 2026 17:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The broad CI and test-shape changes have unresolved consistency and guard-coverage findings requiring human review.

Review effort: Lite
Findings: None

Resolved since last review (1)
Previously missed (2)

In code that hasn't changed since last review

Low severity Update stale runtime-job references in suite documentation

docs/​runtime.md:648

This new table correctly says all ten suites now run in validate, but several suite module docstrings still describe the removed runtime job (tests_runtime/test_migrations_apply.py:3, test_api_endpoints.py:7, and test_repository_act.py:9; test_deploy_shape.py:881 also says the required job lacks the runtime extra). That leaves contradictory operator/developer guidance after this CI change; update those references to the required job and current extras.

Low severity Update stale missing-lock diagnostic for current workflow

tests_runtime/​test_deploy_shape.py:2375

This function now correctly counts two consumers after folding the DB-backed job, but its missing-lock diagnostic at line 2385 still says “the three installs below name it.” A failure will therefore report the old, now-false workflow shape; update that message to describe the required workflow and the image.

From Copilot's review at ab86203, and a wider sweep for the same
claims:
- tests_runtime/test_api_endpoints.py, test_migrations_apply.py and
  test_repository_act.py said they run in the `runtime` CI job. They
  run in the required `validate` job, and fail rather than skip there
  without a database.
- tests_runtime/test_deploy_shape.py said the REQUIRED job does not
  install the `runtime` extra, and its missing-lock message named
  "the three installs". There are two: the required job's and the
  image's.
- src/opendox/runtime/identity.py, tests_runtime/test_runtime_surface.py,
  tests_runtime/test_schema_shape.py and tests/test_consumer_reach.py
  said the same thing about the required job's install.

Docstrings, comments and one assertion message only; no count moves.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 27, 2026 18:00
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No blocking issues were found; the remaining feedback is a minor documentation nit.

Review effort: Lite
Findings: None

@brettheap
brettheap marked this pull request as ready for review September 27, 2026 18:11
@brettheap

Copy link
Copy Markdown
Contributor Author

READY at 1808146 — Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters

@brettheap
brettheap merged commit 5519433 into main Sep 27, 2026
4 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

LANDED — lane openxfactory-4, 2026-09-27T18:13:00Z, PR #52 → 5519433 (opensoft/openDox-code main; plain gate)

Brett: land the phase 1 PRs when green

brettheap added a commit that referenced this pull request Sep 27, 2026
T036 landed as a squash of the commits this branch already carries, so
main's tree equals 1808146's, the head it landed from. Three regions of
the Pin step conflicted, where this branch moves what T036 set: the
rise-rule sentence, the floors' heading, and the floors themselves. They
resolve to this branch's side. The merged tree is byte-identical to this
branch's tree before the merge (edbecc0).

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 27, 2026
…ition (plan 034) (#55)

Plan 034, task **T037**, slice P1-G (the whole suite in CI). The plan is `specs/034-opendox-standalone-operation/tasks.md` at opensoft/openxFactory `main` `a9e7db75`; T037's entry is unchanged since `133e37d9`. This PR realizes box **9.4**, openDox's half, of the ratified `add-neutral-product-standalone-operability`: "Restore the margin, and stop the skips carrying the gap".

- **Ruled:** R1Q22 (a), as the task entry cites. See question 3 below about the "carved" wording.
- **Claim:** openxFactory#656 comment `5856501803`.
- **After:** T036 (#52), landed as `55194335`. This branch merged that `main` at `952af2cb`, with no force-push. The merged tree is byte-identical to the branch's tree before the merge, because #52 landed as a squash of the commits this branch already carried.

The task entry reads: *"Restore the margin over the floors. The two skips that mirror openXdox's gap assert for real."* FR-006 adds: *"Behaviour that needs both legs SHALL be declared integration tests at the declared composition"* and *"The margins SHALL be restored, with no skip carrying the gap."*

## The two skips

Of the 13 skips T036's whole suite pins, two carry the gap. Both are in `tests/test_binding_stylesheets.py`, a created file:

| case | why it skipped, on every run of this leg |
|---|---|
| `test_the_gate_exclusive_set_is_re_derived_where_the_modules_are_present` | "no assembly has placed openXdox's six contributed modules in this bundle (RULED Q5)" |
| `test_no_contributed_sheet_declares_a_design_token` | "no assembly has placed a contributed stylesheet in this bundle (RULED Q5); openDox ships none of its own" |

These are the "mirror image" the proposal names. openXdox's six skip for want of `doc_health`; these two skip for want of openXdox. In a lone openDox checkout they cannot assert for real. The modules and sheets are openXdox's package data, and openDox-code cannot install openXdox, because openXdox depends on openDox. So each needs both legs, and FR-006 sends that to the declared composition: openXdox-code, whose `pyproject.toml` pins this leg.

The other 11 skips are 8 in `test_doxbench_bridge_live.py` (no `omp` harness) and 3 in `test_openprofiler_broker_e2e.py` (no broker binary, another product's build artefact). Neither set needs openXdox, and neither is this task's.

## What this PR moves, and where each case goes

**Stays, and now asserts on every run:** `test_opendox_own_bundle_names_no_gate_exclusive_class`. This was the openDox-only loop inside the re-derivation: openDox's own bundle (its views, `app.js` and `index.html`, comments blanked, the six excluded by name) names none of the 54 gate-loop classes. It needs no assembly. Measured over a corpus of 1.46 million characters, it holds.

**Added, for Copilot's review at `7f98b46f`:** `test_the_own_bundle_corpus_leaves_out_an_assembled_contributed_module`. No run of this leg's suite has the six in its bundle, so the by-name exclusion was load-bearing and never exercised in the suite. The case assembles a throwaway bundle (one view of openDox's own, `app.js`, `index.html`, and all six modules, each naming a gate-only class). It asserts that the corpus reads the view and none of the six.

**Leaves this leg:**

| case | destination | state |
|---|---|---|
| `test_the_gate_exclusive_set_is_re_derived_where_the_modules_are_present`, the half that reads the six | openXdox-code `tests/integration/` (T042). There the six are placed in the pinned openDox's bundle on every run, so the derivation asserts for real: no class the six alone name is left in `styles.css`, and each of the 54 is named by one of the six | to land in T042 |
| `test_a_partial_assembly_is_a_failure_and_not_a_skip`, with `_assembled_views()` | the same place, with the derivation. The rule existed so that a partial assembly could not hide behind that case's skip | to land in T042 |
| `test_no_contributed_sheet_declares_a_design_token` | openXdox-code `tests/test_gate_loop_views.py::test_no_contributed_sheet_declares_a_design_token`, over every sheet that leg declares, on its required list. This leg's version also scanned an assembled bundle's `views/**/*.css` recursively; that scan goes to T042 with the derivation | already there at openXdox-code `e28930bf` |
| `test_the_design_token_guard_sees_an_inline_declaration`, with `_declared_st_tokens()` | openXdox-code `tests/test_gate_loop_views.py::test_the_design_token_guard_sees_an_inline_declaration`, with the same regex | already there at `e28930bf` |

T049 checks that each arrived. The file's closing comment carries the same list.

**Refactored, no behaviour change:** the orphan scan's corpus and namer become `_own_bundle_text()` and `_class_namer()`, shared with the new case. Old and new give the same corpus, byte for byte, and the same answer on 628 tokens.

## The margin

**`EXPECT_SKIPPED` 13 → 11**, and the floors move three below CI's reading instead of sitting on it. That is the reference implementation's rule, openxFactory `pytest-suite.yml`: "three below the lower of the two greens". The trade is stated in the pin, as the reference states it. A loss of up to three collected tests does not red on the floors alone. It still reds on the exact SKIPPED pin if the lost tests became skips, and on failures or errors if they failed.

**Read from CI's two greens of one tree**, and read twice:

| tree | runs (jobs) | both printed | floors |
|---|---|---|---|
| `8c03966a` | 36339183129 (108675776512), re-run (108676424965) | `selected=2478 passed=2467 skipped=11` | `2475 / 2464` |
| `3dd66679` | 36340595113 (108679779797), re-run (108680366270) | `selected=2479 passed=2468 skipped=11` | `2476 / 2465`, one higher for the exclusion case |

No jitter was measured between any two runs of one tree. A local replica read the same, which is a check, not the source. At `b6b07351`, where the floors moved to `2476 / 2465`, run 36341050224 (job 108681071640) printed the same triple with `margin 3` for both floors. So did run 36341364941 (job 108681982884) at this head, `5664fec3`, whose one later commit changes comments only.

## Measured

- `tests/test_binding_stylesheets.py`: 18 passed, 0 skipped. It was 18 passed and 2 skipped: four cases left and two arrived.
- The whole suite on CI: `2479 / 2468 / 11`. That is T036's `2481 / 2468 / 13` less 2 selected and 2 skipped, with PASSED unchanged.
- Planted, each caught (the controls stay green):
  - `app.js` emits `"gatebar"`: the new case fails;
  - a view builds `"refusalpanel-" + k`: it fails on the prefix form;
  - `index.html` carries `class="swb-notice"`: it fails;
  - a comment naming `gatebar` is a control, and stays green;
  - an assembled `gate.js` in the bundle is a control, and stays green, because it is excluded by name;
  - with that exclusion removed and `gate.js` placed, it fails, and so does the new exclusion case on its own throwaway bundle;
  - a class left behind in `styles.css`: the refactored orphan scan fails.

## Also here: T036's docstrings, from Copilot's review of this PR

Thirteen test files still said, in the present tense, that `validate` runs them from an explicit list with `--noconftest`. That list ended with T036. Each claim now says the job ran the file that way until plan 034 T036 (`f0d6170e`, docstrings and comments only, no count moves). Where the property still holds, the file still says it is `--noconftest` safe. `src/opendox/cli.py:1120` is left as it is, because its `validate` is openXdox-code's, and that one still runs two shape suites that way.

## Copilot's reviews of this PR

| head | overview | what it found | where it went |
|---|---|---|---|
| `8c03966a` | Changes recommended | the provisional local pin; present-tense `--noconftest` claims in test docstrings | pins read from CI's two greens (`15923378`); thirteen files swept (`f0d6170e`); both resolved |
| `952af2cb` | Needs a closer look | one more present-tense paragraph, in `test_intent_binding_dom.py` | fixed at `7f98b46f`, resolved |
| `7f98b46f` | Needs a closer look | the by-name exclusion was never exercised in the suite | the exclusion case, `3dd66679`; floors raised by one from two more runs, `b6b07351` |
| `3dd66679` | Changes recommended | the pin's arithmetic still read four out and one in | fixed at `5664fec3`, answered on the thread |
| `5664fec3` | Needs a closer look, no findings | "Composition checks are removed before their T042 replacements exist in this checkout" | that is questions 2 and 3 below |

## Questions for Brett

1. **Which reading of "Restore the margin".** I read it as floors sitting below CI's reading, with a stated slack, on the reference's rule. That reverses a choice this repository made on 2026-09-18 (PR #31: "a floor with slack in it is a floor that stops catching the regression it was set to catch"). The other reading keeps the floors on the reading, and treats the margin as the two skips becoming passes. That fails here, because the relocations lower SELECTED. With a different figure or reading, the change is the two numbers and a paragraph.
2. **T042's text lists only T035's relocations.** P1-J's slice row says "P1-G's relocated modules". This PR adds two cases to T042's list: the derivation half and the partial-assembly rule. T042 needs to take them, or a batch needs to add them.
3. **openXdox-code has no `tests/integration/` yet.** T042 creates it. Until then, the two to-land rows above exist only as this list, and T049 is what checks that they arrive.
4. **"The two skips sit in carved test files" (T037's entry).** `tests/test_binding_stylesheets.py` is a created file with no carve-manifest row (RULED OQ-C), so R1Q22 (a) is not needed for it.

## Landing

- T036 (#52) has landed, and `main` is merged in.
- P1-R (the openDox root pin) waits on this task.
- Squash or merge, never rebase. Each commit carries both trailers, and so does this body.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 27, 2026
…what is true now (plan 034)

Copilot's review of 0f42f67 left three threads.

- r4117298988 (neutral_projection.py): a `topics:` header that listed
  nothing fell back to the derived topics, which contradicted the rule
  the module's own docstring states. The header is now a declaration
  even when it is empty. The document carries no topic, nothing is
  derived for it, and it joins no group. That follows the holder's
  literal-copy principle for title and summary. New case:
  test_an_empty_topics_header_declares_no_topic. With the old rule
  restored, it fails.
- r4117299013 and r4117299033 (tests/test_plain_documents_fixture.py,
  T050's file, merged here from #53): its docstring said T052 and T054
  had not landed. It also said the suite was run by node id outside
  validate's explicit list. T054 makes the first false. The second has
  been false since T036 (#52), when validate began running the whole
  suite. Both paragraphs, and the two phrases beside them ("a future
  topic-based grouping pass", "will require"), now say what is true.
  Only the docstring changes.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 27, 2026
T052's branch was cut from main 80acead. main has since landed T036 (the
required check runs the whole suite) and T037 (the margin). This takes
main at 2d11641, so the PR is measured against the whole-suite check it
will be judged by. There is no conflict: T052's five files and main's
changes are disjoint.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 29, 2026
Since T036 (#52), `validate` runs the whole suite (`python -m pytest -q`
over the configured testpaths) instead of an explicit list of files. So the
paragraph that said this suite was "not yet wired" into that list, and ran
by node id, has been false since T036 landed. It now says that the required
check collects this suite like every other.

The text is #57's correction of the same paragraph, byte for byte. Copilot
raised it on #57 (r4117299033). It is taken here because the paragraph is
already false at main, so it must not land with #53. When #57 takes this
head, that hunk merges clean.

The opening paragraph ("T052 and T054 ... have not landed") stays. It is
true until T054 lands, and #57 corrects it.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 29, 2026
Plan 034, task **T050**, slice P2-F (fixtures). Plan read at opensoft/openxFactory `main` `133e37d9` (`specs/034-opendox-standalone-operation/tasks.md` § "Phase 2 writer slices"), after #1167 (the phase-1 gate) merged, and re-read at `main` `9d2e5bc3`: T050's entry is unchanged. Authored ahead under the phase-2 draft-ahead ruling (`openxFactory#656` comment `5857365170`, Brett Heap: *"Start phase 2's independent tasks (Recommended)"* and *"Draft ahead in phase 1"*).

**T049 has landed** (openxFactory#1204 → `9d2e5bc3`, 2026-09-29T16:08:37Z), so phase 2 is open. T050 is `After: T049, T009`, and both are done. It is the one phase-2 openDox-code task that does not wait for T053. This PR stays a draft until the holder un-drafts it.

Claim: `openxFactory#656` comment [`5857512479`](opensoft/openXfactory#656 (comment)).

## What this realizes

Box **5.0** — `tests/fixtures/plain-documents/`, a handful of `.md` documents spread across the six stations, per RULED **R1Q13 (a) with (c)** (`5850003126`): *"A neutral front-matter key names the stage role... and a document that declares nothing is a source, and groups derive from shared topics. The fixture yields at least one group."*

- Three **sources** (no `stage:` header at all): `notes-rain-barrel-leak.md` and `notes-rain-barrel-overflow.md` share the phrase "rain barrel" verbatim, so a future topic-based grouping pass (T054) has a pair to find; `notes-toolshed-inventory.md` shares no topic with them, so the fixture doesn't group by accident.
- One document each declaring `stage: grouping`, `stage: candidate`, `stage: selection`, `stage: submission`, `stage: completion` — the exact `opendox.display_profile.STAGE_ROLES` spellings.
- Every document carries the small neutral field set the task line names (`title`, `summary`).

## Falsifier

T050's task line: *"A test keeps the fixture free of those words... **Falsifier**: the vocabulary test."* `tests/test_plain_documents_fixture.py`, passing:

```
$ python -m pytest -q tests/test_plain_documents_fixture.py --noconftest
....................                                                     [100%]
20 passed in 0.09s
```

It asserts, over every file in the fixture:
1. no occurrence (case-insensitive, whole word) of the eight controlled `Status:` words this project's own root `CLAUDE.md` names (`brainstorm | staged | draft | ratified | standard | superseded | retired | record`) or the change/spec/delta nouns (`change(s)`, `spec(s)`, `delta(s)`, `openspec`, `proposal(s)`) — the same two families `tests/test_default_profile.py`, `tests/test_web_boundary.py` and `tests/test_display_facet.py` already carry, copied on the same footing (a fixture must be readable as plain prose with no import, exactly as the eventual acceptance harness reads it);
2. every one of the six stations is occupied, with exactly one document per explicit station;
3. at least two (but not all) sources share `"rain barrel"`.

## Updated after T036 + T031 landed (#52) — merged main in, no conflicts

Opened against a pre-T036 `main`. `main` then landed **T036 + T031** ("the required check runs the whole suite"): `validate.yml`'s explicit pytest file list is gone, `python -m pytest -q` now runs `testpaths` (`tests`, `tests_runtime`) whole, and there is no narrowed list left to join. Merged `main` (`5519433`) into this branch, no conflicts (only new files were added here). Consequences:

- `tests/test_plain_documents_fixture.py` is picked up by the required `validate` check automatically now — no separate wiring step needed, and the earlier note below about joining an explicit list no longer applies.
- Re-ran locally post-merge with the full conftest chain active (not `--noconftest`): `python -m pytest -q tests/test_plain_documents_fixture.py` → `20 passed in 0.39s`.
- `validate`'s new "Pin the triple" step floors `selected`/`passed` at `>=` and pins `skipped` at `==13` exactly. This PR only adds 20 new, passing, non-skipped cases, which raises `selected`/`passed` (floors permit a rise) and leaves `skipped` at 13 (unchanged) — so the pin does not need to move.

Original proof, still valid at the pre-merge head (`d5d1aa4e`), retained for the record:

```
$ python -m pytest -q tests/test_plain_documents_fixture.py --noconftest
....................                                                     [100%]
20 passed in 0.09s
```

```
$ python -m pytest -q tests/test_leg_shape.py tests/test_consumer_reach.py tests/test_profile_registration.py tests/test_web_boundary.py tests/test_intent_binding_shape.py tests/test_view_registry.py tests/test_split_route_tails.py tests/test_source_core_arm.py tests/test_gate_loop_contributed.py tests/test_display_facet.py tests/test_account_menu_dom.py tests/test_doc_wheel.py tests/test_doxbench_accessibility.py tests/test_doxbench_context_panes.py tests/test_doxbench_document_abstract.py tests/test_doxbench_hash.py tests/test_doxbench_knowledge.py tests/test_doxbench_privacy.py tests/test_doxbench_proposal_discard.py tests/test_doxbench_proposals.py tests/test_doxbench_state.py tests/test_doxbench_thread_switch.py tests/test_doxbench_workspace.py tests/test_intent_binding_dom.py tests/test_lens_labels_at_scale.py tests/test_smoke_signals.py tests/test_wheel_paint_and_reach.py tests/test_binding_stylesheets.py tests/test_conformance_corpus.py tests/test_triple_pin.py --noconftest
772 passed, 2 skipped in 30.70s
```

(That allowlist was `validate.yml`'s own explicit file list at the pre-merge head; it no longer exists as such post-T036, superseded by the whole-suite run above.)

## Updated after T049 landed: main merged in, and one stale paragraph corrected

- **Merged `main` `2d116415`** (T037, #55) as `8defc37`. The branch was one commit behind. The merge touches no file this PR adds.
- **`521de95`: the module docstring's T036 paragraph.** It said this suite was "not yet wired" into `validate.yml`'s explicit list and ran by node id. That has been false since T036 (#52) made `validate` run the whole suite. It now says that the required check collects this suite like every other. The text is #57's correction of the same paragraph, byte for byte. Copilot raised it there (r4117299033). It is taken here because the paragraph is already false at `main`. When #57 takes this head, that hunk merges clean.
- The opening sentence ("T052 and T054 ... have not landed") is unchanged. It stays true until T054 lands, and #57 corrects it.

At `521de95`, locally, as CI runs it (`CI=true`, `LANG=C.UTF-8`, PostgreSQL 16, `-e ".[runtime,test]"` under the lock):

```
$ python -m pytest -q tests/test_plain_documents_fixture.py
20 passed in 0.27s
$ python -m pytest -q --junitxml=…          # the whole suite, as `validate` runs it
2488 passed, 11 skipped, 2 warnings in 199.75s (0:03:19)
triple: selected=2499 passed=2488 skipped=11 failures=0 errors=0
```

That is `main`'s triple plus this PR's 20 passing cases. SKIPPED stays at the pinned 11.

## Review rounds after T049: Copilot, two threads, both taken

The claim above, that `notes-toolshed-inventory.md` "shares no topic with them", was stronger than the case that held it. The case showed only that the note lacks the literal phrase "rain barrel".

- **r4135803935 (at `521de95c`)**: a fixture edit that gave the sources another shared topic would still pass. `7028f613` compared the words of each document's name and direct naming between the two sides.
- **r4135883800 (at `7028f613`)**: that still missed a topic shared through a third document. If both sides name the same other document, both inherit its name words. `4ba410ff` takes it.
  - The case now derives each source's whole topic set: the words of its name, plus the name words of every other fixture document it names, whatever that document's station.
  - It then compares whole sets, which catches a common name word, one source naming the other, and both naming the same third document.
  - Only "the" and "and" are dropped, so the comparison is stricter than a topic rule with a longer stop list, never looser.
- **The same review's overview** asked that the intended source declaration and count be enforced. The module docstring states both, so the cases now hold them:
  - no document declares `stage: source`, because a source here is a document that declares nothing (R1Q13 (a) with (c));
  - there are three sources, two of which share "rain barrel".

Six plants each turn the cases red at `4ba410ff`:

| plant | at `4ba410ff` | at `7028f613` |
|---|---|---|
| "garden" in the toolshed title and the leak title | red | red |
| the toolshed note names `notes-rain-barrel-leak.md` | red | red |
| the overflow note names "What is actually in the toolshed" | red | red |
| both the toolshed note and the leak note name `grouping-compost-corner.md` | red | passed |
| `stage: source` on the toolshed note | red | red |
| a fourth source | red | passed |

- The real fixture passes, still 20 cases, so the triple does not move.
- The projection's own reading, that the toolshed note lands in no group, needs T054's topic rule, which is not in this tree. #57's next round adds that assertion to T054's projection test.

## Sibling task T051

T051 (`tests/fixtures/malformed`) is this same slice (P2-F). It depends on **P2-S/T053** (the neutral snapshot schema, `openDox-spec`), which was unclaimed when this PR opened, so T051 was held rather than guessed at. T053 is now stable (`openDox-spec#16` at `cd49eb25`, per the holder), and T051 is opened as its own DRAFT PR.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 29, 2026
Plan 034, task **T051**, slice P2-F (fixtures). Plan read at opensoft/openxFactory `main` `133e37d9` (`specs/034-opendox-standalone-operation/tasks.md` § "Phase 2 writer slices"), and re-read at `main` `9d2e5bc3`: T051's entry is unchanged. Authored ahead under the phase-2 draft-ahead ruling (`openxFactory#656` comment `5857365170`).

**T049 has landed** (openxFactory#1204 → `9d2e5bc3`), so phase 2 is open. T051 is `After: T050, T053`, and **both have landed**: #53 (T050) → `dc3765dd`, and openDox-spec#16 (T053) → `f7ee3c76`. The landed `contracts/schemas/opendox-snapshot.schema.yaml` is byte for byte the file at `cd49eb25` that this fixture was built against (sha256 `f9e3e111…`), so the fixture and `EXPECTED_RULE` stand as written. This PR stays a draft until the holder un-drafts it.

Claim: `openxFactory#656` comment [`5857512479`](opensoft/openXfactory#656 (comment)) (P2-F, both T050 and T051). Held on opening until T053 (P2-S) was readable; the coordinator confirmed it as **`openDox-spec#16` at `cd49eb25`** (32 rules) and directed the exact rule to violate.

## What this realizes

Box **7.0** — `tests/fixtures/malformed`: exactly one violation of a rule of the neutral snapshot schema T053 adds (R1Q12 (a)), and an `EXPECTED_RULE` file holding that rule's identifier.

Read `openDox-spec#16`'s schema (`contracts/schemas/opendox-snapshot.schema.yaml`) and its own examples directly rather than guessing:

- `documents[].title` and `documents[].summary` are each `"type": ["string", "null"], "minLength": 1`, under `x-rule: title-and-summary-are-text` — *"A document's title and summary are each non-empty text, or null."* openDox-spec's own `opendox-snapshot-no-front-matter.example.yaml` (VALID) shows `title: null, summary: null` for a document with no declared front matter at all; its `negative/opendox-snapshot-title-and-summary-are-text.negative.yaml` (INVALID) is that same shape with one document's `title` changed to `""` — an empty string is the one value that is neither `null` nor non-empty text.
- The holder's decision: T054 (the neutral projection, not yet built) will copy a document's declared `title`/`summary` **verbatim**, never coercing an empty declared value to `null` and never excluding the document because of it — so a plain document whose `title:` header line is present-but-empty carries that exact defect through into the generated snapshot.

This fixture realizes that at the plain-repository level, the only level T051 owns (T054/T057's projection and validator do not exist yet — this PR adds no code, only fixture data + the sentinel file, matching T050's footing before it):

- `tests/fixtures/malformed/notes-bee-boxes.md` — an ordinary, fully valid source document (non-empty `title:` and `summary:`).
- `tests/fixtures/malformed/notes-empty-title.md` — `title:` declared with nothing after the colon (present in the header, empty string once parsed) and an ordinary, valid `summary:`. Exactly one property on exactly one document is wrong; verified by hand-parsing both files with the same `Name: value`-up-to-blank-line convention `LocalGitCorpus._header_of` and T050's fixture use:

```
$ python3 -c "
from pathlib import Path
for name in ['notes-bee-boxes.md', 'notes-empty-title.md']:
    text = Path('tests/fixtures/malformed', name).read_text()
    lines = text.splitlines(); header = {}
    for line in lines:
        if not line.strip(): break
        n, sep, v = line.partition(':')
        if sep: header[n.strip()] = v.strip()
    print(name, '->', header)
"
notes-bee-boxes.md -> {'title': 'Setting up two new bee boxes', 'summary': 'Where the new hives will go, and how far from the path.'}
notes-empty-title.md -> {'title': '', 'summary': 'A short summary is here; only the title line is declared and left empty.'}
```
- `tests/fixtures/malformed/EXPECTED_RULE` — one line, `title-and-summary-are-text`, the holder-directed rule identifier verbatim.

No banned vocabulary either (not this task's own falsifier, but checked against T050's word lists for consistency — zero hits in both `.md` files).

## Falsifier

T051's task line names none of its own: **"Falsifier: used by F7.2"** (a later, not-yet-built falsifier — `tests/test_plain_documents_fixture.py`-style coverage does not apply here). This PR is fixture-only, on the same footing T050 was before it.

## The repo's own suite, unaffected

Only new files under `tests/fixtures/malformed/` are added, and nothing existing changed. This branch is current with `main` `2d116415` (T037, #55), merged as `44dcc3a` after T049 landed. Since T036 (#52) the whole suite runs as one `validate` job, with no explicit file list. New fixture data under `tests/fixtures/` is not collected by pytest (it carries no `test_*.py`), so `validate`'s "Pin the triple" step reads `main`'s triple here. Since T037 its floors are `MIN_SELECTED=2476` and `MIN_PASSED=2465`, with `EXPECT_SKIPPED==11`. The triple it reads at this branch's head is in its PR checks.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 29, 2026
…erator (plan 034) (#54)

**Authored ahead, as a phase-2 draft.** Brett's RULING on openxFactory#656, comment `5857365170` ("Start phase 2's independent tasks"), names T052 among the phase-2 tasks authored as drafts. **T049 has landed** (openxFactory#1204 → `9d2e5bc3`), so phase 2 is open. T052 is `After: T049, T009, T053`, and **T053 has landed**: openDox-spec#16 → `f7ee3c76`. This PR stays a draft until the holder un-drafts it.

Plan 034, **T052 (5.4: declare the generator seam)**, phase-2 slice **P2-G**. The plan was read at openxFactory `main` `133e37d9` (`specs/034-opendox-standalone-operation/tasks.md`), and re-read at `9d2e5bc3`, where T052's entry is unchanged. The slice is claimed on openxFactory#656, comment `5857453864`. The branch was cut from openDox-code `main` `80acead1`, and `main` `2d116415` (T036 #52, T037 #55) is merged in.

## What it declares

Box 5.4 of #1144 reads *"DECLARE THE GENERATOR SEAM — it does not exist and `CorpusAdapter` is not it"*, and asks for three things. The new module is `src/opendox/generator_seam.py`, beside `domain_profile.py`.

- **The operation handed over**: `generate(repo_root, repository, *, source_revision=None, generated_at=None, **inputs)`, which answers the snapshot, a `dict`.
  - These are the four arguments openDox's generate verbs already hand a generator.
  - A governed generator's own extras, such as `project_register_source` and `possibles_source`, travel as **declared inputs**. So the seam neither drops them nor names them.
- **The registration point, beside `domain_profile.register()`**. A host calls `opendox.generator_seam.register(<SnapshotGenerator>)` once, at process start. Entry points call `register_default(...)`, which registers only where nothing is registered. `current()`, `is_registered()` and `unregister()` complete the registry, in `domain_profile`'s shape.
- **The conformance a contributed generator must meet**. `SnapshotGenerator(contract, generate, inputs=())` declares it, and `generate()` enforces it:
  1. It declares the contract it writes, which is the `kind` of every snapshot it answers.
  2. Its operation takes the seam's call, and **each declared input is optional**, because the seam passes an input only when the caller has a value for it. The seam checks this against the signature when the declaration is made. It binds the call once with every declared input given and once with none given, and every call the seam can make lies between the two.
  3. It declares every further input it reads. An undeclared input is refused before the generator is called (`GeneratorInputRefused`), and an input given as `None` is simply not passed.
  4. It answers a `dict` whose `kind` is its declared contract and whose `schema_version` is an integer. Anything else is refused (`GeneratorNotConformant`) and not handed on. So two generators that write two contracts can never both claim to be the one conformant implementation, which is the failure 5.4 was raised against.
  5. It is deterministic over its inputs. That is declared, and each generator's own suite proves it.
- **The conformance clause names T053's neutral kind for openDox's own generator**. `NEUTRAL_SNAPSHOT_KIND = "opendox-snapshot"` equals the `kind` const of openDox-spec#16's `contracts/schemas/opendox-snapshot.schema.yaml`. It was read at `bcff47d4`, and it is unchanged at #16's last head `cd49eb25` and in the landed `f7ee3c76` (`"kind": {"x-rule": "kind-is-opendox-snapshot", "const": "opendox-snapshot"}`). `register_default()` refuses a declaration that writes any other contract. A contributor declares its own contract, as openXdox's governed generator will.
- **The entry points register openDox's own generator where no host has** (R1Q10 (a), `5850003126`, in R1Q3 (a)'s pattern). `cli.build_parser()`, `cli.main()`, `serve.build_server()` and `serve.main()` each gain one line, `generator_seam.register_default(default_generator.GENERATOR)`, beside their registrations of the default profile and the default home corpus. As for the profile:
  - a bare process that builds nothing still meets `GeneratorNotRegistered`, which names the seam and the call;
  - a host registration made before anything has been generated from the default replaces it;
  - one made after a snapshot has been generated from it is refused (`GeneratorAlreadyRegistered`), for the reason RN-1 (a) gives for the profile;
  - one made **while** a snapshot is being generated from it is refused too, because that snapshot would come back after the swap;
  - a generation that fails, or whose answer the seam refuses, wrote nothing. So it records nothing, and a host still replaces the default after it.
- **Each registration keeps its own records.** Every change of registration goes through one helper that moves a registration serial on and starts the records afresh: `register()`, `register_default()` where it registers, and `unregister()`. A generation carries the serial it began under. So one that outlives its registration records nothing against the next one, even a later registration of the same declaration, and its caller still gets its snapshot.
- **One lock.** The registry's bookkeeping is kept under one `threading.Lock`, because `serve.py`'s `ThreadingHTTPServer` answers each request on a thread of its own. `generate()` holds it only to resolve and mark, and to record the end, and never across the generator's own call. So a generator may register, unregister or generate from inside its own call.
- **`CorpusAdapter` stays closed at six members.** A test pins `OPERATIONS` to the six and the protocol to `OPERATIONS`.

## Why openDox's own generator refuses until T054

`src/opendox/default_generator.py` declares openDox's own generator: contract `opendox-snapshot`, and no inputs. Its `generate()` raises `NeutralProjectionNotBuilt`, which names itself and T054, and it generates nothing. It never answers an empty snapshot. Because that refusal writes nothing, it shuts no host out.

That follows from the plan's order:
- T054, the neutral projection, is `After: T050, T052, T053`.
- T054 edits neither `cli.py` nor `serve.py`, whose single-writer chains run T052, then T055 (plan.md; W2-14 put T052 in both chains).
- So the registration calls are this task's, and the projection behind them is T054's.

No verb reaches the seam yet. The generate verbs still call the consumer's generator through `consumer_reach` (`cli.py:90`) until T055 routes them, and T055 is after T054. The refusal is therefore reachable only by a library caller that uses the seam directly.

## Files

| file | change |
|---|---|
| `src/opendox/generator_seam.py` | new: the seam, its declaration type and its refusals |
| `src/opendox/default_generator.py` | new: openDox's own generator's declaration |
| `tests/test_generator_seam.py` | new: the seam tests (71 cases) |
| `src/opendox/cli.py` | +9: one import, and one registration line in each of `build_parser()` and `main()` |
| `src/opendox/serve.py` | +9: one import, and one registration line in each of `build_server()` and `main()` |

The PR stays out of `conftest.py`, `pyproject.toml`, `validate.yml`, `README.md` and every pin.

## Review round 1: Copilot at `834f8ead`, two findings, both taken

Commit `4ca45d27` addresses both findings.

- **r4116122374, a declared input the operation cannot do without.** The declaration bound the call with every declared input given. But `generate()` drops a `None` input, so an operation that *requires* a declared input was accepted, and then failed with a raw `TypeError` whenever the option was unset. The declaration now binds the call a second time with none of the declared inputs given, and refuses such an operation when it is declared. The regression case is `test_a_declared_input_the_operation_cannot_do_without_is_refused`, which covers the input required by keyword and by position. openXdox's `generate_snapshot` takes both of its extras with a default of `None`, so T059's declaration passes both binds. `test_a_governed_generators_shape_is_declarable` now also generates through that shape with its inputs unset, and with one of them set.
- **r4116122388, the default's window closed before its operation ran.** The generation from the default was recorded before the call. So a failed generation, openDox's own pre-T054 refusal included, shut every host out although it wrote nothing. That contradicted the documented rule. The record is now made only once a conformant snapshot comes back. The property the early record gave, that no registration slips in during a first generation, is kept by a count of the generations from the default that are under way. That count and the record are updated under one lock, never held across the call.
  - The regression cases:
    - `test_openDoxs_own_generator_refuses_until_its_projection_lands` is Copilot's exact scenario: the real default refuses, then a host registers.
    - `test_a_generation_from_the_default_that_wrote_nothing_is_not_a_generation` runs twice: once for an operation that raises, and once for an answer the seam refuses.
    - `test_a_host_is_refused_while_a_generation_from_the_default_is_under_way` runs three times: the generation answers, raises, or answers another kind. It runs on a thread, and the host is refused during the generation every time. Afterwards the host is refused only after the conformant answer.
    - `test_a_generator_may_register_or_generate_from_inside_its_own_call` covers nesting, registering from inside the call, and a default swapped out from inside its own call.
  - The concurrency and re-entrancy cases run in a process of their own with a time limit. So a lock held across a call fails them, rather than hanging the suite.

**The new cases pin the findings.** The new test file was run against `834f8ead`'s seam logic. A one-line shim adds the counter attribute, so that the fixture can save it, and the old logic never reads it. 8 of the 66 go red: the declared-input case, the pre-T054 default case, the two wrote-nothing cases, the three under-way cases and the re-entrant case.

## Review round 2: the seam finding in Copilot's overview of openDox-code#57

T054's branch (#57) stacks on this one. Copilot's overview of #57 at `c0747e96` said that *"replacement-generator tracking can reject valid registrations"*. It opened no thread, so there was no scenario to answer. The claim is **real**. There are two cases, and both were reproduced at `4ca45d27`:

1. **The count of generations under way was global**, not tied to the registration it counted. `unregister()` drops a default while a generation from it still runs. Then a fresh default is registered, and a host over it is refused with *"a snapshot is being generated from it now"*, although nothing is.
2. **A generation that outlived its registration recorded its late answer against a fresh registration of the same declaration.** That shut the fresh window, against `unregister()`'s own promise that the record goes with the registration.

Commit `bce09c50` addresses both, in the form described under **Each registration keeps its own records** above. Commit `97b5b01f` moves one new docstring sentence so that #57 takes this head without a conflict. A trial merge of this head into #57's head `5a6fe637` is clean, and 94 seam and projection cases pass in the merged tree.

- **The regression case** is `test_a_generation_that_outlives_its_registration_touches_no_later_one`. It runs in four variants, in a process of its own. The follower is another default or the same declaration, and the host registers either while the generation runs or after it answers.
  - Against `4ca45d27`'s seam logic, with a one-line shim for the new serial, **3 of the 4 go red**.
  - The fourth (a host after the answer, over another default) was already right there, and it guards the new scoping. M12 turns all four red.
- `test_unregister_clears_the_default_and_its_generation` now registers the same default afresh before the host tries. So it also catches a helper that forgets to reset the record (M15).

## Review round 3: Copilot at `bce09c50`, one finding, taken

- **r4117421102: `current()` read `_registered` twice**, once for its `None` check and once for its answer. A thread that unregistered between the two reads made it answer `None` after passing the check.
  - `generate()` calls it while holding the seam's lock, so that path was safe, but a bare caller was not.
  - Commit `8d507c5b` makes it read the registration into a local once and answer that local. It takes no lock of its own, because `generate()` holds the seam's lock, which is not re-entrant, when it calls it.
- **The regression case** is `test_current_answers_the_registration_it_checked`. A line tracer forces the interleaving deterministically: it drops the registration before every line of `current()` after its first. Against `97b5b01f`'s seam logic it is red, with *"current() answered None after passing its check"*. Mutation M16 is caught by it.
- #57 still takes this head with no conflict. In a trial merge into #57's head `5a6fe637`, 95 seam and projection cases pass.

## The falsifier: the seam tests

T052's falsifier is "seam tests; F5.2 through T059 and T061", so F5.2 is quoted in T059's and T061's PRs, not here. These runs used Python 3.12.3 and pytest 8.4.2, in a venv installed exactly as `validate` installs: `--only-binary :all: -c constraints-cpython312-linux.txt -e ".[runtime,test]"`.

```
$ python -m pytest -q tests/test_generator_seam.py                 # root conftest
71 passed in 1.09s
$ python -m pytest -q tests/test_generator_seam.py --noconftest    # the file stands alone too
71 passed in 0.86s
```

**Red at `main`.** This test file dropped into a `git archive` of `main` `2d116415` fails to collect. The seam does not exist there, which is 5.4's own first line.

```
E   ImportError: cannot import name 'default_generator' from 'opendox' (…/src/opendox/__init__.py)
1 error in 0.24s
```

**The tests bite.** Each of sixteen mutations of the seam or an entry point, run in a throwaway copy of this branch, turns at least one case red:

| mutation | red |
|---|---|
| M1 `serve.build_server()` loses its registration | 2 |
| M2 `cli.build_parser()` loses its registration | 2 |
| M3 `current()` falls back to openDox's own generator | 3 |
| M4 `generate()` drops the kind check | 4 |
| M5 `generate()` passes an undeclared input through | 2 |
| M6 `register()` always overwrites, as `register_home` does | 7 |
| M7 `register_default()` drops the neutral-contract clause | 1 |
| M8 a generation from the default is not recorded | 3 |
| M9 the default's generation is recorded before its call (r4116122388) | 5 |
| M10 a generation from the default is never marked under way | 7 |
| M11 declared inputs are bound only as given (r4116122374) | 1 |
| M12 a generation's end ignores which registration it began under (#57's overview) | 5 |
| M13 a generation under way does not refuse a host | 4 |
| M14 a change of registration keeps the count of generations under way | 5 |
| M15 a change of registration keeps the record of a generation | 2 |
| M16 `current()` reads the registration again to answer (r4117421102) | 1 |

## The repository's own checks

**`validate`, as it now runs.** Since T036 (#52), `validate` runs the whole suite in one `python -m pytest -q --junitxml=…`, then pins the triple. It was run that way here, at `main` `2d116415` and at this head, in venvs installed by its own install line, and the JUnit reports were diffed test by test. This machine has no Postgres, so the database-backed cases skip here where CI runs them. The local skip count is therefore 177 at both, where CI pins 11.

```
main 2d11641:  2302 passed, 177 skipped   (selected 2479, failures 0, errors 0)
this head:      2373 passed, 177 skipped   (selected 2550, failures 0, errors 0)
added: 71 (tests.test_generator_seam, all passed) · removed: 0 · changed outcome: 0
```

The skip count does not move, so CI's exact pin of 11 holds. The number selected rises by the 71 cases, above the floor of 2476.

**F4.1's scan** (`scan_deferred_reaches.py`, sha256 `fe116203…`, byte-identical to research.md's appendix). It prints `19 deferred reaches` at `main` `2d116415` and at this head. The two listings are identical apart from the line numbers the added lines shift. The two new modules make no reach, late or not, and a test asserts that too. `threading` is the standard library's.

## What the later tasks need from the seam

- **T054 (the neutral projection)** replaces `default_generator.generate()`'s refusal with the projection, and keeps its signature `(repo_root, repository, *, source_revision=None, generated_at=None)`. It returns `{"schema_version": 1, "kind": "opendox-snapshot", …}`, and its inputs stay `()` unless it declares one, which must then be optional. It also retires `NeutralProjectionNotBuilt` and `test_openDoxs_own_generator_refuses_until_its_projection_lands`. The stand-in cases keep the "a generation that wrote nothing shuts no host out" rule covered. Its in-process test can generate through `generator_seam.generate(...)` with `default_generator.GENERATOR` registered. #57 takes this head (`8d507c5b`) with no conflict, and it needs no change for review rounds 2 and 3. A suite that generates from the default should `unregister()` between cases, as #57's `tests/test_neutral_projection.py` does, because each registration keeps its own window.
- **T055 (serve and generate standalone)**:
  - It routes `cli.py`'s two `generate_snapshot` calls (`_generate_and_write`, `_gate_snapshot`) through `generator_seam.generate(repo_root, repository, source_revision=…, generated_at=…, project_register_source=…, possibles_source=…)`, and resolves per call rather than holding `current()`.
  - A `None` option is not passed. A given option the registered generator does not declare is refused, as `GeneratorInputRefused`, a `GeneratorSeamError` that `main()` can report.
  - Its openDox-default snapshot registry's regenerate goes through the same call. The seam's own bookkeeping is safe to call from the server's request threads.
  - Its validator lookup picks the schema by the snapshot's `kind`, which is the registered generator's `contract`.
  - Two reaches are not the generator's operation, and the seam deliberately does not carry them:
    - `branch_session.py:1568` reads `iter_changes` and `declared_origin_state`, governed change-enumeration helpers;
    - `cli.py`'s `is_rfc3339_datetime` is a date-time shape check.
    T055 routes both elsewhere.
  - Once a verb generates through the seam, a suite that runs the verb gets openDox's own generator, unless a host registers one first.
- **T059 (openXdox contributes)** registers openXdox's governed generator:

  ```
  generator_seam.register(SnapshotGenerator(contract="ideation-dashboard-snapshot",
                          generate=generate_snapshot,
                          inputs=("project_register_source", "possibles_source")))
  ```

  - `generate_snapshot`'s signature takes the seam's call as it stands. Both declared inputs default to `None`, so the declaration passes both binds, and a test declares and generates through that shape.
  - Its test-only keywords (`git`, `generator_version`, `excluded_documents`) stay undeclared, so the seam never passes them.
  - The registration must come before the first generation in any process that uses openDox's entry points, and not during one, or it is refused.
  - T059's own seam test is `current() is` that declaration.
- **T064 (host wiring)**. The seam needs one explicit registration. openxFactory's `register_openxfactory()` makes only the profile registration today, and the seam does not read the profile. So openxFactory gets openXdox's generator only if something calls `register(...)` in its process: either a one-line host registration in T064, or a hook T059 gives openXdox that openxFactory already calls. T064's line *"It composes openXdox's profile, so none is expected"* should be re-read against this. **The holder decided it (2026-09-27):** T059 registers openXdox's generator from openXdox's own profile-registration path, the hook openxFactory already calls. So T064's line stays true, and T064 needs no host line. The next phase-2 bookkeeping round records it in T059's and T064's text.
- **T057**, once it packages `opendox-snapshot.schema.yaml`, can hold `NEUTRAL_SNAPSHOT_KIND` to the packaged copy's `kind` const.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 30, 2026
**Authored ahead, as a phase-2 draft.** Brett ruled on openxFactory#656, comment `5857365170` ("Start phase 2's independent tasks"), that phase-2 tasks are authored as drafts. **T049 has landed** (openxFactory#1204 → `9d2e5bc3`), so phase 2 is open. T054 is `After: T050, T052, T053`:
- T050 has landed, as `dc3765dd` (#53);
- T052 has landed, as `fa8862cc` (#54);
- T053 has landed, as openDox-spec `f7ee3c76` (#16), and the openDox root pins it (opensoft/openDox#14).

#56 (T051), which this branch also carried, has landed as `86647320`. This PR stays a draft until the holder un-drafts it.

This is plan 034's **T054 (5.1–5.3: openDox's small neutral projection)**, phase-2 slice **P2-P**. I read the plan at openxFactory `main` `d90df42d` (`specs/034-opendox-standalone-operation/tasks.md`), and re-read it at `9d2e5bc3`: T054's entry is unchanged. The slice is claimed on openxFactory#656, comment `5859496321`.

## What this branch carries

- It is **built on #54's branch**, `build/034-p2g-t052-generator-seam` (T052, the generator seam). It was cut at `4ca45d27`, and it now carries #54's final head, `2f515c57`. T054 replaces that seam's placeholder default with the projection.
- **#53 (T050) has landed as `dc3765dd`.** Its tree equals #53's final head, `4ba410ff`, which this branch had merged first. So `main`'s merge (`d97a4aa`) had one add/add conflict, in `tests/test_plain_documents_fixture.py`, resolved to this branch's side. That file differs from `dc3765dd` by T054's three docstring corrections and nothing else. `git diff dc3765d -- <file>` after the merge is byte-identical to `git diff 4ba410f <pre-merge head> -- <file>`.
- **#56 (T051)** is merged at `44dcc3a1`. It adds `tests/fixtures/malformed`, which the holder's T051 rule reads.
- **#56 and #54 have landed** (`86647320`, `fa8862cc`), and `main` `fa8862cc` is merged here as `1a603677`. Its two add/add conflicts, `src/opendox/default_generator.py` and `tests/test_generator_seam.py`, are resolved to this branch's side: in each, main's blob is #54's final blob, so `git diff fa8862c <pre-merge head> -- <file>` equals `git diff 2f515c5 <pre-merge head> -- <file>`. The merged tree is the pre-merge head's, `45ddf9ec`.
- So the diff against `main` is now T054's alone: its commits `25fe7526` through `5a6fe637`, `8e7da4a`, `03e06ccd`, `50b0d42b` and `d7954fc6` (below).

## What it builds

`src/opendox/neutral_projection.py` is new code over `CorpusAdapter`, written to openDox's own needs. It is not openXdox's generator re-expressed, and it imports nothing of openXdox's or openxFactory's.

`default_generator.generate()` keeps its signature. It resolves the home corpus through the home-corpus seam and projects it. Standalone, that corpus is T022's `WorkingTreeCorpus`, a `LocalGitCorpus` (5.2). `NeutralProjectionNotBuilt` and its refusal case in `tests/test_generator_seam.py` are retired, as the brief asks.

The projection writes T053's neutral snapshot, `opendox-snapshot`. The rules it follows:

- **What is a document.** A document is an entry the adapter lists AND classifies.
  - An entry it cannot classify, such as a `Makefile` or an image, is left out unread (holder ruling).
  - An entry whose path the schema's `path-is-repo-relative` rule cannot carry is also left out, and it is reported. Examples are a backslash or a control character in the name.
- **Where a document lands (R1Q13 (a) with (c)).**
  - The station is the one its neutral `stage:` key names. That key is the first line of the leading `Name: value` block. `local_git_adapter.leading_header` reads the block, and it is the same reader the default adapter's `classify` uses.
  - A document that declares no `stage:` is a source.
  - A value outside the six role keys is not a declaration. That includes the empty value and another casing such as `Grouping`. The generator reads the document as a source and reports it on standard error. For example: `notice: grouping-compost-corner.md: its stage: value 'shelved' is not one of the six station role keys (source, grouping, candidate, selection, submission, completion), so it is not a declaration; the document is read as a source`.
- **`title` and `summary`** are copied exactly as the header gives them, the empty value included. They are `null` only where the key is absent. Nothing is coerced, and no document is dropped for lacking them. This is the holder's rule on T051.
- **The topic rule** (named here, as the task asks). A document with a `topics:` header carries exactly the topics it lists: split on commas, whitespace collapsed, and case-folded. It carries none where the header lists none, because an empty header is still a declaration. A document without the header carries:
  - the **words of its name**, where the name is its `title:`, else its first `#` heading, else its file name without the suffix;
  - plus the **words of the name of every other document it mentions**, where mentioning means its text holds that document's name, or its file name, as a run of whole words.
  - A word is a run of three or more letters, case-folded, that is not in `STOPWORDS`. Letters and digits are split apart, so `Q3planning` holds the word `planning`. So the rule needs no front matter at all.
- **Groups.** A group forms wherever **two or more sources share a topic**, and topics shared by the same sources form one group, named `a · b`. A document that declares `stage: grouping` is a group of its own: it gathers itself and every source that shares one of its topics. Each group has **one edge per member document**, naming the topics that matched.
- **The other stations.**
  - A declared candidate is `unselected`. It is claimed by each group it shares a topic with, and its `claim` is its summary.
  - A declared selection is a `staged_topics` entry.
  - A declared submission or completion is a `changes` entry, `active` or `archived`.
  - Each of these lists the document as its file. Ids are unique within each section.
- **`keyword_index`** is written, and it counts exactly the documents that carry each topic.
- **The anchors.**
  - `source_revision` is the revision the caller pins, else the corpus HEAD (holder ruling 5). With neither, `ProjectionRefused`, a `GeneratorSeamError`, is raised.
  - `generated_at` is the caller's value, else that revision's own committer date. It is looked up only for a revision spelled as a hexadecimal object id, so git never reads a revision as an option. Nothing reads the clock.
  - A pin labels the snapshot; it does not choose the bytes. The content is the working tree's, as openXdox's governed generator also records a supplied revision and scans the tree it is handed.

It also changes these files:
- **`display_profile.py`, in one place (batch G's 5.3).** `SNAPSHOT_VALUES`' defaults become the neutral snapshot's values:
  - `document_stage`: `captured` is `source`, and `organized` is `grouping` (holder ruling 1);
  - `register_state`: `unselected`, `selected`, `declined` and `replaced`, which are `NEUTRAL_DISPLAY`'s own candidate words, role for role, so no word is re-authored.
  - `display.js`'s mirror moves with it and keeps its line count, so the web census is unchanged. The governed values move to openXdox's facet in T060 (holder ruling 4: T060's block lands before openXdox moves its openDox pin past T054).
- **The default adapter's field set (R1Q13 (a)).**
  - `local_git_adapter.NEUTRAL_FIELDS = ("title", "summary")`, and `WorkingTreeCorpus` defaults to it. `LocalGitCorpus()` still defaults to `()`.
  - The suffix branch of `classify` reports a field as missing when it is absent or empty, but only when fields are required. So `authoring.required_header_fields()` answers `("title", "summary")` through the entry point.
  - A document without those fields is still read, as a source.
- **The wheel (holder ruling 3).** The grouping tile counts a group's edges. `views/wheel-model.js` uses `tallies.document_links` where a group carries one, as the governed snapshot's groups do, and counts `document_edges` otherwise. The schema is not widened, and the file keeps its line count.

What the fixtures project to:

| repository | documents | groups |
|---|---|---|
| T050's `plain-documents` | 8, all six stations | `barrel · rain` (the two rain-barrel notes), and the declared `Compost corner ideas, gathered in one place` |
| AT-R1's repository (b), no front matter | 3 sources | `budget · roadmap` (all three notes), `meeting · notes` (two) |
| T051's `malformed` | 2 (`EXPECTED_RULE` is not a document) | none |

## After T049: openDox's own scaffold carries the small neutral field set (`8e7da4a`)

**The holder's decision of 2026-09-28.** `render_scaffold()`'s output read as missing `title` and `summary` under `NEUTRAL_FIELDS`, for two reasons: the H1 comes first, so `leading_header()` stops at the blank line after it, and its field is the capitalized `Summary:`. So standalone `agent_capture` refused a document `create` had written, and the projection lost the supplied summary. Copilot raised it on #59 as r4126022820 and reproduced it there. It is fixed here.

**What changed.**
- `authoring.SCAFFOLD_LEAD_FIELDS = ("title", "summary")`. These are the fields a scaffold can lead with, filled from the create's own input. The neutral title drops the family suffix, which stays on the H1.
- `render_scaffold(..., lead_fields=())` writes those fields first, as `name: value` lines, then a blank line, then the governed block unchanged. It refuses a field it has no value for. With `()`, the default, its output is byte-identical to before.
- `create_scaffold()` passes `scaffold_lead_fields()`: the fields of `SCAFFOLD_LEAD_FIELDS` that `required_header_fields()` answers. Under openDox's own default adapter, that is both.

**Why it follows the corpus rather than always leading.** openxFactory's gated create and openXdox's authoring suite pin the governed layout with the H1 on the first line:
- `tests/ideation-dashboard/test_gate_routes.py::test_create_document_lands_the_scaffold_and_the_record` asserts `text.startswith("# Lens launch session — Brainstorm\n")`;
- `tests/test_authoring_agent.py` asserts the same for its own title.

openxFactory's adapter obliges only the governed block's own fields (`Status`, `Kind`, `Summary`, …), which it reads over a 15-line window (`STATUS_SCAN_LINES`). So there the answer is `()`, and the created bytes do not change. That adapter's readers (`classify`, `ideation_readiness._parse_header`, `families._h1`) would read a scaffold with the lead block correctly anyway, since they scan the window and `_FIELD_RE` needs a capital letter. The lead is still left out there, because those pins hold the exact bytes.

**One behaviour change.** `create_scaffold` asks the corpus as `agent_capture` does, so with no home registered it now refuses (`CorpusRefused`, `ADAPTER_NOT_REGISTERED`), naming the seam (4.2). Every create path runs after an entry point registers one. No running test in openDox-code, openXdox-code or openxFactory calls it in a bare process. openXdox's `tests/test_authoring_agent.py` does, but it is in openXdox-code's declared exclusion (`doc_health`), so it runs nowhere today. Its `agent_capture` cases already need a registered home, through `missing_required_headers`.

**Also in `8e7da4a`, the half of openDox-code#53's review that needs T054's rule.** T054's falsifier case now also asserts that `notes-toolshed-inventory.md`, the source outside the rain-barrel pair, lands in no group. T050's own test pins what the topics are derived from, and this pins the projection's reading of them.

**Tests** (`tests/test_neutral_projection.py`, 25 → 29 cases):
- `test_openDoxs_own_scaffold_carries_the_small_neutral_field_set`: under openDox's default, `leading_header()` of the created text is exactly `{title, summary}` and `missing_required_headers()` is `[]`. `agent_capture` accepts the same text, and the projection keeps both documents' title and summary.
- `test_a_scaffold_keeps_the_governed_layout_where_the_corpus_obliges_neither`: under a corpus that obliges the governed fields, `scaffold_lead_fields() == ()`, and the created bytes equal `render_scaffold()`'s default, H1 first.
- `test_the_lead_block_is_the_neutral_fields_in_order_then_a_blank_line`: the order is `SCAFFOLD_LEAD_FIELDS`' whatever the request's, the suffix is dropped, an unknown field is refused, and `NEUTRAL_FIELDS ⊆ SCAFFOLD_LEAD_FIELDS`.
- `test_a_scaffold_with_no_corpus_registered_refuses_and_writes_nothing`.

**Mutations: 8 of 8 killed.**

| mutant | cases red |
|---|---|
| `create_scaffold` passes no lead | 2 |
| `render_scaffold` always leads with both | 3 |
| the neutral title keeps the suffix | 1 |
| the lead is chosen without asking the corpus | 2 |
| an unregistered corpus is read as obliging nothing | 1 |
| the lead order follows the request | 1 |
| an unknown lead field is ignored | 1 |
| the projection keeps its stopwords (a group `the` then absorbs the toolshed note) | 1, the new no-group assertion; the pre-change case passes it |

**The whole suite at `8e7da4a`**, as CI runs it (`CI=true`, `LANG=C.UTF-8`, PostgreSQL 16, `-e ".[runtime,test]"` under the lock):
- `2587 passed, 11 skipped`, triple `selected=2598 passed=2587 skipped=11`;
- that is +9 over `5a6fe637`'s 2589: #54's review rounds after `4ca45d27` added 5 seam cases, and this change adds 4;
- F4.1's scan (`scan_deferred_reaches.py`, sha256 `fe116203…`) is 19 before and after, with the same reaches.

## The falsifier

From T054's entry in tasks.md:

> **Falsifier**: an in-process test that the projection over T050's fixture, with neither sibling importable, validates against T053's schema and carries none of F5.3's declared words; the topic-rule test over a copy of repository (b); and a test that a `stage:` value outside the six is reported and read as a source.

All three are in `tests/test_neutral_projection.py`, first, in that order:

- The first runs in a fresh process with `openxdox`, `ideation_dashboard`, `doc_health` and `corpus_adapter_openxfactory` blocked. The process asserts each one fails to import. `cli.build_parser()` registers openDox's own defaults, and the process generates through `generator_seam.generate()` over a fresh git repository of T050's fixture.
- The schema is `tests/fixtures/opendox-snapshot.schema.yaml`. It is a byte-identical copy of openDox-spec#16's file at `cd49eb25`, held to its sha256 `f9e3e111…584a`, until T057 ships the packaged copy.
- The evaluator ports openDox-spec's own: the keywords the contract uses and its seven reference rules. The leg installs no `jsonschema`.

Python 3.12.3, pytest 8.4.2, in a venv installed with `-c constraints-cpython312-linux.txt -e ".[runtime,test]"`:

```text
test_the_schema_copy_is_openDox_specs_contract_and_matches_the_product PASSED
test_the_projection_over_the_plain_documents_fixture_is_a_neutral_snapshot PASSED
test_the_topic_rule_groups_repository_b_which_has_no_front_matter PASSED
test_a_stage_value_outside_the_six_is_reported_and_read_as_a_source[shelved] PASSED
test_a_stage_value_outside_the_six_is_reported_and_read_as_a_source[Grouping] PASSED
test_a_stage_value_outside_the_six_is_reported_and_read_as_a_source[] PASSED
test_the_malformed_fixture_keeps_its_one_violation PASSED
test_title_and_summary_are_copied_exactly_and_null_only_when_absent PASSED
test_an_entry_the_adapter_cannot_classify_is_not_a_document PASSED
test_a_path_the_schema_cannot_carry_is_left_out_and_reported[back\\slash.md-backslash] PASSED
test_a_path_the_schema_cannot_carry_is_left_out_and_reported[tab\tin-name.md-control character] PASSED
test_declared_topics_replace_the_derived_ones PASSED
test_an_empty_topics_header_declares_no_topic PASSED
test_a_word_is_a_run_of_letters_even_beside_digits PASSED
test_a_declared_group_gathers_the_sources_that_share_its_topics PASSED
test_a_declared_group_with_no_topic_forms_no_group_and_is_reported PASSED
test_station_ids_are_unique_within_a_section PASSED
test_the_anchors_come_from_the_source_revision_and_the_bytes_repeat PASSED
test_a_repository_with_no_commit_needs_a_pinned_revision PASSED
test_the_default_adapter_obliges_the_small_neutral_field_set PASSED
test_required_header_fields_answers_the_neutral_set_through_the_entry_point PASSED
test_the_header_reader_keeps_an_empty_value_and_stops_at_a_blank_line PASSED
test_the_display_defaults_are_the_neutral_snapshots_values PASSED
test_the_wheel_counts_a_groups_edges_where_it_carries_no_tally PASSED
test_the_projection_imports_with_no_sibling_and_no_third_party_module PASSED
25 passed in 5.26s
```

The file also passes under `--noconftest`. F5.3 itself runs `python -m opendox.cli generate`, whose verb reaches the consumer's generator until T055 routes it (`cli.py:90`). So T056 and T063 quote F5.3, and T056 tests the verb's own report of a `stage:` value outside the six.

**Cross-checks.** The snapshots were checked outside this suite in two ways: with `jsonschema` 4.26.0 (Draft 2020-12, format checker and `rfc3339-validator` installed), and with openDox-spec's own `tests/test_opendox_snapshot_contract.py` evaluator. Both agree:
- T050's snapshot has no error, and neither does repository (b)'s;
- T051's has exactly one, `title-and-summary-are-text` at `/documents/1/title`.

## The repository's own checks

- **The whole suite, against a `postgres:16` container** (CI's service and DSN shape), so the database-backed cases run:

  | run | passed | skipped |
  |---|---|---|
  | base `b1946db` (the branch before T054's commits) | 2554 | 11 |
  | head `5a6fe637` | 2578 | 11 |

  The test-by-test JUnit diff has **25 added** (all of `tests/test_neutral_projection.py`, all passing) and **1 removed** (the retired `test_openDoxs_own_generator_refuses_until_its_projection_lands`). **0** outcomes changed.
- **The triple pin** reads: selected 2589 (floor 2476), passed 2578 (floor 2465), skipped 11 (pinned exactly 11).
- **F4.1's scan** (`scan_deferred_reaches.py` over `src/opendox`) finds 19 deferred reaches at `main` and 19 at head. The only difference is line numbers, so T054 adds no reach. The projection imports with every sibling blocked and pulls in no third-party module.
- **Mutations: 18 of 18 killed.**
  - Coerce an empty title to null.
  - Drop the out-of-six notice.
  - Admit any `stage:` value.
  - Map `organized` to `selection`.
  - Turn off mention scanning.
  - List unclassifiable entries.
  - Carry any path.
  - Miscount `keyword_index`.
  - Let a declared group gather non-sources.
  - Read `generated_at` from the clock.
  - Make the default adapter oblige nothing.
  - Count an empty field as present.
  - Make the wheel ignore edges.
  - Start candidates `selected`.
  - Let one source form a group.
  - Ignore the heading for a document's name.
  - Treat an empty `topics:` header as absent.
  - Drop a letter run that sits beside a digit.
- **`tests/test_display_facet.py`: four node-harness cases edited.** Their fixtures carried the governed snapshot values:
  - the partial-override collision;
  - the board's stripe classes;
  - the explorer's stage word;
  - the funnel's search haystack.

  Each now reads the value openDox ships (`SNAPSHOT_VALUES`), and each still tests what it tested. The canvas case's neutral assertion now compares against openDox's own word instead of a value the neutral install can never write.

The PR stays out of `conftest.py`, `pyproject.toml`, `validate.yml`, `README.md` and every pin, and it edits neither `cli.py` nor `serve.py` (T055's single-writer chains).

## Files (T054's own commits)

| file | change |
|---|---|
| `src/opendox/neutral_projection.py` | new: the projection |
| `src/opendox/default_generator.py` | `generate()` projects the home corpus; `NeutralProjectionNotBuilt` is retired |
| `src/opendox/display_profile.py` | `SNAPSHOT_VALUES`' defaults become the neutral values |
| `src/opendox/web/views/display.js` | the mirror of the same defaults (line count unchanged) |
| `src/opendox/web/views/wheel-model.js` | the grouping tile counts edges where no tally exists (line count unchanged) |
| `src/opendox/runtime/local_git_adapter.py` | `leading_header()` made public, `NEUTRAL_FIELDS` added, `WorkingTreeCorpus`'s default field set, missing fields reported in the suffix branch |
| `src/opendox/authoring.py` | `8e7da4a`: `SCAFFOLD_LEAD_FIELDS`, `render_scaffold(lead_fields=)`, `scaffold_lead_fields()`, and `create_scaffold` leading with what the corpus obliges |
| `tests/test_neutral_projection.py` | new: 25 cases, then 29 at `8e7da4a` |
| `tests/fixtures/opendox-snapshot.schema.yaml` | new: T053's schema, digest-pinned |
| `tests/test_generator_seam.py` | the refusal case retired, and its docstring point updated |
| `tests/test_display_facet.py` | four fixtures read the shipped values; one assertion made positive |
| `tests/test_plain_documents_fixture.py` | T050's docstring (merged from #53) says what is true once T054 and T036 are in |

## CI and review rounds

- **CI at `0f42f678` failed one case, and `b2f92226` repairs the test.** The case was `test_the_anchors_come_from_the_source_revision_and_the_bytes_repeat`.
  - CI's git prints `%cI` for a zero offset as `2026-09-27T12:00:00Z`, and git 2.43.0 prints `2026-09-27T12:00:00+00:00`.
  - The projection records the stamp exactly as git spells it, and the schema admits both spellings.
  - The test compared the stamp to the fixture's date as a string. It now compares them as instants. Its first assertion still holds `generated_at` to the checkout's own `git show` output.
- **Copilot at `0f42f678`: three threads, all taken in `c0747e96`, answered and resolved.**
  - `r4117298988`: an empty `topics:` header fell back to derived topics, which contradicted the rule the module states. It is now a declaration that carries no topic. The new case is `test_an_empty_topics_header_declares_no_topic`, and it fails under the old rule.
  - `r4117299013` and `r4117299033`: T050's test docstring said T054 had not landed, which T054 makes false. It also said the suite ran outside `validate`'s explicit list, which has been false since T036 (#52). It now says what is true. Only the docstring changes.
- **Copilot at `c0747e96`: one thread, answered and resolved, plus one overview remark taken in `5a6fe637`.**
  - `r4117331489` asked that a supplied `source_revision` be passed into the `CorpusRef`. That is not taken, on the product's own contract:
    - the seam and the CLI define the value as an anchor to pin, and openXdox's governed generator records it and scans the tree it is handed;
    - the holder ruled that content comes from the working tree, per Brett's T022 ruling.
    - `default_generator`'s docstring now states the rule in its own paragraph.
  - The overview's remark that digit-adjacent names were tokenized wrongly was right. Letter runs and digit runs are now separate tokens, as the docstring's "a run of three or more letters" says. The new case is `test_a_word_is_a_run_of_letters_even_beside_digits`, and it fails under the old tokenizer.
  - The same overview says the seam's "replacement-generator tracking can reject valid registrations". That is `generator_seam.py`, which is #54's (T052's) code, with no thread here. It is flagged to the holder, not changed here.
- **Copilot at `1a603677` (the merge of `main`): 1 thread, taken in `03e06ccd`.**
  - r4139383472: the lead block interpolated `title` and `summary` as given, so `summary="ok\nstage: completion"` wrote a line `leading_header()` reads as the document's own `stage:`.
  - `render_scaffold()` now refuses a lead value carrying a control character (`Cc`) or a line or paragraph separator (`Zl`, `Zp`), before anything is rendered, so `create_scaffold` writes nothing. With no lead block nothing new is refused.
  - `test_a_lead_value_that_is_not_one_header_line_is_refused`: 20 cases, all red against `1a603677`. Local whole suite: `selected=2618 passed=2607 skipped=11`.
- **Copilot at `03e06ccd`: 2 threads, both taken in `50b0d42b`.**
  - r4139523226: the `kind_field` vocabulary counted a field with an empty value as present. `_classify_by_header` now uses the suffix path's test, so an empty value is no field in both. `test_an_empty_field_is_missing_whichever_vocabulary_is_in_force`, red against `03e06ccd`.
  - r4139523258: `_commit_date` ran a bare `git`. `LocalGitCorpus` exposes its `executable`, and the date is read with the home corpus's own git. `test_the_commit_date_is_read_by_the_home_corpus_s_own_git`, red against `03e06ccd`.
- **Copilot at `50b0d42b`: 2 threads.**
  - r4139607560, taken in `d7954fc6`: a `DocumentId.key` is opaque to the adapter interface, and the projection read every key as a path. An adapter now declares `document_keys_are_paths = True` (`neutral_projection.PATH_KEYS`), `LocalGitCorpus` does, and `project()` refuses any other with `ProjectionRefused`. `test_an_adapter_whose_keys_are_not_declared_paths_is_refused`, red against `50b0d42b`.
  - r4139607585, not taken: it does not reproduce. A path reaches the invalid-stage notice only after `_unwritable()` refuses every control character, so such a path is named by its `repr` and left out first.
- **Copilot at `d7954fc6`: "Needs a closer look", no findings, 0 threads.** CI is green, with `selected=2621 passed=2610 skipped=11 failures=0 errors=0`.

## What the later tasks need

- **T055** (`cli.py`/`serve.py` single writer):
  - The scaffold mismatch #59 raised (r4126022820) is fixed here, in `8e7da4a`. #59 takes it with this branch's head.
  - Route the generate verbs through `generator_seam.generate()`.
  - `_default_home_factory`'s docstring in `cli.py` (around line 877) and `serve.py` (around line 1520) still says the default adapter has bare defaults and that "T054 sets the neutral fields". `WorkingTreeCorpus()` now carries `NEUTRAL_FIELDS`, so that sentence needs correcting.
  - `_report` prints `project=` from a field that the neutral kind does not have. It reads the field with `.get`, so it shows `<ungrouped>`.
- **T056**:
  - The verb's report of a `stage:` value outside the six is the `notice:` line that `default_generator.generate()` writes to standard error. Once T055 routes the verb, it needs no further plumbing.
  - The F5.3 sweep over T050's snapshot is clean in process.
- **T057**: this PR's schema copy is replaced by the packaged copy once T057 ships it.
- **T058**: the malformed fixture yields exactly one violation, `title-and-summary-are-text` at `/documents/1/title`, and `EXPECTED_RULE` is not a document.
- **T060**: the governed `values` block, as T053's writer listed it.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants