Skip to content

Test fixtures ship the maintainer's home directory and OS username into every install #467

Closed

Description

@fdaviddpt

Found by the round-1 release audit gating v0.24.0. This blocks the tag — row ships-local-state, which the ranking table marks blocking unconditionally, because the release is the mechanism by which it takes effect.

Symptom

Real absolute paths carrying a username survive in committed test data:

/Users/<user>/.codex/skills/.system/{imagegen,openai-docs,plugin-creator,skill-creator,skill-installer}/SKILL.md
/Users/<user>/.codex/plugins/cache/dpt-plugins/remember/0.23.0/skills/remember/SKILL.md
/Users/<user>/.codex/plugins/cache/dpt-plugins/remember/0.23.0/.codex-plugin/migrated-command-skills/...
/private/tmp/claude-501/-<user>-Documents-claude-remember/<uuid>/scratchpad/codextest

Location

Two files, confirmed by counting occurrences at both ends of the range:

tests/fixtures/codex-rollout.jsonl        2
tests/test_codex_upsubmit_stdout_451.py   2

At v0.23.0 the same search returns nothing. Introduced by this release's own delta.

Mechanism

tests/fixtures/codex-rollout.jsonl was committed as a real capture, deliberately sanitised: cwd, git and turn_context were replaced with /sanitized/project/dir, and tests/test_extract.py describes it as "a real (sanitised) Codex rollout". The sanitisation operated on the fields somebody thought to look at. It missed two nested JSON-string blobs on lines 6 and 7, where the paths are embedded inside a string value rather than sitting at a field the sanitiser walked.

That is the whole lesson: a sanitiser keyed on known fields cannot see a path inside serialised content. The fixture is real, which is what made it valuable, and real is what made this possible.

.agents/plugins/marketplace.json declares "source": "local", "path": "./", so the install copies the tree — tests/ included. The fixture's own text is the proof, since it contains the very install layout: .../plugins/cache/dpt-plugins/remember/0.23.0/skills/....

Why it blocks rather than ships behind an issue

Per the ranking table, ships-local-state blocks because tagging is what makes it take effect. Before the tag this is a file edit. After it, it is in the install cache of every user who installs 0.24.0, and undoing it needs another release.

No embargo applies: the row's own note says it is public the instant it ships, so there is no private window an embargo could protect. The paths are already on public main, so part of the exposure has already happened — the tag is what pushes it into installs.

What would settle it

Re-sanitise both files, treating nested serialised content as in scope rather than only top-level fields. Then add a guard so this cannot recur: a test that greps the tree for an absolute /Users/ or /home/ path outside of documentation, and fails. This repository already has the shape for it — tests/test_printed_lines_ascii_405.py and tests/test_content_invariants.py both enforce tree-wide invariants.

Pair the guard with a positive control: an assertion that no home path exists passes just as well when the search is broken and matches nothing.

Note the guard is the durable half. Re-sanitising fixes today's instance; only a check that runs on every diff prevents the next real capture from carrying the next thing nobody thought to look at.

Activity

  1. added
    bug
    priority:high
    on Aug 29, 2026
  2. self-assigned this
    on Aug 29, 2026
  3. added a commit that references this issue on Aug 29, 2026
    bed1728
  4. added a commit that references this issue on Aug 29, 2026
    3485000
  5. added a commit that references this issue on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpriority:high

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions