Repository navigation
docs(deploykit): D-CODE-4 sweep, the intermediates subsystem - #576
Conversation
DESIGN.md:2649 -- D-CODE-4, comments describe present code; history goes to CHANGELOG/. Eleven history sites across intermediates.go, intermediates_compute.go and intermediates_move_test.go, rewritten to present tense with every load-bearing reason kept. The headers said "relocated from charly core (P8b)", "the formerly HOST-COUPLED half", "This half used to read *Config and stayed in charly core for that reason alone", "the former charly-side entry point lifted cfg.Defaults ... (removed in #55 Cluster-B)", "the former docstring already gave". They now state where each half lives, why it is pure over IntermediateDefaults, and the namespace-boundary rule -- the reasons, without the relocations. One site is left alone deliberately: "Default UID -- used to decide whether an intermediate needs a UID suffix" is present tense (is used to decide), not history, and the widened grep cannot tell them apart. Comment-only, proven by the canonical git diff filter. build, vet and gofmt clean; go test ./deploykit/ ok. This is deploykit second unit. 150 of the 171 widened-class sites remain, named by file and count in opencharly/opencharly#1147. Agent: lead Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
…fore the move The header was rewritten and the sentences flowing from it were not: instead of the concrete charly *Candy struct the tests used before the move, verified against the pre-move behaviour, None of the pre-move fixtures, mirrors the pre-move test file. A comment block is one claim in several sentences, and this PR claimed only the relocations are gone while four remained in the same block. Agent: lead Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
…x left ungrammatical It read exactly the fields a *Config read off cfg.Defaults.* -- past tense and broken. The rewrite of the sentence above it introduced it, so the block asserted present code and then narrated a read in the same clause. Now: the cfg.Defaults.* fields, and nothing else. Agent: lead Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
… the code The body removed the relocations and left (P8b), (W3), (W3/K3) and (W3, task #36) standing in the same headers. A phase or task id is history in the same sense: it names when the code moved rather than what it does. Agent: lead Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
Review — BLOCKHead SHA: Change class: docs-only — all 39 additions / 54 deletions across the three Security screen: PASS — no secrets, no guardrail/rulebook/validator-spec weakening, no new dependencies or CI-script edits, no embedded directives. The change is genuinely comment-only. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: docs-only — every Blocks
Comment disposition
Non-blocking note
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: docs-only — every Security screen: PASS — no secrets, no guardrail/rulebook/validator-spec weakening, no new dependencies or CI-script edits, no embedded directives. Blocks
Fix: change "150 sites remain, down from 171" to "150 sites remain, down from 161" (consistent with the Summary and the 11-line diff delta), or paste the actual Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: docs-only — every Security screen: PASS — no secrets, no guardrail/rulebook/validator-spec weakening, no new dependencies or CI-script edits, no embedded directives. The change is genuinely comment-only. Checklist: All applicable rules PASS or NA. The wide-grep arithmetic reconciles against the diff: exactly 11 removed lines match the pasted regex (3 in Comment dispositions
Non-blocking notes
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Successor to
#575, which auto-closed at the five-verdict threshold with its content unlanded (deploykitstands at 161 widened-class sites atorigin/main, and this PR takes it to 150). This PR carries the same tree plus one more commit, dropping the phase and task tags the last verdict named.Fifteen historical comment sites in
sdk/deploykit's auto-intermediate-image subsystem rewritten so the comments describe present code.DESIGN.md:2649--D-CODE-4 | Comments describe present code; history goes to CHANGELOG/.Dispositionconforms.deploykit/intermediates.godeploykit/intermediates_compute.godeploykit/intermediates_move_test.goEvery load-bearing reason is kept -- the purity argument, the byte-identical behaviour, the RDD spike on 25 real cachyos boxes with its 8 distro-tag sequences, and the rule that a base's namespace-relative builder map must not cross a namespace boundary. Only the relocations are gone.
One site is left alone deliberately.
intermediates_compute.go:86reads "Default UID -- used to decide whether an intermediate needs a UID suffix". That is present tense -- is used to decide -- not history, and the widened grep cannot tell them apart. A sweep that changed it would be substituting on a pattern instead of reading the sentence.How tested
The revision range in that filter matters.
git diffwith no range compares the worktree to the index, so on a clean tree it prints nothing regardless of what was committed — an empty result there says nothing aboutorigin/main...HEAD. The range is what makes the emptiness a claim about the branch, and an earlier revision of this body omitted it while calling the result the proof.What this does not sweep, measured with the wide instrument
Two numbers for two refs, and both stated. 161 at
origin/main, 150 atHEAD; the eleven are this PR's. The remainder is named by file and count in opencharly/opencharly#1147, whose close condition is the same expression printing0.D-CODE-4's class is wider than theDELETEDtoken -- the same claim is made as "relocated fromcharly/engine.go", "the formerwriteLabels", "used to carry its own copy", "no longer sourced from" -- so this PR measures with the wide form and reports the wide remainder. No claim is made about the files it does not touch.The
specleg landed atspec#392, thecharlyleg atcharly#1212(v2026.323.0152),sdk'sloaderkit/kit/root/vmsharedlanes atsdk#572andsdk#573, anddeploykit's label pair atsdk#574.Rulebook compliance
git-workflow,goanddesignloaded before the first git action.#1147with its count.git statusread; worktree off freshorigin/main; four commits on the branch, each a repair round, listed bygit log --oneline origin/main..HEAD:No amend after the first push, no force-push.
git diff -U0filter above. The module's own suite still passes.sdkcarries no per-repo candy gate; the module suite is pasted above.D-CODE-4(DESIGN.md:2649). No amendment is owed.Change classification
Kind:
sdkGo comments -- fifteen historical comment sites across three files,+39/-54bygit diff --numstat, zero non-comment lines.Breaking change + rollback: none; the diff filter above is the proof, not the file suffix. Rollback reverts the three files.
Filed issues
deploykit's remaining 150 sites are named there by file and count, andcharly's 192 prose occurrences are atcharly#1211.Agent:
lead· DeepSeek Harness session0d9af4c2ae6eAssisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)