Repository navigation
Fail the doc-health catalog and its six gates closed on probe errors, with a Python 3.14 CI leg (for #1201) - #1211
Conversation
… read a subdirectory, and correct the 3.13 rationale _refuse_links_inside's own os.walk(run_dir) passed no onerror at all, unlike its sibling _refuse_foreign_descendants (PR #1189/#1190), which already fails closed the same way. An unreadable subdirectory was silently skipped, so a symlink hiding inside one would never be caught. Both walks now share a new _refuse_unreadable_walk(run_dir) onerror factory that refuses by name, tree-relative to run_dir. Also corrects the false "Python 3.13 pathlib swallows every OSError" rationale left in catalog.py's _own_mode docstring and two tests/doc-health/test_catalog.py comments: verification against the actual CPython 3.12/3.13 sources found the _ignore_error errno allow-list unchanged between versions, so the behaviour those comments justify (explicit os.lstat + errno handling) is correct, but the stated reason was wrong. See the PR body for the sources. For #1197 (re-scoped after the verification pass found the original Python 3.13 premise false). Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot review (PR #1200): the prior rewrite called the propagate-vs- absent contract on Path.is_symlink/is_dir/is_file "private" and "undocumented." Checked against the official docs.python.org/3.13 pathlib page: it explicitly says "False is also returned if the path doesn't exist or is a broken symlink; other errors (such as permission errors) are propagated" for all three. That is a documented, public contract, not an internal detail. Reworded catalog.py's _own_mode docstring and both corrected test_catalog.py comments to say so, and reframed the explicit os.lstat as insulation against a future version changing that contract, not a correction of today's. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Codex review (PR #1200, P3): the previous wording framed Python 3.14 delegating is_symlink/is_dir/is_file to os.path.islink/isdir/isfile (which swallow every OSError) as only a hypothetical future change. Checked the CPython 3.14 branch directly: Lib/pathlib/__init__.py's Path.is_symlink() already is `return os.path.islink(self)`, and is_dir()/is_file() call os.path.isdir()/isfile() the same way when follow_symlinks=True (the default), falling back to a bare `except (OSError, ValueError): return False` otherwise. The change has already landed there; it is not speculative. Reworded catalog.py's _own_mode docstring and both test_catalog.py comments to say the propagate-vs-absent contract holds through 3.13 and changes in 3.14, and reframed the link-free test's monkeypatch as pinning to Python 3.14's actual is_symlink body, not a hypothetical worst case. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot review (PR #1200, high severity): onerror only covers a failed scandir(top), not a failed per-entry classification. os.walk's own is_dir() catches an OSError from one listed entry and treats it as a plain file rather than aborting (same on 3.12, 3.13, and 3.14), and the entry is still yielded either way. A bare node.is_symlink() would then misclassify it right along with os.walk: not a directory to refuse enumerating, and on Python 3.14 not a symlink either, since is_symlink there swallows the same error (Lib/pathlib/__init__.py: `return os.path.islink(self)`). _refuse_links_inside now classifies every listed name with _own_mode, the same explicit os.lstat primitive _link_inside already uses for the read-side scan, instead of calling Path.is_symlink directly. A node _own_mode cannot check (any errno but ENOENT/ENOTDIR) refuses by name, on every interpreter version alike. New test test_refuse_links_inside_fails_closed_on_an_unprobeable_entry injects the OSError from os.lstat itself (the per-node probe), not from scandir, per the review's ask. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Brings the branch current with main after #1198 (51887c6), #1199 (7daaf0f, the catalog staging directory, the deleted _is_writer_temp, the fsync-then-rename durability work), #1202-#1206 and #1181. The merge applied without conflicts. #1199 did not reshape any function this branch touches: _own_mode, _refuse_links_inside and the os.walk error path of _refuse_foreign_descendants are as this branch left them, and main's rewrite of _refuse_foreign_descendants' docstring (no temp admitted, STAGING_DIR) and its body (the _is_writer_temp clause gone) sits beside this branch's shared _refuse_unreadable_walk onerror unchanged. The diff against main is still exactly this branch's two files, at the same size as before the merge. Lane: openxfactory-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#1201) Python 3.14's Path.exists/is_dir/is_file/is_symlink answer False for a node whose stat fails for any reason; through 3.13 they raise every OSError that does not name the node's absence. The #1201 survey found six read-side sites where that False switches a gate off: the complete-coverage baseline gate (catalog_baseline.is_baseline_complete and load_baseline), the regression gate (runner.main's --previous-report), the preflight validators (preflight._entrypoints and run_preflight), the pin-record ladder (families._pinned_arm), the aggregation-backlog detector (ideation_routing._aggregation_backlog_findings) and the catalog-tag guard (ideation_readiness.load_catalog_tags). Brett Heap's ruling (1(b), raw OSError) routes them through one leaf module, scripts/doc_health/fs_probe.py: one explicit os.stat or os.lstat with the 3.12/3.13 allow-list written out (ENOENT, ENOTDIR, EBADF and ELOOP read as absent, every other errno propagates raw). On 3.12 and 3.13 each site behaves exactly as before; on 3.14 it stops swallowing. Each site carries a one-line comment saying why it must refuse. tests/doc-health/conftest.py gains pathlib_314, which runs a test natively and again under CPython 3.14's own query bodies (transcribed from Lib/pathlib/__init__.py), and ProbeDenial, which denies os.stat/os.lstat of named nodes (chmod denies nothing to root). test_fs_probe.py pins the errno table and drives each gate with EACCES and EIO under both models; against the old probes every 3.14-model gate case fails. Lane: openxfactory-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
… (for #1201) The writer's five pathlib probes (_refuse_foreign_node, _occupied, _read_claims, and the run-directory probes in write_snapshot and write_run) now classify a node by the one explicit lstat the run scan already used (_node_mode, beneath _own_mode). A node whose lstat fails for any reason but FileNotFoundError or NotADirectoryError is a CatalogError, never absent. On 3.14 the no-follow guard used to pass an unstat-able node, a symlink included, as absent, and an existing immutable record read as "nothing there". The refusal (_unchecked_refusal, which _own_mode's refusal now uses too) names the node by its path under the catalog root and the failure by its errno name, never str(exc): CI's secret sweeper redacts the host-absolute path the OSError carries. To name nodes tree-relative, the catalog root is threaded through _own_mode, _link_inside, _refuse_links_inside, _refuse_foreign_node, _read_claims, _occupied, _read_record, _holds_exactly, _load_run_bytes and _addresses_itself (document_catalog's one caller and the tests' direct calls updated). The symlink and "occupied by a" messages keep their text. Tests: every node the preflight classifies, and every probe after it, with EACCES and EIO, under both pathlib models: a controlled refusal, a redacted message, and a tree unchanged node for node. Against the pre-change code all 56 of those cases fail. Absence still reads as absent, ELOOP refuses (the catalog's flavour is stricter than fs_probe's), and no refusal carries the OSError's own filename or strerror. Lane: openxfactory-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
… (for #1201) Ruling 3 on #1201: .github/workflows/doc-health-py314.yml runs python -m pytest tests/doc-health on actions/setup-python 3.14, with the same nested checkout, gitlinks and hash-pinned lock as pytest-suite. It is a separate job, not a matrix on pytest-suite, because a matrix renames that required job's check-runs and its pinned context would never report. No ruleset requires it. test_py314_leg.py pins both halves. Lane: openxfactory-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1201) RULED by Brett Heap, "#1201 3.14: 1(a)". Python 3.12's non-strict Path.resolve() stat-ed its own result and raised RuntimeError on ELOOP, which resolve_in_root turned into its UNRESOLVABLE refusal. Python 3.13 dropped that check (its resolve() is a bare os.path.realpath), so on 3.13 and 3.14 a looping pin record came back resolved and the pinned-target arm reported it as merely absent. The new doc-health-py314 leg measured this: test_a_self_looping_symlink_record_cannot_be_resolved_and_reads_nothing failed on 3.14.7, on this branch and on its unchanged base alike. scripts/pin_containment.py now asks the filesystem itself: after resolving, _is_symlink_loop stats the root and the target and refuses on ELOOP (or Windows' ERROR_CANT_RESOLVE_FILENAME), the question 3.12 asked, with no version test. Any other stat failure is left to the caller, as 3.12 left it. The refusal's reason names no path. Tests: the existing loop test is unchanged and passes on 3.12 and 3.14. New: a self-loop and a two-link cycle under CPython 3.13's own resolve body (monkeypatched onto Path on any interpreter), same finding byte for byte and nothing read; and a loop in an intermediate directory, called directly, under both resolves. Without the fix the three 3.13-model cases fail. Lane: openxfactory-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#1201) The same ruling as the previous commit, "#1201 3.14: 1(a)", applied to the other resolve in scripts/pin_containment.py. boundary_dir resolves the root before it checks the contracts/ boundary. On 3.12 a root that loops (or one reached through a looping ancestor) made that resolve raise RuntimeError, and the root refused as UNRESOLVABLE. From 3.13 on the resolve returned, the contracts/ probes below it failed on ELOOP and read as absent, and the root refused as BOUNDARY_MISSING instead: a refusal that changed with the interpreter. boundary_dir now asks _is_symlink_loop of the resolved root (os.stat and ELOOP, no version test) and returns UNRESOLVABLE, whose reason names no path. Its second resolve needs no check: it runs only on a contracts/ that already stat-ed as a real directory. The two refusals now share one reason string. The one caller, families._pinned_arm, prints the reason text, which is unchanged. Tests: a root that is itself a loop, and a root under a looping ancestor, each natively and under CPython 3.13's own resolve body patched onto Path. Without the fix the two 3.13-model cases fail. Lane: openxfactory-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s-fail-closed PR #1200 landed after this branch was cut from its 9f3e67b head. Its review rounds replaced both writer walks with one walk, _walk_run_tree, which lists names only and classifies each node from its own lstat through _walked_mode (tree-relative to the run directory), with _unenumerable_refusal for a directory it cannot list. The two conflicts, in scripts/doc_health/catalog.py and tests/doc-health/test_catalog.py, are resolved on main's side, with this branch's #1201 changes applied on top of it: - The walk is kept exactly as landed: _walk_run_tree, _unenumerable_refusal, _refuse_links_inside(run_dir) and _refuse_foreign_descendants are main's, and so is _walked_mode's refusal message. _refuse_links_inside no longer takes the catalog root this branch had threaded into it, because it no longer calls _own_mode; its callers and the two #1200 tests keep main's call shape. - ONE lstat primitive, _lstat_mode: node's own mode, (None, None) for FileNotFoundError or NotADirectoryError, (None, exc) for any other failure. It replaces both this branch's _node_mode lstat and _walked_mode's own os.lstat, which did the same job with the same errno handling. _walked_mode, _own_mode and _node_mode are thin wrappers over it that differ only in how they name a refused node: the walk under the run directory, as landed, and the scan and the writer's probes under the catalog root (_unchecked_refusal). It is now the only os.lstat call in catalog.py. - The five writer probes (_refuse_foreign_node, _occupied, _read_claims, and write_snapshot's and write_run's run-directory probes) and _own_mode's message are this branch's, unchanged by the merge; #1200 did not touch those functions. Lane: openxfactory-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
Reviewer's GuideThe PR makes doc-health fail closed when filesystem probes encounter non-absence errors, using shared explicit stat/lstat logic for six gates and controlled catalog refusals, fixes cross-version symlink-loop handling, and adds a separate advisory Python 3.14 CI leg with comprehensive compatibility and regression tests. Sequence diagram for fail-closed filesystem gate checkssequenceDiagram
participant Gate as Doc-health gate
participant Probe as fs_probe
participant OS as Operating system
Gate->>Probe: is_file(path) or is_dir(path)
Probe->>OS: os.stat(path)
alt absence errno
OS-->>Probe: FileNotFoundError or allowed absence
Probe-->>Gate: False
else non-absence error
OS-->>Probe: EACCES or EIO
Probe-->>Gate: raw OSError
else existing node
OS-->>Probe: stat result
Probe-->>Gate: type check result
end
Sequence diagram for controlled catalog refusal on probe errorssequenceDiagram
participant Writer as Catalog writer
participant Catalog as catalog.py
participant Probe as _lstat_mode
participant OS as Operating system
Writer->>Catalog: _refuse_foreign_node(root, node, directory)
Catalog->>Probe: _lstat_mode(node)
Probe->>OS: os.lstat(node)
alt node absent
OS-->>Probe: FileNotFoundError or NotADirectoryError
Probe-->>Catalog: (None, None)
Catalog-->>Writer: Continue creation or absence handling
else probe error
OS-->>Probe: OSError
Probe-->>Catalog: (None, exception)
Catalog-->>Writer: CatalogError with errno and tree-relative path
else node exists
OS-->>Probe: mode
Probe-->>Catalog: mode
Catalog-->>Writer: Refuse symlink or wrong node type
end
Sequence diagram for cross-version symlink-loop detectionsequenceDiagram
participant Caller as Pin containment caller
participant Resolver as resolve_in_root or boundary_dir
participant FS as Filesystem
Caller->>Resolver: resolve_in_root(claimed, root) or boundary_dir(root)
Resolver->>Resolver: Path.resolve()
Resolver->>FS: _is_symlink_loop(resolved path)
FS-->>Resolver: os.stat result
alt ELOOP or Windows loop error
Resolver-->>Caller: UNRESOLVABLE refusal
else no loop
Resolver-->>Caller: Continue root or boundary validation
end
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation matches the recorded rulings and includes thorough cross-version failure-path coverage.
Review effort: Balanced
Findings: None
What changed in this PR
Hardens doc-health filesystem checks against Python 3.14 behavior and adds advisory 3.14 CI coverage.
Changes:
- Adds strict, cross-version filesystem probes.
- Makes catalog operations and pin containment fail closed.
- Adds comprehensive tests and a Python 3.14 workflow.
| File | Description |
|---|---|
.github/workflows/doc-health-py314.yml |
Adds advisory Python 3.14 CI. |
scripts/doc_health/catalog.py |
Hardens catalog probes and refusals. |
scripts/doc_health/catalog_baseline.py |
Protects baseline gates. |
scripts/doc_health/document_catalog.py |
Passes catalog root to byte loading. |
scripts/doc_health/families.py |
Hardens pin-record probing. |
scripts/doc_health/fs_probe.py |
Adds the strict probe primitive. |
scripts/doc_health/ideation_readiness.py |
Protects catalog-tag detection. |
scripts/doc_health/ideation_routing.py |
Protects backlog detection. |
scripts/doc_health/preflight.py |
Protects validator discovery. |
scripts/doc_health/runner.py |
Protects previous-report detection. |
scripts/pin_containment.py |
Detects symlink loops consistently. |
tests/doc-health/conftest.py |
Adds Python 3.14 emulation utilities. |
tests/doc-health/test_catalog.py |
Covers catalog probe failures. |
tests/doc-health/test_fs_probe.py |
Covers probe semantics and six gates. |
tests/doc-health/test_py314_leg.py |
Verifies CI wiring. |
tests/doc-health/test_tag_hygiene_pinned_targets.py |
Covers symlink-loop handling. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) **Plan 034's phase-3 ticks, the third.** It ticks T076, T086, T087, T101 and T104, which landed in opensoft/openDox-code, opensoft/openDox and opensoft/openXdox-code, in `specs/034-opendox-standalone-operation/tasks.md`, in the form #1221 and #1226 used: the box, and a "Landed" bullet drawn from the landed PR's own body. - **Based on `main` `ba6bb870`** (#1230, batch P), merged up to `ca1c1486` (#1234). If `main` moves again, I merge it in (no rebase, no force-push). - **Four commits and a merge.** `9a27b080` ticks the five tasks. `eee9e38f`, `252ef9f8` and `3f1790ee` each answer Copilot's findings at the head before (see "Review"). `3991b3a8` merges `main` `ca1c1486` (#1234, a tests-only PR with no `tasks.md` change) as a merge commit, never a rebase. - **Bookkeeping only.** It edits one file. `git diff origin/main --stat` shows `tasks.md` alone, 374 insertions and 7 deletions: five box flips, five bullets, and one cell each of the P3-X and P3-C slice rows (below). Nothing under `openspec/` changes, so there is no Rule 6 window. - **No `Arc:` trailer** (R1Q20 (a)), and no closing keyword in the commit message or in this body (both scanned with `/usr/bin/grep`). - **Claim:** #656 comment `5994472613`. - **T099 is NOT ticked.** The PyPI publish has not run. T101 is "T099's release step", and its bullet says what stays for T099. - It stays a DRAFT until the holder marks it ready. ## The ticks, each with its evidence Each sha is the merge commit of the named PR, read from the forge with `gh pr view <n> -R <repo> --json state,mergeCommit,baseRefName` (all six `MERGED`, base `main`), then checked in a bare clone of its repository. Each is a single-parent squash on `main`'s first-parent line. Each squash's tree equals its PR's final head's tree (`b92a2aa0` for openDox-code#84 at `c5fcdfa4`, `027edaf6` for #78 at `07cc8f36`, `0b1a2abc` for openDox#18 at `f451f68c`, `8b175f71` for openDox#17 at `4fddf62f`, `78ef1ed1` for openXdox-code#37 at `57bebd8b`). #79 is the one exception, as it must be: its head `9519cd8e` is `main` `651c35fe` plus the bump, so its tree lacks #78, which landed first. The squash's diff against its parent is the head's diff against `651c35fe`: `pyproject.toml` alone, 6 insertions and 1 deletion. The table is in landing order. | task | landed | note | |---|---|---| | T104 | openDox-code#84 → `32943cbf` (2026-10-05T02:56Z) | The console token travels in the opened URL, not `/capabilities`, on a standalone plane only. The private copy at `<OPENDOX_STATE_DIR>/console/<port>.html`, its safe write, the two-way served-root boundary, the page's fragment reader, and the limits the holder and Brett accepted (B3's hint line, B7, the stale tab). The bullet also records what the composed hosts show, for T086 and T094. | | T101 | openDox-code#78 → `d59f3f26` (11:41Z) and #79 → `dede32b4` (11:50Z) | #78 is the release workflow, with its hash-locked tools and `tests/test_release_workflow.py`. #79 is the version bump to 0.1.0, the last phase-3 openDox-code landing. The bullet records the pin and environment gates, the artifact checks, the publishing order and the accepted limits, and says that T099 keeps its box. | | T087 | openDox#18 → `e1e3a3c3` (11:58Z) | The openDox root's code gitlink and `contracts/code-pin.yaml` move from `047bb4fa` to `dede32b4`, in one commit (two files). | | T076 | openDox#17 → `504324de` (12:07Z) | The root README's "Install and run" section: the two lines, the browser limit, and the dated paragraph for the first line until T099 publishes. The bullet states what the tick means. | | T086 | openXdox-code#37 → `56e1c238` (12:23Z) | openXdox's four governed columns at openDox's seams, the two route columns through the facet, `OPENDOX_BACK_IMPORTS` at `(0, 0)` and the pin at `dede32b4`, with F5.2's three repairs and the host-plane stand-in. | Each task also carries a `**Landed**` bullet in `tasks.md`. The facts in each come from the landed PR's body, and where a bullet states a falsifier outcome I re-ran the falsifier at the merge sha (the next section but one). With these five, 83 of the 96 boxes are ticked (78 on `main`). **Left as they are:** T002, T007, T089, T090 to T093, T094, T095, T096, T097, T098 and T099. **What the T076 and T101 ticks mean.** Both bullets say so in `tasks.md`, as T088's does. T076's falsifier is review, and AT-R1 step 4 follows the README literally, but the first line, `pip install "opendox[local]"`, cannot be followed literally until T099 publishes. PyPI and TestPyPI both answered 404 for `opendox` when I read them (2026-10-05T12:38Z), the repository has no tag and no release, and `release.yml` has never run. So T076's box is the landing of a README that meets the review's criteria, and AT-R1 step 4, run at T095 and T096, keeps its own falsifier. T101's box is the landing of the release workflow and the version bump. T099, the publish, keeps its box. ## T086's files outside its slice row (Q7 (a)) - **Whose list this is.** Only openXdox-code#37's body carries one ("Files outside T086's slice row (Q7 (a)), to record in the next plan bookkeeping round"). The bodies of openDox-code#84 (T104), #78 and #79 (T101), openDox#18 (T087) and openDox#17 (T076) carry no such list: I read all five for "outside", "slice row", "bookkeeping round" and "single-writer", and for any list of files. Q7 is T086's prep question 7, which the holder ruled (a) on 2026-10-02: *"T086 also touches … recorded in the next plan bookkeeping round"*. - **Checked against the forge.** `gh pr view 37 -R opensoft/openXdox-code --json files` lists 18 files. All 13 the body names are among them (12 edited, one created). Four of the 12 are already in the P3-X row since #1225: `tests/test_session_snapshot.py`, `tests/protected_suite_respellings.yaml`, `tests/integration/test_assembled_surface.py` and `.github/workflows/validate.yml`'s `LEFT_OUT`. The other five of the 18 are in the row (`pyproject.toml`, `tests/test_dependency_direction.py`) or are its "gate and projection contributions" and their tests. - **The precedents I found, and used.** (1) #1225 rewrote the P3-E row's files cell to record what T075 did outside it: *"T075 (openDox-code#73, landed) edited `pyproject.toml`'s package data … and its tests; no server module."* (2) Landed bullets name the files a task touched beyond its row: T059's records that it joined the declared exclusion file's single-writer chain, and T075's lists the four files its PR changes. So the nine files not yet in the row are recorded in **both**: T086's `**Landed**` bullet, and the P3-X row's files cell, in P3-E's form (`T086 (openXdox-code#37, landed) also edited, outside the files above (Q7 (a)), … and created …`). The cell also says T086 edited neither route harness the row names, since the stand-in host in `tests/conftest.py` serves T104's token. That is true of the 18 files. - **What the row edits do to the tools.** `sharedfiles` gains one file name on one line, `conftest.py` in P1-J against P3-X, which stays `ordered A<B`. The P3-C edit moves nothing, because the row keeps the three names. No other tool output moves (see Validation). If the holder would rather leave the row alone, it is one cell to revert, and the bullet keeps the list. - **Not done here.** `plan.md` is outside this PR's file. Its single-writer table names openXdox-code's declared exclusion file as T041 → T043 → T044 → T061, and does not name T086's addition to it (65 → 66, `tests/test_column_contributions_governed.py`); T059's addition (67 → 66) was recorded in `tasks.md` only too. I noticed it and left it for the holder. - **A T104 observation, not a list.** T104's body says the one page reader the PR edits is `web/views/notebook.js`, not the three files the task text and the P3-C row name (`app.js`, `edit.js`, `staging-workbench-model.js`), which are untouched. The T104 bullet says so. Copilot's first finding (below) asked for the P3-C row to say so too, and `eee9e38f` does, in P3-E's form: `T104 (openDox-code#84, landed) edited `src/opendox/web/views/notebook.js` instead, … and created `src/opendox/console_access.py``. `plan.md`'s single-writer row for `staging-workbench-model.js` (T102 → T104) still names T104, and I left it with the other `plan.md` item. ## Review Copilot's reviews, each answered and each thread resolved (3 inline findings in all, 0 open): - **At `9a27b080`** (2 findings, low). **r4184226463, the P3-C row** still named the three readers T104 did not edit: fixed in `eee9e38f`, as above. **r4184226530, `plan.md`'s single-writer chain** for openXdox-code's declared exclusion file ends at T061 and omits T086 (and T059): an accepted limit, since this PR is `tasks.md` alone and `plan.md` is the holder's to order. It is the "Not done here" item above, and the reply says so. - **At `eee9e38f`** (no inline finding; two "previously missed" items on my T101 bullet): the release tag `v0.1.0` is made at the openDox-code commit T087 pins (`dede32b4`), not at T087's own commit in the openDox root, and the digests are recorded right after the artifact checks, before the wheel smoke test, not "before any third-party code" (the hash-locked tools and the package's own build have run by then). Both fixed in `252ef9f8`. - **At `3991b3a8`** (1 finding, r4184414419): the T101 bullet's preflight sentence read as if a yanked file were an exception. Fixed in `3f1790ee`: the preflight tolerates only a verified file at its verified digest and refuses any other file of the version, and any yanked one. ## Re-run at each merge sha My own runs, one sha at a time, each in a detached worktree of a bare clone, with a fresh venv per sha installed as that repository's `validate.yml` installs it (openDox-code: `pip install --only-binary :all: -c constraints-cpython312-linux.txt -e ".[runtime,test]"`; openXdox-code: `pip install -e ".[test]"`, which takes `opendox` from git at `dede32b4`). Python 3.12.3, pytest 8.4.2, node v24.21.0, `LANG=C.UTF-8`, run under `env -i` (no `GIT_*`, `XF_*`, `PG*` or `OPENDOX_*` variable inherited), an empty scratch `HOME`, and `TMPDIR` and pytest's `--basetemp` under `~/.cache/ticks-p3c-tmp`, outside `/workspace/projects/xFactory` (`git rev-parse` fails there). T104's red-first run was repeated with both under `~/.local/state/ticks-p3c/tmp` and read the same. There was no PostgreSQL service. I published, dispatched and approved nothing: my only calls to the forge and the indexes were reads (`gh pr view`, `gh run list`, `gh release list`, and two `GET`s of the indexes' JSON APIs). | task | at | what I ran | result | |---|---|---|---| | T087 | `e1e3a3c3` | `make pins`, then `make validate`, in the openDox root with both legs initialised (`git submodule update --init`) | both rc 0. `make pins` prints `ok code: gitlink == contracts/code-pin.yaml commit dede32b4b6f3`, `ok code: tree digest recomputes (c2672463b4d8…)`, the same two lines for `spec` (`f7ee3c763b3a`, `e81f8530d93e…`), `ok contracts/shape-pin.yaml: 10 copied shape file(s) match their digests`, and `pins ok`. `make validate` adds `manifest ok: openDox (opendox), 3 legs`. The commit changes `code` and `contracts/code-pin.yaml` only (2 files, 3 insertions, 3 deletions) | | T076 | `504324de` | `make validate` in the openDox root, legs initialised | rc 0, the same output as above. The commit changes `README.md` alone (82 insertions) | | T076 | `504324de` | the README's two lines, byte for byte, against batch H's 10.3 addendum in the ratified change's `tasks.md` at `ba6bb870` (`openspec/changes/add-neutral-product-standalone-operability/tasks.md:1535-1537`), extracted by a script | the addendum's commands are `pip install "opendox[local]"` and `opendox generate-and-open --local …`. Each is a README line exactly equal, once. The `…` is `e2 80 a6` (U+2026), after one ASCII space | | T076 | now | **the published-package caveat.** `GET https://pypi.org/pypi/opendox/json` and `https://test.pypi.org/pypi/opendox/json`; `gh release list` and the tags of opensoft/openDox-code; `gh run list --workflow release.yml` | 404 and 404 (2026-10-05T12:38Z); no release; 0 tags; no run. So the first line cannot be followed literally today, and the README's dated paragraph names the stand-in, `pip install "./code[local]"` from a recursive clone. I did not run the stand-in, nor the README's start | | T101 | `d59f3f26` | `tests/test_release_workflow.py` (the falsifier: "in the required check"), alone | `129 passed in 35.65s`. It is the only test the PR added | | T101 | `dede32b4` | `pyproject.toml`'s version | `version = "0.1.0"` (line 23), against `0.0.0` at `d59f3f26`. `readme = "README.md"` is there too | | T104 | `32943cbf` | `tests/test_console_token_delivery.py` and `tests/test_console_token_view.py` (the falsifier: "its PR's test, on the standalone serve"), alone, in one invocation | `166 passed in 87.97s` (the second file runs its node cases) | | T104 | `38d3350e` (#84's base: the commit before the squash) | the same two test files and `tests/standalone_child.py` (the helper #84 extends), taken from `32943cbf`, run against the base's own tree in a venv installed there. The task text does not ask for this run. I made it as #1226 did for T103 | `158 failed, 1 passed, 7 errors` in 128s, of the 166. The one pass is `test_a_server_outlives_no_killed_run`, a case of the tests' own server helper, which does not touch the product. The 7 errors are the node file's. Two cases hang at the base, and I cut each at 60s with `pytest-timeout` 2.4.0, which I added to that venv only. My first run, without it, hung at the 23rd case and I killed it | | T086 | `56e1c238` | `validate.yml`'s `pytest` step, lone: `python -m pytest -q --junitxml=pytest-report.xml --deselect "$LEFT_OUT"` with `LEFT_OUT` the 32-entry node, then the step's own triple script over the report | `1095 passed, 4 skipped, 1 deselected`. Triple: `selected=1099 passed=1095 skipped=4 failures=0 errors=0`; pins `selected>=1099 (margin 0) passed>=1095 (margin 0) skipped==4` | | T086 | `56e1c238` | `tests/test_dependency_direction.py`, alone | `17 passed` | **Not re-run, and why.** - **The whole openDox-code suite at any sha**, and so the whole-suite numbers in the T101 and T104 bullets (`4005 passed, 11 skipped` and the like). They are the PRs' own, read from their bodies. They need PostgreSQL and hours. - **T101:** the workflow itself. I ran none of its jobs or steps, its linters, its mutants, or its live reads (the environment and approval steps). The falsifier's other half, the `build` job over the pinned commit, is T099's. Nothing was dispatched. - **T104:** the PR's 90 mutants, its Chromium run, and its composed runs against openxFactory and openXdox-code (they need those checkouts composed with `scripts/`). - **T086:** F5.2 whole, F9.1's other readings, and the composed runs (F5.2's seven suites, the declared-excluded files, 12.5's governed set, the two harness modules as #84 ran them, the 32-entry digest). I tried F5.2's pytest loop composed with `scripts/` from my openxFactory clone, and all seven suites stop at collection (`corpus_adapter_openxfactory.adapter: the pinned openDox corpus-adapter interface is not at …`), because the clone's nested openDox leg is not initialised. I did not pursue it: F5.2 closes at T089. So the bullet's composed numbers are the PR's own. - **T087:** the PR's three other digest recomputations, and its half-move experiments. `make pins` recomputes the tree digest itself. - **T076:** the PR's fresh-venv install and start of the stand-in, and its checks against the pin (the bundled PostgreSQL's lifecycle, the `Host` check, the printed lines). ## Validation - **`python3 scripts/validate-openspec-cli-pin.py --all --strict`**, the pinned CLI 1.12.0, from the openxFactory root, at this head and at `main` `ca1c1486`: both rc 0, `Totals: 110 passed, 1 failed (111 items)`, `0 UNDISPOSITIONED failures`. The one failure is the accepted exception for `add-chain-attestation` (Brett Heap, 2026-09-05). The two outputs are identical line for line but the working directory in the third. - **The plan-graph tools** (`depcheck`, `chaincheck`, `chaindirect`, `arrowcheck`, `phasecover`, `sharedfiles`, `qcheck`, from the lane's `plantools`), this branch against `main` `ca1c1486`: the output is identical except two things. The box count moves, 78 ticked of 96 on `main` and 83 here. And one `sharedfiles` line gains `conftest.py` from the P3-X row edit (above): `P1-J … vs P3-X … share ['.github/workflows/validate.yml', 'conftest.py', 'test_assembled_surface.py', 'validate.yml']: ordered A<B`. Both read 96 tasks, `cycles: none`, `single-writer chain gaps: 0`, `arrow mismatches: 0` (83 arrows), and `qcheck` reads `headers checked: 27 of 27; mismatches: 0`. - **Tests that read plan 034's `tasks.md`:** none. `git grep -nE 'specs/034|opendox-standalone-operation' -- tests scripts .github` finds nothing, and this PR touches no code. - **Every 8-character sha in the added text resolves** with `git rev-parse` in openDox-code, openDox, openXdox-code or openxFactory: 17 of 19. The other two, `c2672463` and `97536dbe`, are tree digests, and I read both in the openDox root's `contracts/code-pin.yaml` (at `e1e3a3c3` and `d5098297`). - **The open PRs that edit the same file.** None edits `specs/034-opendox-standalone-operation/`. `git merge-tree --write-tree` of the head before the merge of `main` (`eee9e38f`) with each open PR's head reported no conflict (rc 0), and `main` has since taken #1234, which touches four test files only. The open PRs now are #1233 (T097's DRAFT, which edits the openspec change's `tasks.md`, not this file), #1211, #1209, #1138, #594 and #518. Lane: openxfactory-4 (openXfactory-4-openDox_extraction) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Brings the branch up to main after the plan-034 landings from lane openxfactory-4. No conflicts: of the files this branch changes, main touched none, and the only main change under tests/doc-health/ is test_sentinel_vocabulary.py, which this branch does not edit. Lane: openxfactory-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…odel (for #1201) SonarCloud flagged the new doc-health-py314 job's pip step (githubactions S8541): without --only-binary :all:, a package could run a setup script. Every package in requirements/hermes-runtime-contracts.lock ships a 3.14 wheel (17 of 17 on the job's first runs and on a local 3.14.7), so the step now installs as former-id-arrival-gate.yml and openxdox-consumer-gate.yml do: --require-hashes --only-binary :all:, in a literal block because ":all: -r" is not a plain YAML scalar. pytest-suite.yml keeps its own form. The pathlib_314 fixture returns its model instead of yielding it (SonarCloud python S9100): it has no teardown of its own, monkeypatch undoes the swap. Lane: openxfactory-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 4 days and 2 hours by commenting |
Takes #1211 (doc-health probes fail closed, and a Python 3.14 doc-health leg) so the branch and the main baseline of the full-suite comparison share one base. Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and staging-workbench-model.js row (bookkeeping) (#1244) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Authored by lane openXfactory-3, delegated by lane openxfactory-4 (#656 6000631668) **Plan 034, the single-writer table in `plan.md`: two rows that the landed history no longer shows (bookkeeping).** openxFactory#1235's writer recorded both under "Not done here" and left them for the holder. This is release-1 follow-on slice C, on Brett Heap's word (#656 comment 6000582654, "openDox-code follow-ons first"). It carries no Arc trailer. The diff is two table cells in `specs/034-opendox-standalone-operation/plan.md` (one commit, 2 insertions, 2 deletions). No other line of `plan.md` and no other file changes. ## What changes **1. openXdox-code's declared exclusion file.** The chain read `T041 → T043 → T044 → T061`. It now reads `T041 → T043 → T044 → T059 → T061 → T086`, with each new link carrying its effect on the file: - T059 (`tests/test_seam_assembly_beside_gate_and_projection.py`'s entry leaves, 67 → 66) - T086 (`tests/test_column_contributions_governed.py` joins under `doc_health`, 65 → 66) **2. openDox-code `src/opendox/web/views/staging-workbench-model.js`.** The row read `T102 → T104 (the console token's reader)`. It now names T102 alone, the one phase-3 slice that edits the file, and says where T104's reader went: `web/views/notebook.js` instead (openDox-code#84), so no writer follows T102 here. ## Every fact, checked against tasks.md and the landed PRs The file named by row 1 is `tests/declared_exclusion.yaml` in openXdox-code. Its history on `main` (the GitHub commits API for that path, newest first) lists exactly five commits. The first created the file with 66 files (its message, and tasks.md's landing note), and the patches of the other four (T044, T059, T061, T086) move it as the third column says. T043's PR (#32) is not in that history: it moved no entry, as the row already said. | task | openXdox-code PR → commit | what it did to the file | tasks.md says | |---|---|---|---| | T041 | #30 → `5fbd188e` | created it: 66 files, four reasons | "66 files under all four reasons" | | T043 | #32 → `4610bca5` | not in the file's history | "a re-run at T040's pin, which moved no entry" (the row's own words, kept) | | T044 | #33 → `6158151e` | `count` 66 → 67; `tests/test_seam_assembly_beside_gate_and_projection.py` joins under `doc_health` | "the declaration holds 67 files" | | T059 | #35 → `839492d9` | `count` 67 → 66; that same entry leaves | "(67 → 66), and T059 joined that file's single-writer chain, T044 → T059 → T061" | | T061 | #36 → `6a3b93b9` | `count` 66 → 65; `tests/test_snapshot.py` leaves, and its `consumer-schemas` reason with it | "(66 → 65)" | | T086 | #37 → `56e1c238` | `count` 65 → 66; `tests/test_column_contributions_governed.py` joins under `doc_health` | "65 → 66, Q9 (a)" | Row 2. openDox-code's history for `src/opendox/web/views/staging-workbench-model.js` ends at T102 (#81 → `0116293a`); T104 (#84 → `32943cbf`) is not in it. The same API read for `src/opendox/web/views/notebook.js` lists #84 as its only edit since the adoption. tasks.md's T104 landing note says the same: "`web/views/notebook.js`, the one reader the PR edits … `app.js`, `edit.js` and the staging workbench's JS, which the task text names as the readers, are untouched". I also read the neighbouring `lens.js` row (T088 → T102). It agrees with the history (#65 → `d0d3cee6`, then #81 → `0116293a`), and I left it. ## Plan tools, before and after The seven tools are lane 4's copies (`depcheck`, `chaincheck`, `chaindirect`, `arrowcheck`, `phasecover`, `sharedfiles`, `qcheck`, with `aftergraph.py` and `qmap.py`), run from the feature directory, `specs/034-opendox-standalone-operation/`, at `main` `12753f27` and at this head `4847b890`, each in a full clone. `qcheck` takes `qmap.py` as its argument. | tool | `main` `12753f27` | head `4847b890` | |---|---|---| | `depcheck` | `tasks: 96 nodes: 108 … edges: 270`, `cycles: none`, `cycles with the Lands-with groups merged [['T011', 'T030'], ['T031', 'T036'], ['T045', 'T046', 'T047']] : none` | byte-identical | | `chaincheck` | `single-writer chain gaps: 0` | byte-identical | | `chaindirect` | 42 lines, including `openXdox-code exclusion file T044->T061: transitive ['T061', 'T059', 'T052', 'T049', 'T047', 'T044']` | byte-identical | | `arrowcheck` | `arrow mismatches: 0`, `arrows checked: 83` | byte-identical | | `phasecover` | `phase 1 → T049: 32 tasks; not before the checkpoint: []; after it: ['T048']`; `phase 2 → T063: 17 tasks; not before the checkpoint: []; after it: []`; `phase 3 → T089: 29 tasks; not before the checkpoint: []; after it: ['T099']`; T095, T096, T097 each `ancestors include T076? True`, `T089? True` | byte-identical | | `sharedfiles` | 87 lines: 82 `ordered`, 5 `NOT ORDERED` (P1-A/P1-B, P1-A/P1-D, P1-B/P1-D, P1-H/P1-G, P3-I/P3-E); `P3-S edit and chat by scope [T102] vs P3-C the console token [T104] share ['staging-workbench-model.js']: ordered A<B` | byte-identical | | `qcheck` | `headers checked: 27 of 27; mismatches: 0` | byte-identical | Each of the seven outputs was compared with `cmp`, and each is identical. That is the expected reading, and it is the reason this section carries two more checks below, because none of the seven can see the two rows: - `chaincheck.py` and `chaindirect.py` hold their chains as literals in a `CHAINS` dict (the exclusion file's is still `["T041", "T043", "T044", "T061"]`), so they test tasks.md's After graph against a copy of the plan's chains, never against `plan.md`'s table; - `depcheck`, `phasecover`, `sharedfiles` and `qcheck` read `tasks.md` and `clarify-questions.md` only; - `arrowcheck` reads `plan.md`'s `## Dependency graph` section, which ends before `## Parallel slices`, where the table sits. So the stale spots cannot leave a tool's output, and the unchanged outputs show that this edit moved nothing the tools read. Two supplementary runs, from copies kept outside the repository, test the new rows themselves: 1. **`chaincheck` and `chaindirect` with the exclusion chain set to the new row's `["T041", "T043", "T044", "T059", "T061", "T086"]`** (the one literal changed in a copy of each). `chaincheck`: `single-writer chain gaps: 0`. `chaindirect`, the five exclusion-file pairs: ``` T041->T043: DIRECT T043->T044: DIRECT T044->T059: transitive ['T059', 'T052', 'T049', 'T047', 'T044'] T059->T061: DIRECT T061->T086: DIRECT ``` Every pair is ordered by the After graph. T044 → T059 is transitive (T059's After list does not name T044), and the order holds through T052 ← T049 ← T047 ← T044. That is an ordering the graph already carried, not a new edge, and tasks.md's T059 note states the pair. 2. **A row check** (`rowcheck.py`, a short script of mine that reads the two rows straight from `plan.md` and tests the exclusion row against the After graph and against the order of the landed commits above): ``` main 12753f2 head 4847b89 chain in plan.md: T041 -> T043 -> T044 -> T061 T041 -> T043 -> T044 -> T059 -> T061 -> T086 equals the landed order: False True chain gaps: 0 0 staging row names T104 as a following writer: True False writers named before the colon: ['T102', 'T104'] ['T102'] ``` ## Gates, at `main` `12753f27` and at this head `4847b890` Each in its own full clone named `openxFactory`, with the `openXwallet`, `openXdox` and `openDox` submodules initialized recursively as `pytest-suite` does. The venv was built by CI's own `pip install --require-hashes -r requirements/hermes-runtime-contracts.lock`; Python 3.12.3, node v24.21.0, the pinned OpenSpec CLI 1.12.0, `LANG=C.UTF-8`, every `GIT_*` and `XF_*` variable unset. | gate | `main` `12753f27` | head `4847b890` | |---|---|---| | `python3 scripts/validate-openspec-cli-pin.py --all --strict`, and CI's form `--all --no-cache` | rc 0 each: `Totals: 110 passed, 1 failed (111 items)`; `every target validated --strict with 0 UNDISPOSITIONED failures`; 1 accepted exception (`add-chain-attestation`, accepted by Brett Heap 2026-09-05) | identical, but for the clone path in the CLI's command line | | `scripts/doc-health.py --single-repo . --as-of 2026-10-05` | rc 0: `Findings: 31 critical, 26 error, 69 warning, 20 info. New regressions vs previous report: 0.` | identical, byte for byte but for the clone path | | the validators `.github/workflows/` invokes on a pull request: `validate-former-id-arrival.py`, `validate-clearing-dispatch.py`, `validate-factory-identity.py`, `validate-signed-execution-chain.py --require-pinned-wallet-vocabulary` | rc 0 each | identical | | `validate-release-tag-gate.py` | rc 0: `no release surface change: none of the 2 changed path(s) between 8a37a08 and 12753f2 …` | rc 0, the same verdict over this PR's range: `none of the 1 changed path(s) between 12753f2 and 4847b89 …` | | the repository's other validators, run directly: `validate-sequenced-after.py --ledger-diff`, `validate-code-surface.py`, `validate-target-release.py`, `validate-pin-registrations.py`, `validate-document-catalog.py`, `validate-scope-globs.py` | rc 0 each | identical | `openreposhape-pin-gate` needs a checkout of its own pin and is left to CI. The one output line that differs between the two columns is the release-tag gate's own commit range. The doc-health reading depends on how far the submodules are materialized, and the same on both sides. With the nested legs initialized (`git submodule update --init --recursive openXdox openDox`, as `pytest-suite` does) it reads 26 errors, at `main` and at this head. Without `openXdox/spec` it reads 22, at both, because `release-inventory-drift` then skips its comparison and the four extra findings (`scripts/hermes_runtime_validation/catalog.py`, `…/release.py`, `scripts/validate-hermes-runtime-contracts.py` and `scripts/validate-ideation-dashboard-contracts.py`, each "bytes differ from the digest 'contract-v4.0' records") do not appear. They are on `main` already, and this PR touches none of those files. ## pytest **CI's `pytest-suite` at the exact head** (run 37358868274): completed, success. `selected=9376 passed=9370 skipped=6 failures=0 errors=0`; `floors: selected>=7050 (margin 2326) passed>=7044 (margin 2326) skipped==6`; the freshness verifier and the vector replay both `passed`. **My own full run**, CI's command (`python3 -m pytest tests/ -q -m "not postgres"`, with `GIT_CONFIG_GLOBAL=/dev/null` and `GIT_CONFIG_NOSYSTEM=1` set as `pytest-suite.yml`'s header describes, and no other `GIT_*` or `XF_*` variable), once at `main` `12753f27` and once at this head `4847b890`, in the two clones above: - both read `1 failed, 8956 passed, 7 skipped, 338 deselected, 9 warnings, 391 subtests passed` (2235 s at `main`, 2231 s at this head); - the one failure is the same node at both: `tests/domain_profile/test_hermeticity_probe_routes.py::test_the_bare_unittest_route_is_detected_as_unguarded` (`assert 0 != 0`). It is an artifact of how I ran: the test makes its child "bare" by stripping the `PATH` entries under the system temp directory, and I had put pytest's `--basetemp` beside `TMPDIR` instead of under it, so the guard's shim directory stayed on the child's `PATH`. Re-run alone with `--basetemp` under `TMPDIR`, it reads `3 passed` at `main` and `3 passed` at this head. CI, with the default basetemp, reads 0 failures. ## Observations, not changed The brief limits this change to exactly these two spots, so these stay as they are, for the holder: - `plan.md` line 190 (the "Source layout" map, outside the single-writer table) still lists `src/opendox/web/app.js, web/views/edit.js, staging-workbench-model.js` against T104. It is the plan's statement of the surface T104 was cut to edit. tasks.md's P3-C row and T104's landing note record the divergence. - The tools' `CHAINS` literals carry the old exclusion chain, as above. They are lane 4's copies and I did not edit them. - The ratchet row (`tests/test_dependency_direction.py`, `T040 → T059 → T086`) is about the ratchet's values, and I read the two other edits of that file in the history, T043 (#32, docstring and comment text) and T061 (#36, a census of scripts under `src/`). Neither moves a ratchet value, so I left the row. ## Review CI, read from the check-runs API at the exact head `4847b890`: every check-run listed is `completed` and `success`: `SonarCloud Code Analysis`, `clearing-dispatch-gate`, `copilot-pull-request-reviewer`, `former-id-arrival-gate`, `lane-line`, `merge-master-approval`, `openreposhape-pin`, `openspec-cli-pin`, `openxdox-consumer-gate`, `pytest-suite`, `release-tag-gate`, `signed-execution-chain-gate` and `wallet-validation`. (`lane-line` runs again on each edit of this description, so the API lists it more than once.) Copilot: the repository's `copilot_code_review` ruleset (`review_on_push`, `review_draft_pull_requests`) requested it when the draft opened, and a GraphQL read of the PR's `reviewRequests` already listed `copilot-pull-request-reviewer` before I made any request, so I made none. Its review is at the exact head `4847b890`, state `COMMENTED`: "Approval recommended", "Both documentation corrections match the recorded task outcomes, with no unresolved issues", `Findings: None`. It left 0 inline comments and the PR has 0 review threads, so there was nothing to classify under the convergence rule (#656 comment 5988818366) and no thread to act on. Main moved after this branch's base: `12753f27` → `0d143582` (#1211, the doc-health catalog's probe-error handling: `scripts/` and `tests/` only, no `specs/` file). The strict-up-to-date policy is off in the ruleset (`strict_required_status_checks_policy: false`) and GitHub reports the PR mergeable, so I did not merge main, and every result above is at the base it names. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Brings in origin/main 0f2a87f (#1211 doc-health catalog fail-closed with a Python 3.14 leg, #1244 plan 034 bookkeeping). It overlaps nothing in the dashboard lane files. Merged clean. Lane: openxfactory-5 (openXfactory-5) Co-Authored-By: Claude Opus 5.5 <[email protected]>



Lane: openxfactory-1
Follow-up to #1197 (landed as #1200), for #1201.
The rulings this implements
scripts/doc_health/catalog.py's six must-refuse lines, plus the six gate-disabling read-side sites;OSError, through one strict probe primitive;tests/doc-health.scripts/pin_containment.pyso it detects a symlink loop itself, the same way on every Python version;doc-health-py314stays advisory. No ruleset requires it and this PR touches no ruleset. The required set onmain(read fromrepos/opensoft/openxFactory/rules/branches/main) is unchanged:signed-execution-chain-gate,lane-line,former-id-arrival-gate,openspec-cli-pin,wallet-validation,pytest-suite,release-tag-gate,openxdox-consumer-gate.Why
From CPython 3.14,
Path.exists,is_dir,is_fileandis_symlinkanswer False for a node whosestatfails for any reason. Through 3.13 they raise everyOSErrorthat does not name the node's absence. The survey measured the package on real interpreters: on 3.14 the writer's no-follow guard passed a symlink it could not stat, an existing immutable record read as "nothing there", and six gates switched themselves off. CI's 3.12 hid all of it by crashing with a rawPermissionError.What changes
1. The six gates now use one strict primitive (
scripts/doc_health/fs_probe.py, new leaf, stdlib only). Each probe is one explicitos.statoros.lstat, with the 3.12/3.13 allow-list written out: ENOENT, ENOTDIR, EBADF and ELOOP read as absent, and every other errno propagates raw. On 3.12 and 3.13 each site behaves exactly as before; on 3.14 it stops swallowing errors. Each site carries a one-line comment saying why it must refuse. The sites:catalog_baseline.is_baseline_completeandload_baseline);runner.main's--previous-report);preflight._entrypointsandrun_preflight'sstack.yaml);families._pinned_arm);ideation_routing._aggregation_backlog_findings);ideation_readiness.load_catalog_tags).I re-checked each site's verdict while editing it. The catalog-tag guard's flip is latent for now: until the facet projection lands,
{}andNonederive the same clusters.2. The catalog writer's probes refuse what they cannot check (
catalog.py). The probes changed are_refuse_foreign_node,_occupied,_read_claims, and the run-directory probes inwrite_snapshotandwrite_run. They now classify a node by one explicitlstat. A failure other thanFileNotFoundError/NotADirectoryErrorbecomes a controlledCatalogErrorbefore anything is claimed or written._unchecked_refusal, which_own_mode's refusal now uses too) names the node by its path under the catalog root and the errno by name. It never interpolatesstr(exc), whose filename is the host-absolute path CI's sweeper redacts.One lstat primitive after merging #1200. #1200 landed a new writer walk,
_walk_run_tree, whose_walked_modedid the same job as this branch's lstat helper. The merge keeps #1200's walk exactly as landed, message included. Both paths now share one primitive,_lstat_mode, which returns(mode, None),(None, None)for absence, or(None, exc)._walked_mode,_own_modeand_node_modeare thin wrappers over it. They differ only in how they name a refused node: the walk relative to the run directory, as landed; the scan and the writer's probes relative to the catalog root. I kept it this way because the errno classification (which errors mean absence) is the shared rule, while the naming is each caller's. It is now the onlyos.lstatincatalog.py.3.
pin_containmentdetects symlink loops itself (ruling 1(a)). Python 3.12's non-strictPath.resolve()stat-ed its own result and raisedRuntimeErroron ELOOP. 3.13 dropped that check. So on 3.13+,resolve_in_rootlet a looping pin record through, and it was reported as merely absent.boundary_dirlikewise refused a looping root as BOUNDARY_MISSING rather than UNRESOLVABLE. Both functions now stat what they resolved and refuse ELOOP as UNRESOLVABLE, with no version test. The reason text names no path.4. The CI leg,
.github/workflows/doc-health-py314.yml. It runspython -m pytest tests/doc-healthonactions/setup-python3.14, with the same nested checkout, gitlinks and hash-pinned lock aspytest-suite. It is a job of its own, not a matrix onpytest-suite: a matrix renames that required job's check-runs, and its pinned context would never report.tests/doc-health/test_py314_leg.pypins both halves of that. The job is advisory (ruling 2(a)).Tests
pathlib_314fixture (tests/doc-health/conftest.py): runs a test natively and again under CPython 3.14's own query bodies, transcribed fromLib/pathlib/__init__.py. This lets CI's 3.12 prove the code no longer asks pathlib.ProbeDenialinjects a denial atos.stat/os.lstatfor named nodes;chmodwould deny nothing to root.test_fs_probe.py: the errno table for the primitive, and pathlib parity on a real tree. Each of the six gates is driven with EACCES and EIO under both models and must raise. Under the 3.14 model each test also shows the old probe's switched-off answer for the same node.test_catalog.py:fs_probe's), and no refusal carries theOSError's own filename or strerror.test_tag_hygiene_pinned_targets.py: the existing loop test is unchanged and now passes on 3.14. New cases run under 3.13's ownresolvebody, patched ontoPathon any interpreter: a self-loop, a two-link cycle, an intermediate-directory loop, and a looping root (natively too).How verified
Local, at the merge head (full clone, gitlinks initialized):
tests/doc-healthon 3.12.3:2157 passed, 7 warnings in 349.05stests/pin_registrations tests/packet_referenceon 3.12.3:99 passed in 8.55stests/doc-healthon 3.14.7:2157 passed in 337.87stests/pin_registrations tests/packet_referenceon 3.14.7:99 passed in 6.85s--no-bin, own install, bin and cache dirs) and removed after the run.CI: at head
bad16322(after merging main8a37a087), every check is success:pytest-suite(selected=9512 passed=9506 skipped=6 failures=0 errors=0, run 37353720904),doc-health-py314(Python 3.14.7, 17 of 17 locked dists installed as wheels under--only-binary :all:,2157 passed, run 37353720711),former-id-arrival-gate,lane-line,openspec-cli-pin,wallet-validation,release-tag-gate,signed-execution-chain-gate,openxdox-consumer-gate,clearing-dispatch-gate,merge-master-approval,openreposhape-pin,SonarCloud Code Analysis. Post-merge local runs at that head:tests/doc-health2157 passedon 3.12.3 and on 3.14.7;tests/pin_registrations tests/packet_reference99 passedon both.Residual (known, not in this PR)
glob/rglob/os.walklossy-listing gap that exists on 3.12 too (§8): see the #1201 survey. Scope (b) excludes them.catalog.pyrefusals that still interpolate raw text or a host path (lines at this head). This PR does not touch these lines:_load_yaml_json(835, 838)_symlink_refusal(866)_unlisted_refusal(965)_refuse_foreign_node's "occupied by a" (1304)_unenumerable_refusaland_walked_mode, which carry the: {run_dir}suffix (1344, 1363)_refuse_foreign_descendants(1497, 1503)_read_record(1567)_holds_exactly(1585)_recorded(1626, 1633)write_snapshot's closed-run refusal (1749)scripts/doc_health/(the survey counts 607 in 96 scripts), includingpin_containment.boundary_dir's ownis_symlink/exists/is_dir. A stat failure there still refuses, just worded "missing contracts/".Path.resolve()absorbs otherOSErrors on every version (survey §8)._read_claims' listing of the claims directory (catalog.py:1119,sorted(claims_dir.iterdir())): the directory's ownlstatnow refuses, but a directory thatlstatcan classify and the process cannot list (mode 000) still raises the rawPermissionError, host path included. It fails closed: nothing is claimed or written and the tree is unchanged. Pre-existing; found by an independent review of this PR on 3.12.3 and 3.14.7.readiness_dispatch.py:429-432): its deliberateexcept Exception("never fail the nightly") turns the guard's rawOSErrorinto an exit-0 "SKIPPED" line that carriesstr(exc). No verdict changes today, because the guard is latent until the facet projection lands; after that, this must-refuse site logs a skip in the nightly instead of failing it.🤖 Generated with Claude Code