Skip to content

docs(sdd): CLAUDE.md defers the exception catalog to its sole owner - #69

Merged
atrawog merged 2 commits into
mainfrom
feat/sdd-catalog-pointer
Jul 12, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/sdd-catalog-pointer

Conversation

@atrawog

@atrawog atrawog commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

The superproject leg of the coordinated D2 docs cutover (plugins#33's validator caught the mirror-claim divergence: CLAUDE.md hardcoded 'ONLY three NON-wire categories' vs the go skill's spike-proven fourth). Fix is the CLASS per the mandate-vs-detail doctrine: CLAUDE.md defers the catalog + gengotypes CAN/CANNOT results to /charly-internals:go (the Authoritative-copy registry's sole owner), carrying no count/enumeration; the no-exception-without-pasted-spike mandate is unchanged. Lands WITH plugins#33. Documentation-only (CLAUDE.md 1 sentence + CHANGELOG); documentation reviewed tier.

Assisted-by: Claude (documentation reviewed)

https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif

…kills mirrored-count drift)

The plugins#33 validator caught CLAUDE.md's hardcoded "ONLY three NON-wire
categories" contradicting the go skill's spike-proven fourth exception. Per the
mandate-vs-detail doctrine, CLAUDE.md now defers the catalog + gengotypes
CAN/CANNOT results to /charly-internals:go "Generation coverage" (the registry's
sole owner), carrying no count or enumeration; the no-exception-without-pasted-
spike mandate is unchanged. The superproject leg of the coordinated D2 docs
cutover (plugins#33 carries the skill leg). Documentation-only.

Assisted-by: Claude (documentation reviewed)
Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
@atrawog

atrawog commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: docs-only (CLAUDE.md 1 sentence + new CHANGELOG; zero behavior) → documentation reviewed

Fresh independent evaluator — re-derived every claim from the diff, main's CLAUDE.md + skills, and the pointer target; trusted no author claim.

# Rule Verdict
0 security & anti-tampering (T1–T4) PASS
1 description complete PASS
2 change-class gate matches (non-runtime standards) PASS
3 attribution tier justified (documentation reviewed) PASS
4 R0 skills honored (mandate-vs-detail doctrine + registry) PASS
5 R1 RCA / zero warnings / no flake framing PASS
6 R2 no pre-existing split PASS
7 R3 no duplication PASS (this IS the de-dup fix)
8 R4 no ad-hoc workaround N/A
9 R5 hard cutover + grep self-test PASS
10 R6/R8/R9 artifact + binary integrity N/A
11 R10 gate (docs-only → non-runtime standards) PASS
12 RDD/ADE/SDD PASS (mandate preserved verbatim; no schema-shaped code touched)
13 concurrency + anti-cheat N/A
14 hard cutover — one atomic commit PASS
15 kernel/plugin boundary N/A
16 disposable-only autonomy N/A
17 clean architecture + go gates N/A
18 CHANGELOG present PASS

What I verified (adversarially, not on the author's word):

  • T4 heightened review (this touches the rulebook): the change PRESERVES both enforceable SDD mandates verbatim — "hand-writing a wire struct is FORBIDDEN" and "No @go(-) / hand-written type is EVER added without a full RCA + a live cue exp gengotypes spike" — and adds a reinforcement ("every catalog entry requires its pasted spike"). It removes ONLY a denormalized count/enumeration ("three NON-wire categories: …"), deferring to /charly-internals:go "Generation coverage" — the Authoritative-copy registry's sole owner of the SDD operationalization. This strengthens the anti-drift posture (kills a proven mirror-divergence vector); it is not a weakening. No maintainer-deference needed.
  • R5 grep self-test: git grep (respects the gitlink) on the feat branch returns zero residual "three NON-wire" / enumeration in the superproject's own tracked files — the only NON-wire reference left is the new pointer sentence. (The go SKILL.md "three" match lives in the plugins submodule = a separate repo, landing via plugins#33; git grep does not cross the gitlink.)
  • Pointer target is real & accurate: /charly-internals:go "Generation coverage" (SKILL.md L45–66) exists, carries the catalog + the gengotypes CAN/CANNOT spike results, and is the registered sole owner. The new sentence is deliberately count-agnostic, so it stays consistent whether the skill lists 3 (current) or 4 (post-feat(deploykit): adopt sdk/deploykit step vocabulary (P4-unit-3 consumer) #33) entries — no ordering hazard; this PR is safe to land independently.
  • Heading stability: ## Schema Driven Design (SDD) unchanged → no CLAUDE.md public-API rename → no mirroring-surface sweep triggered.
  • CHANGELOG integrity: H1 # 2026.193.1140 — … matches the filename stem (placeholder CalVer; I finalize it to the merge-time CalVer at merge).
  • Scope: diff is exactly the 2 files the description claims (20 add / 1 del); no hidden files, no embedded directive to the validator, no secrets/exfiltration/supply-chain.

Decision: Compliant. Proceeding to finalize the merge-time CalVer, --squash merge, and tag the merged main.

Assisted-by: Claude (documentation reviewed)

Evaluator version-stamp: rename the placeholder CHANGELOG to the merge-time
CalVer and rewrite its H1 to match. Documentation-only.

Assisted-by: Claude (documentation reviewed)
@atrawog
atrawog merged commit fa15ede into main Jul 12, 2026
@atrawog
atrawog deleted the feat/sdd-catalog-pointer branch July 12, 2026 11:47
atrawog added a commit that referenced this pull request Jul 14, 2026
/#72/#74)

Evaluator-generated CalVer stamp for the gate-infrastructure batch cutover
(vm-destroy false-success #69, makepkg sibling-branch fetch #72, unstamped-binary
bed-runner guard #74). Renames the placeholder CHANGELOG to CHANGELOG/2026.195.0802.md and
stamps its H1 to match; folded into the squash-merge.

Assisted-by: Claude (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 14, 2026
…ch fetch (#72), unstamped-binary bed-runner guard (#74)

Gate-infrastructure thematic batch — three independently-non-blocking bed/gate reliability fixes, one squash.

#69 — `charly vm destroy` backend-mismatch false-success + `bundle del` domain-teardown owner. `destroyVmDomain` probes libvirt authoritatively (regardless of the configured/default backend), tears the domain down from whichever backend holds it, VERIFIES it is gone, and hard-errors "no such VM" when nothing was torn; `vmPostTeardown` fires `vm destroy <entity> --domain <domain> --keep-deploy` as `bundle del`'s domain-teardown owner. + regression tests.

#72 — makepkg update-phase fetch scoping. The arch localpkg `build_template`'s `makepkg -sf` now sets `GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=fetch.recurseSubmodules GIT_CONFIG_VALUE_0=false`, so a worktree-shared superproject fetch no longer on-demand-recurses into a sibling branch's unpushed sdk gitlink ("not our ref"). Applied to BOTH `//go:embed` copies (R3); deb/rpm unaffected (no makepkg/git+file://).

#74 — bed-runner precondition. `CheckBinaryStamped` refuses `charly check run` on an unstamped ("unknown") binary, pointing at `task build:binary`; scoped to `run` via `commandPathKey` + os.Args; `charly version` also exits non-zero when unstamped. + unit tests.

Found + registered while landing: #76 (word-keyed plugin cache races across worktrees) → next bed-infra batch.

Validated by a fresh, independent pr-validator: golangci-lint 0 (charly / plugin-vm / plugin-deploy-vm), gofmt/vet/build/targeted-test clean; R10 beds corroborated (check-builder-vm 9/9 ok, check-local-vm 7/7 ok with the makepkg update phase ok:true under the live 4-sibling-gitlink state); placement CORRECT.

Assisted-by: Claude (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 14, 2026
#77, #76)

vm-lifecycle-correctness thematic batch — two non-blocking correctness fixes, one squash.

#77 — `charly vm stop` backend-mismatch false-success (the stop sibling of #69's
vm-destroy). Extract `vmHolder` (the authoritative "which backend ACTUALLY holds this
domain" probe) shared with #69's `destroyVmDomain` (R3 — ONE shared abstraction, never
a duplicate); `destroyVmDomain` is refactored to use it byte-equivalently. Add `stopVmDomain`
(probe + stop + poll-for-shutoff verify — the same `pollUntil`/`StopGate` primitive
`gracefulStopDomain` uses for destroy). Rewrite `charly vm stop` to use it; a nonexistent VM
errors "no such VM" (mirroring #69 destroy) instead of false-success. The libvirt stop is an
ASYNC ACPI poweroff, so the verify POLLS for the domain to leave `DomainRunning` (exactly
what `vm list -a` reports as "running") rather than re-probing immediately (which
false-positives mid-shutdown — confirmed live); only a guest still running after the grace
errors, pointing at `charly vm stop --force`. The core `stopVM` (arbiter `holderStop`) is the
same class in a separate code path — registered for the next vm-lifecycle cutover
(cross-package kit unification of the duplicated stop/qemu/vmDir helpers).

#76 — the out-of-tree plugin build cache (`~/.cache/charly/plugins/<name>`) was word-keyed
shared-mutable state: two worktrees building the same plugin word raced the one `go build -o`
output (the #75 shared-image-tag collision class). Scope the cache path by source dir
(`pluginSourceTag`, a 16-hex digest of the absolute srcDir — always-rebuild, no cache-hit
skip, so a dependency bump never serves a stale binary) + atomic publish (build to
`bin.build` under the per-binary lock, then `os.Rename`) so a reader never sees a
half-written binary.

R10: `check-charly-vm` bed exit 0 / 7 steps ok (exercised `vmHolder` via the destroy teardown
+ #76 plugin builds with the new source-scoped cache paths — the `<tag>` suffix in every
built plugin path is `pluginSourceTag`); live `charly vm stop` on a disposable SSH-ready
`charly-vm` -> "Stopped VM" + verified `shut off` (rc=0); unit tests (`vm_stop_test.go`,
`plugin_build_cache_test.go`) + golangci-lint 0 (charly / plugin-vm) + `task build:binary`.

Assisted-by: Claude (fully tested and validated)
atrawog added a commit that referenced this pull request Aug 18, 2026
…tree that exists

docs#70 advances to 74ee631 — recipes/index.md regenerated (its own ollama-cli card, pure gain),
and the body and CHANGELOG rewritten from `git diff --name-status` rather than from earlier
revisions of themselves. They had said 25 content pages against an actual 21, named three
generate-packages pages that came from docs main via #69, claimed a carried-backlog entry the diff
does not contain, and omitted recipes/core/charly-status.md, which it does.

Both gates at this pin, every submodule at its gitlink:

    skills: no NEW drift. Carrying 24 known-stale artifact(s)
    docs:   no NEW drift. Carrying 63 known-stale artifact(s)

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
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