Repository navigation
docs(deploykit): D-CODE-4 sweep, the bed-session header - #584
Conversation
DESIGN.md:2649. Seven history sites in bed_session.go: the HostRooted trait check formerly nodeTraits(...), ResolveBedCheckLevel DIED as dead code, no longer requires the DeployStateHost package var, a CORRECTION to this file's own former prediction, and three #55 W3 B2-full / #55 U4 promotions. Each now states the present rule -- deploy.HostRooted is a pure #Deploy-tree read, the plugin-check bed_persist.go is the sole caller, the reader is injected. The CORRECTION paragraph becomes what the code does, not what it once predicted. Agent: lead Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
…read badly thereafter bed_session.go line 10 said the check-bed HOST helpers relocated from charly/check_bed_run.go, and my earlier edit left the SAME pattern stranded on its own line mid-sentence. The header now opens by saying what the file is, and the provider-registry paragraph runs as prose: no coupling is load-bearing except ONE classification, which the caller computes once and threads in. Agent: lead Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
Review — PASSHead SHA: Security screen: PASS — comment-only diff, no scope mismatch, no secrets/egress, no guardrail or spec change, no embedded directives. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
5 historical comment sites in
sdk/deploykitrewritten so the comments describe present code.DESIGN.md:2649--D-CODE-4 | Comments describe present code; history goes to CHANGELOG/.Dispositionconforms.deploykit/bed_session.goEvery load-bearing reason is kept -- the purity argument, the one-canonical-home rule, and each placement or freshness constraint that made the old prose necessary in the first place. Only the relocations, the phase tags and the campaign narratives are gone.
How tested
The revision range matters.
git diffwith no range compares the worktree to the index, so on a clean tree it prints nothing regardless of what was committed. The range is what makes the emptiness a claim about the branch.5 sites removed, counted from the diff's KEYWORD-FILTERED removed comment lines:
What this does not sweep, at both refs
108 at
origin/main, 103 atHEAD. The diff removes 5 matching lines and adds 0, so the census moves by 5 -- and 108 - 5 = 103, which isHEAD. The remainder is named by file and count in opencharly/opencharly#1147, whose close condition is the same expression printing0.No claim is made about the files this PR does not touch.
Review-round RCA
The BLOCK this push answers:
bed_session.goline 10 still read "the check-bed HOST helpers relocated from charly/check_bed_run.go" -- the file header, unchanged context in the diff, while the body claimed only the relocations and phase tags were gone.The mechanism. The sweep worked downward from the first
funcand treated the header as preamble. Four of this lane's seven PRs have been blocked on a file header, for exactly this reason: a header is where a file explains its own provenance.The missed control. The per-file grep DID match line 10. I read it, judged it a description of the file rather than a site, and moved on -- a judgement made before reading the block it opens.
The blast radius. One comment line, no behaviour; build and suite clean.
The root fix. Read the whole header block first, in every file of a unit, before deciding which lines are sites.
Rulebook compliance
git-workflow,goanddesignloaded before the first git action.#1147with its count.git statusread; worktree off freshorigin/main; commits pasted from the command: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 -- 5 historical comment sites,+27/-37bygit diff --numstat, zero non-comment lines.Breaking change + rollback: none; the ranged diff filter above is the proof, not the file suffix. Rollback reverts the touched files.
Filed issues
deploykit's remaining 103 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)