Skip to content

Release tree: apply jit-context's measured directory-validator fixes (no env-read + network pair, short release README, no CHANGELOG, guards, release-preview validation) #898

Closed

Description

@fdaviddpt

Why

claude-jit-context measured what the Anthropic directory validator flags, and what cleared each finding, over 2026-10-02 and 2026-10-03. It did this by validating throwaway branches in the portal's submit form. Write-up: https://github.com/Digital-Process-Tools/claude-jit-context/blob/feat/release-compile/docs/directory-validator.md (it reaches jit-context's main with jit-context#462).

The maintainer's bar is zero holds and as few warnings as possible (see #893, #860). remember v0.39.0 is pending validation right now, so these fixes land on main for the next release. Nothing here re-submits or moves release.

What their measurements say applies to us

  • MCP_FORWARDS_CREDENTIAL_ENV fires on a pair: something that reads the environment (any $VAR or ${VAR}, a name containing KEY, the word "credentials") plus something that could send data out (any URL host, even inside a comment, or any network command name in shipped data). It counts per file, and across the plugin through the plugin.json aggregate. That matches our 3 findings on v0.38.0 (README, session-start-hook.sh, plugin.json), even after fix(#860): take the recovery OAuth token through plugin.json userConfig #894 and fix(#893,#860): reword shipped credential text to drop literal env-var names #896 removed the env-var names: the shipped README still has $TMPDIR/...-style paths and URLs, and the shipped CHANGELOG has links.
  • A typed << (here-document) in a shipped script is a hard block, filed as "Unpinned npx launcher". We have not hit it yet, but we have no guard against it either.
  • COMMAND_SCRIPT_NOT_FOLLOWED (a hold): a script that sources or runs another file, or that names one by path in a help message. remember's hooks source scripts/log.sh and friends. v0.38.0 did not raise this hold, but it is a known trigger, so it needs a guard and a decision.

Do

  1. Ship a short README.release.md that the build swaps in for README.md in the release tree (.github/scripts/build_release_tree.py). It must contain no $VARIABLE, no ${...} and no network command names, and keep URLs to the minimum the listing needs. It still has to meet the directory's README rule (40 words or more) and keep docs(#854): disclose everything the plugin runs, sends and stores; fix the git backup trigger wording #855's disclosure in substance: what runs, sends and stores, and that the nested claude uses the user's own login. The full README stays on main.
  2. Stop shipping CHANGELOG.md in the release tree. Only README and LICENSE are required. Check every consumer first: check_release_tree.py, smoke_release_tree.py, the changelog guard tests from Directory warning RUNTIME_FETCH_EXEC (download-and-run) rose from 2 to 3 findings on v0.38.0; find the real matches #864/Gate-3 release audit: v0.39.0's changelog fragments reintroduce eval/curl/wget into the shipped CHANGELOG section (#864's own fix undone) #886, and the version-sites logic.
  3. Scrub the shipped scripts: no URLs in comments or help text; no network command names (curl, wget, ftp, dig, drill, host, http, finger, mail, lynx, links, fetch, talk…) in shipped data or comments; no scripts/<name>.sh paths in user-facing messages (name tools in words). Measure each with a test.
  4. Guards in check_release_tree.py (FAIL, with a red test and a positive control each): a typed << anywhere in a shipped script; a URL host in a comment of a shipped script; a network command name in a shipped file; an env-read token and a send token in the same shipped non-code file (README, docs); ${VAR} or $VAR in the release README.
  5. docs/releasing.md: link jit-context's doc, and add the release-preview step: build the release tree, push it to a throwaway release-preview branch (the maintainer runs that push; the agent's classifier refuses it), validate Digital-Process-Tools/claude-remember@release-preview in the portal's submit form without clicking Next, and only then tag. Note that the branch the portal tracks cannot change while the plugin is under review.

Out of scope

  • The source-based hook structure (COMMAND_SCRIPT_NOT_FOLLOWED). Measure it with a release-preview validation first. jit-context compiled the library into each script at build time, which is a big change and not to be made on speculation.

Related: #851, #860, #864, #866, #893.

[AI-generated]

Activity

  1. added
    priority:high
    lane-other
    on Oct 3, 2026
  2. added 13 commits that reference this issue on Oct 3, 2026
  3. 106 remaining items

  4. added 10 commits that reference this issue on Oct 6, 2026
  5. added 5 commits that reference this issue on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lane-otherpriority:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions