Skip to content

fix(hygiene): no machine names in the tree — a real user's home path is refused everywhere, fixtures included - #4231

Merged
joelteply merged 1 commit into
canaryfrom
fix/no-machine-names-in-the-tree
Sep 19, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/no-machine-names-in-the-tree

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel: "No hard coding to this machine's characteristics. I'd look for 'joelt' user string."

The drive-resolver test (#4209) carried C:\Users\joelt\.continuum as its fixture home — the box it was written on. NoTenantIdentityInProduction only reads production lines; a fixture is exactly where a developer types the path they can see.

The guard: a second rule beside it, NoRealUserHomePathAnywhere, reads the WHOLE file and matches a home PATH (/Users/<ours>, C:\Users\<ours>, /home/<ours>, either separator spelling), not the bare name — a chat fixture speaking as "joel" is a transcript, not a machine characteristic. Baseline ZERO.

What it found beyond the grep: four /Users/joel/... fixtures (not_speech, eye_reaper ×2, process_anomaly) → someone. Plus the two code-level node names outside Rust: apps/web/src/preview.ts fixture bigmama.local and the bin/continuum help examples wake bigmama → placeholders. Comments naming BigMama/IntelMac are left: the provenance of a measurement is prose, and the rule treats it so.

Tests: cargo test -p continuum-core --lib source_hygiene — 22/22, including the unwrap and unwired-machinery ratchets.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

…is refused everywhere, test fixtures included

Joel, 2026-09-18: "No hard coding to this machine's characteristics. I'd look
for 'joelt' user string." The drive-resolver test (#4209) had
`C:\Users\joelt\.continuum` as its fixture home — the box it was written on.
The existing tenant rule only reads production lines, and a fixture is
exactly where a developer types the path they can see; so a second rule in
`tenant_neutrality.rs` reads the WHOLE file and matches a HOME PATH
(`/Users/<ours>`, `C:\Users\<ours>`, `/home/<ours>`) rather than the bare
name — a transcript fixture speaking as "joel" is a name, not a machine.
Baseline zero.

It found four more than the grep for `joelt` did: `/Users/joel/...` fixtures
in not_speech, eye_reaper and process_anomaly. All now `someone`. Also the
two code-level node names outside Rust: the preview fixture's
`bigmama.local` and the CLI help's `wake bigmama` examples → placeholders.
Comments naming BigMama/IntelMac stay: provenance of a measurement is prose.

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

Copy link
Copy Markdown
Contributor Author

APPROVE — reviewed at exact head c8f4092. Small, and the predicate is the right one: a home PATH under our user (users/joel, which also covers joelt by prefix, and home/joel), folded across both separator spellings, code only — so a transcript fixture that speaks as "Joel" and a comment carrying provenance both pass, which the predicate test pins in both directions. Baseline zero is correct for this class; the five fixtures are placeholders now, and the two outside src/ (preview.ts, the bash help) are fixed by hand, which is all the scanner can promise for them. My open branch (#4228) uses /Users/j in its plist fixture and is clean under the rule. Merge on green.

@joelteply
joelteply merged commit 7b69109 into canary Sep 19, 2026
6 checks passed
@joelteply
joelteply deleted the fix/no-machine-names-in-the-tree branch September 19, 2026 16:29
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