Skip to content

docs(machine-health): cut restated temp-root text to a pointer and source the 2047 Path limit - #17066

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16864-44247237447-1
Nov 18, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16864-44247237447-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16864

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Rows machine-health-11 and -12 of #15528 (part 5 of 10). machine-health-11: the Claude Code temp root entry in the Windows check catalog keeps its base order and the rule (with its reason) that every candidate is a base plus claude and never a bare base. It no longer says what Claude Code appends and instead points at the anchored CLAUDE_CODE_TMPDIR row of the env-vars page. machine-health-12: the 2047 User Path CRIT threshold keeps its reason (text past it is silently cut off). It is now a stored-value record that cites The Old New Thing post, with an as-of date and a recheck trigger, because no Microsoft Learn page covers the Environment registry key's limit. machine-health-9 needed no change: reference/shared/discovery-guide.md already keeps the lesson (a chezmoi status pending count excludes scripts, so always-run scripts cannot hold it above zero) and points at the chezmoi status reference without restating its output. List row 9 as already met (no edit) in the PR body.

Not verified

  • tidy: not run, because the change touches scripts/docs-anchor-baseline.txt, a listed shared path (scripts/)
  • check-affected skipped typos (not installed), comment-hygiene (network fetch denied), and the validate-plugins sub-checks and changed-skills that run code from the checked tree; CI runs them
  • Review finding not acted on: check-catalog.md section 17's notes say 'A POSIX port resolves its own base and per-user segment', which loosely mirrors the env-vars Unix segment. That line is outside rows 9/11/12 and its Pointer already sends porters to the row, so it was left unchanged
  • Test-EnvironmentHealth.ps1's comment and synopsis still attribute the 2047 ceiling to the legacy System Properties editor. That is a script comment, outside the catalog row this issue names, and was left unchanged
  • No build or tests: the change is markdown only and runs no code; markdownlint and lychee run in the PR's CI

Fix

  • plugins/machine-health/skills/audit/reference/windows/check-catalog.md: section 17 root resolution reordered to state the base order and the claude-segment rule as our decision, the sentence restating what Claude Code appends replaced by an anchored Pointer to the env-vars CLAUDE_CODE_TMPDIR row;…
  • scripts/docs-anchor-baseline.txt: removed the check-catalog.md row, since the file has no anchorless docs-page link now (validate-plugins fails on a stale row)
  • .changes/machine-health/work-resolve-issue-issue-16864-44247237447-1-1a3a14d6.md: patch changelog fragment for machine-health

Verification

The runner ran each check from the base copy against 818de04:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //code.claude.com/docs/en/env-vars: the CLAUDE_CODE_TMPDIR row in the table under ## Variables says Claude Code appends /claude-{uid}/ on Unix or /claude/ on Windows to the override, default /tmp on macOS and os.tmpdir() on Linux and Windows
  • read https: //devblogs.microsoft.com/oldnewthing/20100203-00/?p=15083: a customer saw environment variables truncated at 2047 characters, and the code that parses the Environment registry key into an environment block has a 2048-character limit; the dialog's limit value is not stated
  • read https: //www .chezmoi.io/reference/commands/status/: R means a script will be run, and --exclude=scripts excludes scripts; confirms the discovery-guide pointer for machine-health-9 stands without restated output
  • web search for a Microsoft Learn page on the 2047 Path limit: none found, so the record names the blog post and says no Learn page covers it
  • check-changelog-fragments: all 18 fragments valid
  • check-changed-skills: machine-health audit PASS, 0 errors, 4 pre-existing warnings (description length, body length, router token cap, no Gotchas surface)
  • check-affected: first run failed validate-plugins on a stale docs-anchor-baseline row; after removing it, 14 passed, 8 skipped, 0 failed
  • fresh-context review subagent over the diff against docs/contracts/upstream-drift/README.md: two low findings; the 2047 sentence overstated the source (said 'a new process's environment'), so I reworded it to 'reads the Environment registry key into an environment block' and changed the trigger to…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44247237447

Left out: the items under Not verified.

Related

#16864

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 818de04e5502a62e7a406731d76e9599a2c06899: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17066

I found no security issues in this change.

The pull request changes only documentation:

  • plugins/machine-health/skills/audit/reference/windows/check-catalog.md
    • Section 17: the temp-root resolution text is reordered. The base order and the rule are both kept unchanged: every candidate is a base plus claude, and a bare base is never a candidate, for the same reason as before. The sentence restating what Claude Code appends is replaced by a pointer to fetch the anchored CLAUDE_CODE_TMPDIR row of the env-vars docs. An existing pointer also gains the #variables anchor.
    • Section 18: the 2047 User Path CRIT threshold keeps its value and its reason. It now carries a pointer to the Old New Thing post on devblogs.microsoft.com, with an as-of date and a recheck trigger.
  • scripts/docs-anchor-baseline.txt: one stale baseline row is removed. That file only lists anchorless doc links for a validator, so it controls no trust decision.
  • .changes/... fragment: a patch changelog entry.

I checked each edit under the instruction-surface lens. No standing rule is deleted, narrowed or softened: the bare-base exclusion and the 2047 threshold both survive with their reasons. The new pointers only tell the skill to read public docs pages. They introduce no command, tool input or off-machine write. The protected-class register file was not consulted because nothing was removed.

None of the changed files matches a trusted-path glob. No trust control, merge hold, token scope, kill switch, workflow or plugin manifest is touched, so there are no manifest lines. The PR context contains no embedded directives aimed at the review.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 818de04e5502a62e7a406731d76e9599a2c06899: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings. This change only edits documentation. I read every hunk of all 3 changed files, plus the surrounding lines of check-catalog.md at head.

Against closing issue #16864: the done-when item is met for rows machine-health-11 and -12. For row -9, the PR body says it is already met.

  • Section 17 (row -11): the root resolution still gives the base order and the rule that every candidate is a base plus the literal claude segment, never a bare base. The reason for that rule is still there. The sentence that stated what Claude Code appends is now a pointer to env-vars#variables, with a section anchor. The second env-vars link in the Notes also gets the anchor. Removing the file's row from scripts/docs-anchor-baseline.txt fits: the file has no docs link without an anchor any more (L619, L708).
  • Section 18 (row -12): the 2047 CRIT threshold keeps its reason, that text appended past it is silently cut off. It is now recorded as a stored value, with a source, an as-of date and a recheck trigger, as .claude/rules/skill-bodies-state-current-rules.md requires for a copied limit. The source is a blog post, which the rule allows here because the entry says no Microsoft Learn page covers the limit (L735-L742).
  • Unverified: I could not fetch pages in this run, so two things rest on the author's word alone: that the #variables anchor resolves, and what the Old New Thing post says. Lychee and the anchor checks in CI cover the links.

Changelog fragment: the patch bump fits a change to docs only. No plugin manifest changed.

Not counted as a finding: the comment in Test-EnvironmentHealth.ps1 still credits the 2047 limit to the legacy System Properties editor, which no longer matches the catalog's new reason. The PR body already lists this as left unchanged. No line in this diff calls that comment.

Loosened-check verdict: fail (default; the wrapper supplied no verdict line); patterns: 0. No check is loosened: removing a baseline row makes the anchor check stricter.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 818de04e5502a62e7a406731d76e9599a2c06899. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 818de04e5502a62e7a406731d76e9599a2c06899, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: unrated reason=no-run

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit d316c0d Nov 18, 2026
51 of 52 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16864-44247237447-1 branch November 18, 2026 11:00
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit d316c0db2118bb28ad396f1465ef6ce160680999; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills: cut restated upstream text to pointers (held form-only rows, group 4: thirteen plugins) - part 5 of 10

0 participants