Skip to content

feat(spec): RetentionReply DanglingIDs + StagingDirs reclaim fields - #2

Merged
atrawog merged 2 commits into
mainfrom
feat/lint-dead-dup
Jul 8, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/lint-dead-dup

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Additive JSON wire fields on spec.RetentionReply (DanglingIDs, StagingDirs) so charly clean can report two reclaim categories no existing verb covered — dangling charly-built intermediate images and dead buildah /var/tmp staging dirs. Surfaced when a multi-hour concurrent 61-bed roster exhausted host disk (96% full, 261 GB reclaimable). The core reapers (pruneDanglingCharlyImages / pruneBuildahStaging, live-build-guarded) + the candy/plugin-clean consumer land in the superproject P1 PR that bumps this sdk pointer.

Change class + gate

Code (sdk contract). go build ./... clean; consumed types compile in the superproject + plugin-clean; the reclaim is live-verified in the superproject PR (charly clean → removed 42 dangling images + 31 staging dirs, / 91%→72%). Additive JSON-only → no #SchemaVersion bump, no sdk.ProtocolVersion bump (zero-value-safe for older peers).

Tier: fully tested and validated (the reply fields are exercised end-to-end by the live charly clean run in the consumer PR).

Assisted-by: Claude (fully tested and validated)

Additive JSON wire fields for the retention HostBuild reply so charly clean can
report the dangling-image + dead-buildah-staging reclaim categories no existing
verb covered (surfaced by disk exhaustion under a concurrent bed roster).
Zero-value-safe, no schema/protocol bump.

Assisted-by: Claude (fully tested and validated)
@atrawog

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: code (sdk contract — additive JSON wire fields)

Independent re-derivation (author's claims trusted for nothing; every item re-run):

  • [PASS] Security & anti-tampering (T1–T4): No embedded directives aimed at the validator in the body/commit/changelog. No secrets, env reads, network calls, or eval/obfuscation. Touches none of the security machinery (gates, branch protection, validator spec, CLAUDE.md). No dependency/pin/CI changes. No scope mismatch — the diff does exactly what the summary claims (two additive fields), nothing hidden.
  • [PASS] Description complete: Real summary, change class + gate, additive-safety reasoning, and attribution tier present. Not empty/template-only.
  • [PASS] Change-class gate (R10): sdk is a contract/library repo with no bed of its own; its gate is go build ./... && go test ./... — both re-run green here (all packages ok, spec incl.). The live end-to-end proof (charly clean reaping dangling images + /var/tmp staging dirs) legitimately rides in the consumer superproject PR per the B6 producer-first landing order — the sdk lands first, the consumer's image R10 is the real runtime gate.
  • [PASS] Attribution tier justified: fully tested and validated — additive []string fields, no logic to execute standalone; compile + test green locally and the fields are exercised end-to-end in the cited consumer run.
  • [PASS] R5 grep self-test: Nothing removed or renamed (0 deletions) → trivially clean; the new identifiers appear only in spec/clean_wire.go + the CHANGELOG describing them.
  • [PASS] R1–R4 / clean architecture: No carried warnings, no duplication, no ad-hoc workaround, no transitional/dual-mode path. gofmt clean on the changed file.
  • [PASS] CHANGELOG present: CHANGELOG/2026.188.1400.md placeholder staged (finalized to the merge-time CalVer at merge).
  • [PASS] Skills honored (git-workflow B2/B6, migrate): verified independently — additive JSON reply fields require no sdk.ProtocolVersion bump (it's const ProtocolVersion = 1, the go-plugin/proto RPC gate; the JSON payload inside Provider.Invoke is not a proto message — exact precedent at spec/deploy_wire.go:717), and no #SchemaVersion bump (that CalVer is the CUE config schema HEAD migrated by charly migrate; RetentionReply has zero CUE coupling). Both fields carry omitempty → zero-value-safe for older peers in both directions.

Decision: Additive, contract-safe, correctly-versioned wire extension. Build, tests, and gofmt re-run clean; the no-proto/no-schema-bump reasoning holds under independent inspection. Finalizing the merge-time CalVer, merging --rebase, and tagging under the sdk Go-module scheme.

Assisted-by: Claude (fully tested and validated)

Assisted-by: Claude (fully tested and validated)
@atrawog
atrawog merged commit 945974e into main Jul 8, 2026
@atrawog
atrawog deleted the feat/lint-dead-dup branch July 8, 2026 00:28
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