Skip to content

chore(spec): bump spec to the temp-sweep $TMPDIR fix - #281

Merged
atrawog merged 6 commits into
mainfrom
feat/sweep-stale-temps-tmpdir
Aug 15, 2026
Merged

atrawog merged 6 commits into
mainfrom
feat/sweep-stale-temps-tmpdir

Conversation

@atrawog

@atrawog atrawog commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

Consumer half of opencharly/spec#30. Gitlink only — one submodule pointer plus a CHANGELOG entry; no superproject source change.

Re-pinned at f1516e95. The pin this PR opened with, 2b63bbda, was the branch head BEFORE spec#30's own update-branch merge. The squash left it unreachable from spec main — it resolves in a checkout that still holds the deleted branch and resolves to nothing in a fresh clone, and no drift gate catches that. Corrected to 2c6e2bd6 (spec main, tag v0.2026227.1934), verified in a full clone (--is-shallow-repository = false):

git -C spec merge-base --is-ancestor 2c6e2bd6 origin/main   -> exit 0   (reachable)
git -C spec merge-base --is-ancestor 2b63bbda origin/main   -> exit 1   (ORPHAN)

Because 2b63bbda predates two other merges, the corrected pin carries three commits, not one:

  • 2c6e2bd6 (spec#30) — the $TMPDIR sweep fix this PR was opened for.
  • bbb3c6a (spec#29) — additive exported surface (ResolveLocalImage, ResolveBuiltImageRef, RefuseIfStale, spec.ErrStaleLocalImage), zero callers here at the current sdk pin — but it also refactors the candidate-ranking body of ResolveLocalImageRef, which is live here (candy/plugin-box, candy/plugin-build, candy/plugin-check all call it).
  • 334fe91 (spec#28) — a comment correction in schema/candymodel.cue plus its regenerated spec/cue_types_gen.go doc block. No behaviour.

Because spec#29 touches a live path, the beds were re-run on the corrected pin rather than re-pointed. See the gate below.

proc.SweepStaleTemps globbed a hardcoded /tmp while every creator resolves through os.TempDir(), which honours $TMPDIR. The dangerous half is the sibling site: openedFilesByAnyProcess filtered /proc/<pid>/fd targets by the same hardcoded prefix, and that is the sweep's "some process has this open" guard — on a $TMPDIR host it recorded nothing, so every temp the sweep reached read as UNHELD. The hardcode does not merely stop the sweep working; it strips the liveness guard temphold.go exists to provide, after a sweep once deleted two beds' builds mid-flight.

Measured on this project's dev host: 201 stale charly-localpkg- trees under $TMPDIR, zero under /tmp — --dev-local-pkg bed build stages, the biggest thing the sweep exists to reap. After the fixed binary's first invocation: 0.

Full narrative, coverage, and the two-environment gate: opencharly/spec#30 and spec CHANGELOG/2026.227.1934.md — the squash renamed that file from 2026.227.1245.md when it took its merge-time CalVer, so the name this PR originally cited no longer exists on spec main.

Change class

cross-repo — charly-or-sdk Go (consumer gitlink bump).

Landing order: opencharly/spec#30 → opencharly/charly (this PR). spec#30 has MERGED; this PR records its squash as the spec gitlink, so it merges second.

Resolved: charly#278 landed first. It pinned spec at bbb3c6a, an ANCESTOR of this PR's 2c6e2bd6 — a rewind hazard for whichever landed second. This branch took the merge and resolved the gitlink FORWARD; the proof is read off the merge commit, not the working tree (see the gate section).

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: the sweep runs from main() on EVERY charly invocation, so a bed exercises it dozens of times per run. Two disposable beds across two substrates, on this gitlink.

  • Eval beds run — RE-RUN on the merged tree, not re-pointed. Binary charly version = 2026.227.2003.

    • check-marketplace | pod | ok | 13 steps — .check/check-marketplace/2026.227.2007/
    • check-commands-local | local | ok | 6 steps — .check/check-commands-local/2026.227.2005/

    charly#278 merged mid-verification, moving sdk 7a81472 → 2f6a3a7 and spec → bbb3c6a on main, so this branch took the update-branch merge and everything was re-derived on top of it. Two earlier evidence sets are therefore superseded rather than carried forward — a citation that describes a tree which is not the tree being merged is not evidence:

    • the set this PR opened with (.check/check-marketplace/2026.227.1246/, .check/check-commands-local/2026.227.1256/, binary 2026.227.1146) ran against spec 2b63bbda, which lacks spec#29's refactor of the live ResolveLocalImageRef body — and keep_check_runs retention has since pruned the second directory outright, which is exactly why a stale run-dir citation cannot be assumed to still exist;
    • the set on the corrected pin alone (…/2026.227.1948/, …/2026.227.1946/, binary 2026.227.1902) predates the fix(check): the build-scope verdict verbs certify the artifact you built #278 merge.
  • Fresh rebuild: R9 — task build:binary on the merged tree gives charly version = 2026.227.2003, and both beds ran on that exact binary, each with its own charly update leg (check-marketplace additionally re-runs check-live and feature-run against the rebuilt deployment). charly box validate exits 0 at zero warnings on the same tree.

  • The gitlink resolution, proved off the MERGE COMMIT (a working tree that was already correct cannot prove a resolution):

    git ls-tree <merge> spec  ->  2c6e2bd6      (forward — NOT rewound to main's bbb3c6a)
    git ls-tree <merge> sdk   ->  2f6a3a7       (one-sided, taken from main)
    git -C spec merge-base --is-ancestor bbb3c6a 2c6e2bd6  ->  exit 0
    

    gh pr update-branch refused with Cannot update PR branch due to conflicts; GitHub's merge-tree reports a conflict for a submodule gitlink that is in fact a fast-forward, and the local merge resolved cleanly to the descendant.

  • GOWORK=off module gate + four-state discriminator (go.work masks module-pin breakage entirely, so the pin was tested with it off):

    A BASELINE origin/main (spec 4cff4d0)  ->  task build:binary EXIT=0
    B PR head as-is        (spec 2b63bbd)  ->  task build:binary EXIT=0
    C REPIN ONLY           (spec 2c6e2bd)  ->  task build:binary EXIT=0   charly version 2026.227.1902
                                               charly box validate EXIT=0, zero warnings
    D MERGED (spec 2c6e2bd + sdk 2f6a3a7)  ->  task build:binary EXIT=0   charly version 2026.227.2003
                                               charly box validate EXIT=0, zero warnings
    

    The repin introduces no new breakage. Full candy sweep on state C: modules=92 failures=1 — the single failure is candy/plugin-dsh, identical on baseline A, owned by the named module-hygiene batch. charly/ under GOWORK=off fails identically in A, B and C (missing go.sum entries for golang.org/x/text / golang.org/x/net pulled via cuelang.org/go) — likewise pre-existing, not caused here, and reported rather than silently absorbed.

  • Did the CHANGED code path execute live? Yes — the 201 → 0 reap IS the changed path executing, and both beds then ran green with the new sweep active.

  • Concurrency: N/A for shared charly state — the sweep touches only the caller's own uid's temp entries and takes no lock. The beds ran on a host with several sibling worktrees building concurrently, which is how the $TMPDIR accumulation arose.

### === BEDS ON THIS GITLINK ===
$ charly check run check-marketplace              [MERGED tree, binary 2026.227.2003]
charly check run check-marketplace: [check-live-rebuild] PASS after 30.096s
charly check run check-marketplace: [feature-run-rebuild] PASS after 15.879s
charly check run check-marketplace: PASS (steps=13)          summary.yml: ok: true

$ charly check run check-commands-local           [MERGED tree, binary 2026.227.2003]
charly check run check-commands-local: PASS (steps=6)        summary.yml: ok: true

$ grep -rin "warn" .check/check-marketplace/2026.227.2007/*.log \
              .check/check-commands-local/2026.227.2005/*.log
(no output)                                                  [zero warnings]

### === THE REAP, MEASURED ===
before any fixed binary ran:  201 stale charly-localpkg- trees under $TMPDIR, 0 under /tmp
after the first fixed run:    0

### === COVERAGE (in spec#30) — fails without the fix, in BOTH environments ===
--- FAIL: TestSweepStaleTemps_HonoursTMPDIR
    the sweep scanned a hardcoded /tmp while the creator honoured $TMPDIR
--- FAIL: TestOpenedFilesByAnyProcess_HonoursTMPDIR
    a LIVE temp reads as unheld
### and the module suite is green in both environments post-fix, where before it disagreed.

Attribution tier

analysed on a live system. The changed path ran live with a measured outcome and two disposable beds passed on this gitlink at zero warnings.

Not fully tested and validated, stated plainly rather than glossed: no available bed builds a LIVE charly-localpkg- tree. marketplace-app, dsh-app, docs-site-app and check-commands-app compose no localpkg candy (verified with charly box inspect; no bed log mentions localpkg), and the beds that would are the long VM ones. So the two green beds prove non-regression across two substrates, not live-build safety. That property is unit-covered in spec#30, and the fix is what makes the coverage non-vacuous — pre-fix on a $TMPDIR host the control TestSweepStaleTemps_UnheldCreatorIsSwept FAILED, and its own message says the held-temp test "proves nothing" in that state. A VM-bed run exercising a real localpkg build is available as a follow-up and is noted as such rather than claimed.

Trailer: Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system).

One discrepancy, surfaced rather than left for the validator to find. The re-pin commit f1516e95 carries the trailer (fully tested and validated), on the strength of both beds being re-run on the corrected pin plus the post-commit rebuild. On reflection that is an over-claim: the re-run adds rebuild proof, not proof of the one scenario this PR's own limit names — no bed builds a live charly-localpkg- tree — and no new evidence overturns that limit. The merge-time squash should carry analysed on a live system. The commit cannot be amended (it is pushed, and force-push is forbidden on any branch), so the correction is recorded here for the validator, which composes the squash message.

Harness rulebook compliance — state HOW each is satisfied

  • R0 skills: /charly-internals:go, /charly-internals:strict-policy, /charly-check:check, /charly-internals:git-workflow.
  • R1 RCA + zero warnings: the failing tests were root-caused, not dismissed as environmental; confirmed two ways (env -u TMPDIR flips them green on the same tree; git stash reproduces them on the unmodified tree). Zero warnings across both bed runs.
  • R2 no out-of-scope: the sibling fd-filter site was found by looking for siblings and fixed in the producer PR rather than filed.
  • R3 no duplication: one sweepRoots() feeds both consumers in spec; nothing duplicated here.
  • R4 no workaround: this removes an R4 violation (an environment-specific hardcoded path); the honest tests were not adjusted to match the hardcode.
  • R5 hard cutover + grep: no identifier removed in this repo; the producer's grep self-test is in spec#30.
  • R6 git safety: git status + git stash list checked before every destructive action; every submodule probe in the four-state discriminator was a detached checkout of an existing commit and the tree was restored and verified clean after each. The re-pin landed as an ADDED commit (5c84ca25..f1516e95, fast-forward) — no force-push, no amend of a pushed commit, no push to main.
  • R7 runtime gate: two disposable beds end to end, not just go test.
  • R8 artifact invariants: N/A — no generation change.
  • R9 binary == source + deps: rebuilt via task build:binary on the merged tree, charly version = 2026.227.2003, and both beds re-run on that exact binary; no new runtime OS dependency.
  • R10 disposable + coverage: both beds disposable: true, zero warnings; the discriminating coverage lives in spec#30 and is pasted there failing on the pre-fix body in both environments.
  • RDD / ADE / SDD: RDD — the claim was measured on the real store (201 vs 0) before the fix was designed; the corrected pin was then proven with the four-state discriminator above rather than assumed to be a one-liner. ADE — N/A (no candy changed). SDD — no .cue in THIS repo; the carried 334fe91 edits spec's schema/candymodel.cue comment and its regenerated cue_types_gen.go doc block together, so generation is consistent at the pin.
  • Hard cutover: ONE atomic commit per repo, same batch, producer first.
  • Kernel/plugin boundary law: N/A — no charly/ source change; gitlink only.
  • Disposable-only autonomy: only the two disposable beds were destroyed/rebuilt.
  • Clean architecture + Go gates: N/A for this diff (no Go here); the producer PR carries gofmt/golangci-lint/go test green in both environments.
  • CHANGELOG: CHANGELOG/2026.227.1245.md — placeholder CalVer, the pr-validator finalizes it. Flagged, not fixed here: 2026.227.1245 is EARLIER than v2026.227.1725, the newest tag reachable from main, so finalizing it unchanged would place this release behind one already tagged. The merging validator owns the stamp and must regenerate it.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)

Consumer half of opencharly/spec's stale-temp sweep fix. Gitlink only, no
superproject source changes.

proc.SweepStaleTemps globbed a hardcoded /tmp while every creator resolves
through os.TempDir(), which honours $TMPDIR — so on such a host it scanned a
directory no temp had ever been created in and reaped nothing, silently.
Measured on this project's dev host: 201 stale charly-localpkg- trees under
$TMPDIR, zero under /tmp; 0 after the fixed binary's first invocation. The
second site mattered more: openedFilesByAnyProcess filtered /proc/<pid>/fd by
the same hardcoded prefix, which is the sweep's "has this open" guard — it
recorded nothing, so every temp the sweep reached read as unheld.

Gate: check-marketplace (pod, 13 steps, 415s) and check-commands-local (local,
6 steps, 171s), both disposable, both PASS at zero warnings on this gitlink —
the sweep runs from main() on every invocation, so each bed exercises it dozens
of times.

Stated as a limit: neither bed builds a LIVE charly-localpkg- tree (no bed image
here composes a localpkg candy, verified via box inspect), so the beds prove
non-regression across two substrates, not live-build safety. That property is
unit-covered — and the fix is what makes the coverage mean anything: on a
$TMPDIR host the pre-fix control TestSweepStaleTemps_UnheldCreatorIsSwept
FAILED, whose message says the held-temp test "proves nothing" in that state.
Post-fix both pass.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

Coordination note from the pr-validator on the producer half.

opencharly/spec#30 — the fix this PR pins — was validated at head 176b86c3d and came back CHANGES REQUESTED: charly/pr-validator = failure. The proc/cleanup.go fix itself is correct and I could not fault it; what blocks is that TestOpenedFilesByAnyProcess_HonoursTMPDIR passes on the pre-fix body on any runner where TMPDIR is unset (t.TempDir() resolves through the ambient temp root before t.Setenv applies, so the test's own scaffolding lands under /tmp and the pre-fix hardcode cannot be observed). Details and the confirmed one-line fix are in the verdict on that PR.

What this means for #281: nothing is wrong on this side, but do not re-pin yet. This PR currently pins a pre-squash branch head, and #30 will now gain fix commits before it squash-merges — so the sha to pin is the eventual merge sha, which does not exist yet. Re-pin after #30 lands.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)

@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

opencharly/spec#30 has landed. Merge sha for the pin:

2c6e2bd6c2c74c0f3d3a3c2a8bd9c85fa72336b4

Tagged v2026.227.1934 and v0.2026227.1934 (paired forms, both dereferencing to that sha, verified on the remote). charly/pr-validator = success; squash-merged, one commit on spec main.

Re-pin to the merge sha above, not to any feat/ branch head. Note that the branch feat/sweep-stale-temps-tmpdir exists again on the remote at e7acaf7, which is not in the merge — see the race note on spec#30. Do not pin it.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)

The pin 2b63bbda was this branch's head BEFORE its own update-branch merge.
spec#30 was squash-merged and its branch deleted, so 2b63bbda is unreachable
from spec main: it resolves in a checkout that still holds the branch and
resolves to nothing in a fresh clone, and no drift gate catches that. The pin
moves to 2c6e2bd6 — spec main, tag v0.2026227.1934.

  git -C spec merge-base --is-ancestor 2c6e2bd6 origin/main   -> exit 0
  git -C spec merge-base --is-ancestor 2b63bbda origin/main   -> exit 1

Because 2b63bbda predates two other merges, the corrected pin carries three
commits, not one, and the entry now states all three: 2c6e2bd6 (spec#30, the
$TMPDIR sweep), bbb3c6a (spec#29, additive exported surface with no caller here,
but ALSO a refactor of the live ResolveLocalImageRef body that plugin-box,
plugin-build and plugin-check all call), and 334fe91 (spec#28, a comment
correction plus its regenerated doc block, no behaviour).

Four-state discriminator, GOWORK=off (go.work masks module-pin breakage):
baseline main, PR head as-is, and repin-only all build; task build:binary exits
0 on the repin and charly box validate exits 0 with zero warnings. The 92-module
candy sweep has one failure, candy/plugin-dsh, identical on baseline — the named
module-hygiene batch owns it. charly/ GOWORK=off fails identically in all three
states (missing go.sum entries), likewise pre-existing and not caused here.

Because spec#29 refactors a LIVE path, the beds were re-run on the corrected pin
rather than re-pointed: check-marketplace (pod, 13 steps) and check-commands-local
(local, 6 steps), both disposable: true, both ok: true, both with a full charly
update rebuild leg. The results the entry previously carried are superseded, not
carried forward — they ran against spec 2b63bbda, which lacks that refactor.

charly#278 pins spec at bbb3c6a, an ancestor of this pin: not an orphan and not
a defect, but whichever of the two lands second must resolve the gitlink FORWARD
at its update-branch and never rewind it.

Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01WQZY8RduA5PQrtgB6GrHzy
charly#278 merged while this branch was being verified, so main moved sdk
7a81472 -> 2f6a3a7 and spec 4cff4d0 -> bbb3c6a underneath it. gh pr update-branch
reported a conflict on the spec gitlink; GitHub's merge-tree reports one for a
submodule pointer that is actually a fast-forward, and the local merge resolved
cleanly to the descendant.

Resolved FORWARD and proved off the merge commit rather than the working tree,
since a tree that was already correct cannot prove the resolution:

  git ls-tree <merge> spec -> 2c6e2bd6   (not rewound to main's bbb3c6a)
  git ls-tree <merge> sdk  -> 2f6a3a7    (one-sided, taken from main)
  git -C spec merge-base --is-ancestor bbb3c6a 2c6e2bd6 -> exit 0

Every citation the merge invalidated is re-derived on the merged tree, not
re-pointed: both beds re-run (check-marketplace 13 steps and check-commands-local
6 steps, both disposable, both ok: true, both with a charly update rebuild leg),
binary rebuilt to charly version 2026.227.2003, charly box validate exit 0 at
zero warnings, and the GOWORK=off sweep unchanged from baseline at 92 candy
modules / 1 failure (candy/plugin-dsh, the module-hygiene batch's) plus the
pre-existing charly/ go.sum gap.

The entry now records BOTH superseded evidence sets rather than silently
replacing them; keep_check_runs retention has already pruned one of the
originally cited run directories, which is precisely why a stale run-dir
citation cannot be trusted to still exist.

Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01WQZY8RduA5PQrtgB6GrHzy
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Head validated: e7873e4e98219b331ecb11225714d8c4aa3d3250
Change class (independently derived): cross-repo runtime — a spec gitlink bump changes a compiled Go dependency, so this is not documentation-only despite the diff being two files. The author gated it at the runtime class; I hold them to that class and it is met.

Checklist

# Rule Verdict
0 Security & anti-tampering (T1–T4) PASS
1 Description complete + Assisted-by: footer PASS
2 Change-class gate matches pasted evidence (R7/R10) PASS
3 Attribution tier justified by proof PASS
4 R0 skills honored PASS
5 R1 RCA + zero warnings PASS
6 R2 no pre-existing/out-of-scope split PASS
7 R3 no duplication N/A — no source in this diff
8 R4 no ad-hoc workaround PASS
9 R5 hard cutover + grep self-test N/A — no identifier removed here
10 R6/R8/R9 artifact + binary integrity PASS
11 R10 disposable, fresh rebuild, coverage PASS
12 RDD / ADE / SDD PASS
13 Concurrency mandate + anti-cheat PASS
14 Hard cutover — one atomic scope PASS
15 ARCHITECTURE GATE PASS
16 Disposable-only autonomy PASS
17 Clean architecture + Go gates PASS
18 CHANGELOG present PASS

The dangling-pin trap — independently re-derived, not accepted

This is the finding the PR was re-opened for, so I re-derived it from the spec remote in a full clone (--is-shallow-repository = false) rather than trusting either the body or the branch:

git -C spec merge-base --is-ancestor 2c6e2bd6 origin/main   -> exit 0   REACHABLE
git -C spec merge-base --is-ancestor 2b63bbda origin/main   -> exit 1   ORPHAN
git -C spec rev-parse v0.2026227.1934^{commit}              -> 2c6e2bd6…

The pin is the merged squash, reachable from spec main, and identical to the tag. The orphan the PR opened with is gone. I also confirmed the pinned tree actually contains the fix rather than merely being a valid SHA — proc/cleanup.go:156 is root := filepath.Clean(os.TempDir()), with the shared sweepRoots() feeding both call sites.

Gitlink direction, read off the merge commit 01f16d16 — not the working tree:

git ls-tree 01f16d16 spec -> 2c6e2bd6   (forward; main is bbb3c6a — NOT rewound)
git ls-tree 01f16d16 sdk  -> 2f6a3a7    (one-sided, identical to main)
git -C spec merge-base --is-ancestor bbb3c6a 2c6e2bd6 -> exit 0

The charly#278 rewind hazard this PR flagged for itself did not materialize.

R10 evidence — cross-checked on disk, then the build re-run

Both cited beds exist, and their summary.yml match the claim rather than merely being present:

Bed Substrate ok: Steps Run
check-marketplace pod true 13 (incl. update, check-live-rebuild, feature-run-rebuild) 2026.227.2007
check-commands-local local true 6 (incl. update) 2026.227.2005

Both beds carry disposable: true in charly.yml (verified at the entity definitions, not from the body). Binary 2026.227.2003, built at 20:03 UTC — both run calvers post-date the binary, so the beds genuinely ran on the tree being merged. Zero warnings: my own grep -rin warn over both run directories returned nothing.

I then re-ran the load-bearing gate for a dependency bump myself, at the PR head:

go build ./...            (charly module)      EXIT=0
go vet ./...              (candy/plugin-box)   EXIT=0

Note for the record: charly/go.mod carries replace github.com/opencharly/spec => ../spec, so the gitlink is the operative pin and the inert require v0.2026224.1942 line correctly needs no bump.

What I checked hardest, and what I withdrew

A stale-evidence finding I raised against myself and then withdrew. My first read of the PR body cited .check/…/2026.227.1948, …/1946, …/1958 and binary 2026.227.1957 — all superseded by the 01f16d16 merge of main. I had that queued as a blocking finding. Re-reading the body live before ruling showed it had been re-derived to 2026.227.2003 / 2007 / 2005 and now matches the merged tree exactly. The finding was an artifact of my own stale read, not a defect in the PR — recorded because a validator's superseded snapshot is the same failure mode this PR is about.

One accuracy note, verified non-blocking. The CHANGELOG says the corrected pin "carries three commits rather than one". Measured against main, the effective release delta is one commit — bbb3c6a..2c6e2bd6 is exactly 2c6e2bd, because bbb3c6a (spec#29) and its ancestor 334fe91 (spec#28) both already shipped in v2026.227.1949 via charly#278. The sentence is scoped in context to the pin correction relative to 2b63bbda (stated in the preceding clause) and the entry separately records that charly#278 pinned bbb3c6a and landed first, so a reader can reconstruct the truth. Imprecise framing, not a false claim — not worth a round trip against an otherwise unusually rigorous entry.

Attribution. The body asks the squash to carry analysed on a live system rather than the fully tested and validated its commits carry. I set the tier independently and reach the same ceiling: the changed path ran live (the 201 → 0 reap) and two disposable beds passed on two substrates, but no available bed builds a live charly-localpkg- tree, so the liveness guard is unit-covered rather than bed-proven. analysed on a live system is correct and fully tested and validated would be an over-claim. The squash carries the corrected tier. Worth stating that the request was to claim less — self-correction downward, not pressure on the gate.

Security screen. No code, no secrets, no guardrail or supply-chain surface. The body's instructions to me (regenerate the CalVer, lower the tier) are both steps that are mine to own and both reduce what the PR claims; neither is a manipulation attempt.

Architecture gate

placement: CORRECT. No staged charly/*.go — the diff is one gitlink plus one CHANGELOG.
per-item trace: no alias file added or grown; no new kit import; no boundary-law E/M/B/D/R placement question; no *Legacy* relocation smell. The fixed mechanism lives in spec and stays there; this PR moves a pointer and does not relocate anything.

Phase 1b

Skipped, honestly and per the narrow rule: the diff touches no reader-facing page — no README/VISION/docs-site page and no SKILL.md. A CHANGELOG-only change is the one case where the cold reader cannot help. No cold reader was spawned; no cold-reader silence is being passed off as a clean result.

Comments considered

  • @atrawog, "Coordination note from the pr-validator on the producer half" (do not re-pin until spec#30 lands) — verified-non-blocking: spec#30 has since merged, and the pin is its squash, not the pre-squash head.
  • @atrawog, "spec#30 has landed. Merge sha for the pin" (pin 2c6e2bd6; do not pin the recreated branch e7acaf7) — verified-non-blocking: I confirmed the recorded gitlink is 2c6e2bd6, not e7acaf7. The instruction was followed.

Cross-PR interactions considered

  • opencharly/charly#282 — bumps sdk + CHANGELOG/2026.227.1243.md; no file overlap and no CHANGELOG-name collision with this PR. It does not touch spec, so this merge leaves it a one-sided gitlink it can take cleanly. verified-non-blocking — but I independently confirmed it carries the same dangling-pin defect: its sdk pin 15b89eac is not reachable from sdk main. Coordination comment posted there.
  • opencharly/charly#280 — core Go + candy/plugin-check; no gitlink, no overlap. verified-non-blocking.
  • opencharly/spec#31 — corrects spec#30's explanation of the $TMPDIR test mechanism (GOTMPDIR, not statement order). I checked whether this PR's CHANGELOG repeats the corrected claim: it does not. Its only overlapping assertion — TestSweepStaleTemps_UnheldCreatorIsSwept failed pre-fix on a $TMPDIR host — is confirmed true by spec#31's own measured table. verified-non-blocking.
  • opencharly/sdk#138 — unrelated. none-found.

Decision

APPROVED. The defect this PR was re-opened for is genuinely fixed and I proved it from the spec remote rather than by analogy. The gitlink resolves forward off the merge commit with no rewind, the pinned tree really contains the fix, both disposable beds pass on the merged tree at zero warnings on a binary that pre-dates them, and the build is green under my own re-run. The CalVer is finalized at merge — 2026.227.1245 is a placeholder earlier than v2026.227.1949, as the author flagged, so it is regenerated rather than used.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)

The entry was authored under the placeholder 2026.227.1245, which the author
flagged as EARLIER than the newest tag reachable from main — finalizing it
unchanged would have placed this release behind one already tagged. Regenerated
at the merge moment to 2026.227.2021, ahead of v2026.227.1949, with the H1
rewritten to match the filename byte-for-byte.

The trailing placeholder paragraph is replaced rather than left in place: once
finalized it asserted a step that had already happened. It now records the
stamp actually taken, plus the release's effective delta — relative to main the
spec gitlink moves by exactly one commit (bbb3c6a..2c6e2bd6), since spec#29 and
spec#28 already shipped in v2026.227.1949 via charly#278.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_01UbAru5QanJ1A3Danm46NSF
@atrawog
atrawog merged commit 1dd3b1d into main Aug 15, 2026
@atrawog
atrawog deleted the feat/sweep-stale-temps-tmpdir branch August 15, 2026 20:23
@atrawog

atrawog commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — landed ✅

Follow-up to the APPROVED verdict above; every gated action succeeded, none was denied.

Step Result
Status on validated head e7873e4e charly/pr-validator = success
CalVer finalized 2026.227.1245 → 2026.227.2021 (stamp commit a0822be4, fast-forward push — no amend, no force)
Status re-posted on new head a0822be4 charly/pr-validator = success
Squash merge 1dd3b1d17037be7eb043fbf168f934ca9e033cc6
Tag v2026.227.2021 → dereferences to 1dd3b1d1 on the remote
Branch feat/sweep-stale-temps-tmpdir deleted

Squash trailer proof — pre-merge and emitted-artifact, both via git interpret-trailers --parse:

pre-merge  parse -> Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
merged 1dd3b1d1 parse -> Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)

Exactly one trailer on the emitted object, at the tier the evidence supports — not the fully tested and validated the branch commits carried.

Merged-tree sanity, read off 1dd3b1d1 rather than a working tree:

git ls-tree 1dd3b1d1 spec -> 2c6e2bd6   (the merged spec#30 squash)
git ls-tree 1dd3b1d1 sdk  -> 2f6a3a7    (unchanged from main)
CHANGELOG/2026.227.2021.md present

Two things I changed at finalization, stated rather than folded in silently

  1. The H1 was rewritten with the rename, not just the filename — head -1 is byte-equal to # 2026.227.2021 — bump spec to the temp-sweep $TMPDIR fix.
  2. The trailing placeholder paragraph was replaced, not left in place. It read "Placeholder CalVer — the pr-validator finalizes it at merge… must regenerate it", which becomes false the moment it is finalized. It now records the stamp actually taken and the release's effective delta: relative to main, spec moves by exactly one commit (bbb3c6a..2c6e2bd6), since spec#29 and spec#28 already shipped in v2026.227.1949 via charly#278. That closes the one accuracy note from the verdict above without a round trip.

The 2026.227.1245 placeholder was correctly flagged by the author as behind an existing tag; 2026.227.2021 is ahead of v2026.227.1949, so release ordering stays monotonic.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)

aitrawog pushed a commit that referenced this pull request Sep 25, 2026
…6268.616

Hermetic build: no replace, all producers tagged (plugin-check #55/#56, spec #154/#155,
sdk #281/#283, plugin-vm v0.2026266.1235). Take main's newer plugin-task pin.

Assisted-by: opencode ollama-cloud deepseek-v4.1-flash (fully tested and validated)
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.

1 participant