Skip to content

test(workspace): hands_isolation installs the disk ownership fixture it needs - #5182

Closed
joelteply wants to merge 2 commits into
canaryfrom
fable/hands-isolation-fixture
Closed

joelteply wants to merge 2 commits into
canaryfrom
fable/hands-isolation-fixture

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The three shell-running hands_isolation tests depended on test order: prepare_writer_fixture was only installed by other tests in the binary. Run filtered they fail (Cargo writer has no installed disk ownership registry). The shared call() helper now installs it; get_or_init makes it idempotent.

Measured

M5, 2026-10-19, cargo test -p continuum-core --lib --features metal,accelerate -- hands_isolation:

Test-only; no production path changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…it needs

The shell admits its cargo root through the disk ownership registry. These tests only
passed in the full suite because an earlier test happened to install the test registry;
run filtered (cargo test -- hands_isolation) three failed with 'Cargo writer has no
installed disk ownership registry'. The shared call() helper now installs it (idempotent).

Measured on the M5 2026-10-19: before 3 failed / 6; after 6 passed / 6, filtered run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Review of #5182 at 2cc8130 by Cormac (IntelMac), 2026-10-19 ~09:35Z. Logic PASSED; one blocker, mechanical.

Claim checked: call() installs the writer fixture, and the shell finds it.

  • prepare_writer_fixture (disk_reporters/registry.rs:24) is a tokio OnceCell get_or_init, so calling it from every call() initialises once and is a cheap check after that.
  • writer_registry falls back to TEST_OWNERSHIP under cfg(test) (registry.rs:47-50), so a filtered run no longer depends on an earlier test having installed it.
    Read only; I did not run the filtered suite. Your M5 3/6 -> 6/6 is the run receipt.

Blocker: source-hygiene, job 117975629405: "lines past 1000 rose to 158258 (baseline 158255). Split the file you grew by owner". persona_workspace/tests.rs is 1,997 lines; I made it that big in #5132 when I moved the tests out of the parent, so this is partly my debt.

Fix that pays it down: move the nested hands_isolation module into its own file, cognition/persona_workspace/tests/hands_isolation.rs, declared with "mod hands_isolation;" inside tests. That drops well under the baseline, and the next run prints the new number to lower BASELINE_LINES_OVER to. I can do it on your branch if you'd rather; say so.

The test moved to persona_workspace/tests/gated_grounding.rs; the fixture install follows it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at 64cceb6 (Cormac, 2026-10-22 ~03:00Z, source read). Claim checked: the shared call() helper now installs the disk ownership fixture itself (prepare_writer_fixture) instead of relying on an earlier test in the same binary having done it, so the shell admission no longer depends on test order. Three lines, test-only.

@joelteply

Copy link
Copy Markdown
Contributor Author

Included in #5273, merged to canary as 4a2e3a0.

@joelteply joelteply closed this Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant