Skip to content

docs(disk-hygiene): cut the restated POSIX ctime definition to the os.stat_result pointer - #17211

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16838

Summary

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

The listed passage in disk-hygiene's scan-flags reference had already lost its quote and stamp, but it still opened by restating upstream behavior ("ctime is the inode change time on POSIX"). That clause is cut. The passage now says only the repository's own rule: a ctime age window is whatever the interpreter's st_ctime_ns reports, so read it as the interpreter defines it, on Windows above all. For what the field holds on each platform, it points at the anchored os.stat_result entry. I chose the cut-to-pointer branch, not keep-with-stamp, because no stored string is left to keep. The code reads the field unconverted (hygiene.py:1698, hygiene.py:1410), which is the basis for the rule as worded.

Not verified

  • check-affected skipped comment-hygiene (its fetch of the ci-workflows action failed under the sandbox), typos (not installed) and three validate-plugins sub-checks that run tree code; the PR's CI runs them
  • tidy: the ai-slop detector (detect.sh) could not run because this lane's Bash allows only named wrappers, so pass 5 was a rubric read only (no findings). Code passes 1-3 had no code lines. write-for-humans split one 40-word sentence in the fragment
  • review-venue.txt was absent, so a local fresh-context subagent did the review; verify (build and tests) was skipped because the change is two markdown files with no build or test target
  • Out of scope, noted by review: scan-flags.md:137 ("atime can be unreliable under noatime or relatime mounts") restates upstream mount behavior in the same way; the issue does not list it

Fix

  • plugins/disk-hygiene/skills/clean/reference/scan-flags.md: the Rule age window's ctime paragraph drops the restated POSIX definition, keeps the interpreter-defined rule and the Windows caution, and points at the os.stat_result entry for every platform, not only Windows
  • .changes/disk-hygiene/work-resolve-issue-issue-16838-44371041855-1-6c551290.md: new patch changelog fragment describing the cut

Verification

The runner ran each check from the base copy against e0c104a:

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

The run reports:

  • read https: //docs.python.org/3/library/os.html#os.stat_result: the os.stat_result class entry exists at that anchor; st_ctime and st_ctime_ns are the time of most recent metadata change, deprecated on Windows since 3.12, where they still hold creation time and will eventually hold metadata change…
  • Read plugins/disk-hygiene/skills/clean/scripts/hygiene.py: line 1698 records ctime_ns from st_ctime_ns, and the min_age_basis path uses it unconverted
  • check-changelog-fragments: all 14 fragments valid (run before and after tidy)
  • check-changed-skills: clean PASS, 0 errors, 3 warnings about existing SKILL.md size and description length that this change does not touch
  • check-affected: 14 passed, 8 skipped, 0 failed over 2 changed files (run before and after tidy)
  • fresh-context review subagent over the diff: no findings; confirmed accuracy against hygiene.py and the fragment's form
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44371041855

Left out: the items under Not verified.

Related

#16838

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

Copy link
Copy Markdown
Contributor

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

Security review: no findings

I read the whole diff for both changed files:

  • plugins/disk-hygiene/skills/clean/reference/scan-flags.md: the ctime paragraph no longer says what the field means on POSIX ("inode change time"). It still tells the reader to take a ctime window as whatever the interpreter's st_ctime_ns reports, and now points to Python's os.stat_result entry for every platform.
  • .changes/disk-hygiene/...-6c551290.md: a new patch changelog fragment that describes the change above.

This is documentation only, and it touches no security surface:

  • Guardrails: the edit removes a factual definition, not a rule. No standing instruction loses a guardrail, so the instruction-surface lens doesn't apply. The age-window rule itself is unchanged.
  • Code and config: the diff changes no code, workflows, plugin manifests or trust controls.
  • Trusted paths: neither file matches a trusted-path glob.
  • Embedded instructions: the PR description and the closing issue contain no text telling the lane what to do.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR removes one restated upstream fact, "ctime is the inode change time on POSIX", from the Rule age window section of plugins/disk-hygiene/skills/clean/reference/scan-flags.md. It also adds a bump: patch changelog fragment.

Closing issue #16838. The done-when is: "the listed passage is cut to its anchored pointer, or kept as the stored string it quotes with its stamp." The change meets it:

  • The POSIX definition is gone.
  • The paragraph now states only the repository's rule: read a ctime window as the interpreter's st_ctime_ns defines it, with Windows called out.
  • For every platform it points at the anchored os.stat_result entry.

This is a docs-only change, so no test could check the criterion. That is expected and is not a gap.

Path-scoped rule. .claude/rules/skill-bodies-state-current-rules.md applies to this file. The new text keeps the decision in the repository's own words and adds a section-anchored pointer. It carries no as-of date and repeats no upstream specific, which fits the rule. "On Windows above all" points to where the caution matters most without saying what the field holds there. cost-claims.md also matches the path, but the change makes no cost claim.

Out of scope. The PR notes that scan-flags.md:137 restates atime mount behavior in the same way. Issue #16838 does not list that line, so this review does not flag it.

The changelog fragment's patch bump fits a wording change in a reference doc.

No hold. Neither file is on a trusted path, and nothing in the change costs anything.

Loosened-check verdict: pass (the change loosens no check). The prompt had no loosened_check_verdict: or loosened_check_patterns: lines, so this review used the defaults: verdict fail, no consumer entries.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for e0c104a

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-17211-e0c104ada54da64f842606f6a8de122c336e0fae, expires on 2026-12-18.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=e0c104ada54da64f842606f6a8de122c336e0fae rubric=10.3.4 rater=claude-opus-5-5 checker=claude-opus-5-5

@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 ae5265c Nov 18, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16838-44371041855-1 branch November 18, 2026 19:47
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit ae5265cea791815bc0d8a1ad8b1d40bd061166c8; 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.

docs: cut restated upstream behavior left by the stamp sweep (batch 6) - part 5 of 6

0 participants