Skip to content

docs(deploykit): D-CODE-4 sweep, the bed-session header - #584

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/deploykit-bed-secret-c
Nov 19, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/deploykit-bed-secret-c

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

5 historical comment sites in sdk/deploykit rewritten so the comments describe present code. DESIGN.md:2649 -- D-CODE-4 | Comments describe present code; history goes to CHANGELOG/. Disposition conforms.

file before -> after
deploykit/bed_session.go "the check-bed HOST helpers relocated from charly/check_bed_run.go", "the HostRooted trait check (formerly nodeTraits(...))", "ResolveBedCheckLevel ... DIED as dead code", "PersistBedDeployOverrides no longer requires the DeployStateHost package var", "CORRECTION to this file's own former prediction" -> what the file is; reads node.Descent directly; there is no ResolveBedCheckLevel here; the reader is injected; and the lock/lease/persist family stated where it lives

Every 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

$ git diff --numstat origin/main...HEAD
27	37	deploykit/bed_session.go
$ git diff --numstat origin/main...HEAD | awk '{a+=$1;d+=$2} END{print "+"a"/-"d}'
+27/-37
$ git diff -U0 origin/main...HEAD | grep -E '^[+-]' | grep -vE '^(\+\+\+|---)' | grep -vE '^[+-][[:space:]]*//'
(empty)
$ GOWORK=off go build ./...            (rc 0)
$ GOWORK=off go vet ./...              (rc 0)
$ gofmt -l deploykit/                  (empty)
$ GOWORK=off go test ./deploykit/ -count=1
ok

The revision range matters. git diff with 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:

$ git diff -U0 origin/main...HEAD | grep -cE '^-[[:space:]]*//.*(DELETED|[Ff]ormer|used to|was (deleted|removed|relocated)|is gone|no longer)'
5

What this does not sweep, at both refs

$ git grep -nE 'DELETED|[Ff]ormer|used to|was (deleted|removed|relocated)|is gone|no longer' \\
    origin/main -- 'deploykit/*.go' | wc -l
108          # the BASE, before this PR
$ git grep -nE 'DELETED|[Ff]ormer|used to|was (deleted|removed|relocated)|is gone|no longer' \\
    HEAD -- 'deploykit/*.go' | wc -l
103          # after this PR

108 at origin/main, 103 at HEAD. The diff removes 5 matching lines and adds 0, so the census moves by 5 -- and 108 - 5 = 103, which is HEAD. The remainder is named by file and count in opencharly/opencharly#1147, whose close condition is the same expression printing 0.

No claim is made about the files this PR does not touch.

Review-round RCA

The BLOCK this push answers: bed_session.go line 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 func and 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

  • R0 -- git-workflow, go and design loaded before the first git action.
  • R1 -- the widened population was measured at both refs before the unit was chosen; the remainder is in #1147 with its count.
  • R2 -- no duplication introduced; the one-canonical-home argument is preserved, not weakened.
  • R3 -- no workaround.
  • R4 -- no documented command changed; the diff is comment-only, proven above.
  • R5 -- legacy prose removed, with the claim-keyed grep at both refs and the remainder named.
  • R6 -- git status read; worktree off fresh origin/main; commits pasted from the command:
$ git log --oneline origin/main..HEAD
955c902 Merge remote-tracking branch 'origin/main' into feat/deploykit-bed-secret
f5b7adb docs(deploykit): the file header, which opened with a relocation and read badly thereafter
e6def24 docs(deploykit): D-CODE-4 sweep, the bed-session header
  • R7 -- a comment-only diff has no behaviour to test; the instrument that reaches this claim is the ranged git diff -U0 filter above. The module's own suite still passes.
  • R8 -- no live service crossed.
  • R9 -- no binary rebuilt, no runtime behaviour changed, and the comment-only proof is what establishes it.
  • R10 -- sdk carries no per-repo candy gate; the module suite is pasted above.
  • R11 -- conforms to D-CODE-4 (DESIGN.md:2649). No amendment is owed.

Change classification

Kind: sdk Go comments -- 5 historical comment sites, +27/-37 by git 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

Agent: lead · DeepSeek Harness session 0d9af4c2ae6e
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

aitrawog added 3 commits November 19, 2026 08:33
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)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 955c90207f325bed07f94658845352ed707f5c34 (branch: feat/deploykit-bed-secret-c)

Security screen: PASS — comment-only diff, no scope mismatch, no secrets/egress, no guardrail or spec change, no embedded directives.
Checklist: All applicable rules PASS or NA. Diff is comment-only and matches the body (ranged -U0 non-comment filter empty; 108−5=103 census internally consistent; 5 keyword-matched sites verified against the removed lines). Prior-BLOCK finding (line-10 relocation header) is fixed in the current diff; RCA names the missed control and root fix. D-CODE-4 cited and conforms; remainder filed in opencharly/opencharly#1147. Footer present in correct order (Agent line first, Assisted-by last) with the minimal, non-inflated documentation reviewed tier appropriate to a comment-only change. No comments to disposition.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 19, 2026 08:10
@github-actions
github-actions Bot merged commit 3065ae0 into main Nov 19, 2026
8 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 19, 2026
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