Skip to content

docs(agents): fix the sdk/spec submodule claim + gitlink-pin semantics; add catch-up/cleanup + repo-setup dispatcher row - #265

Merged
github-actions[bot] merged 3 commits into
mainfrom
docs/submodule-pin-clarity
Sep 27, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
docs/submodule-pin-clarity

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Corrects and clarifies the umbrella rulebook (AGENTS.md, symlinked as CLAUDE.md).
Docs-only prose (no pin/gitlink/.gitmodules change):

  1. R0 strengthened — skills are a MANDATORY, non-optional precondition for ANY code
    change.
    A prominent callout now states: the moment a task will edit a file, branch,
    commit, push, open/update a PR, touch a submodule, or run a git/gh action, the owning
    skill(s) MUST be loaded FIRST — /charly-internals:git-workflow before ANY git/PR
    action. A change made before loading them is an R0 violation and is not landable.
  2. Rule 4 (sdk/spec). The text claimed they are “NOT submodules”; they ARE
    .gitmodules submodules of the umbrella (evidence below). Reworded: they ARE umbrella
    submodules (so editing them takes a worktree here), but charly no longer pins them.
  3. Rule 6 rewritten to remove the self-contradiction the validator caught
    (“no longer pinned … de-submodule cutover” vs “recorded like every other pin” / “a pin
    IS A GITLINK”). It now states one thing: they are umbrella submodules like every pin;
    what changed is that charly resolves them from the Go proxy at pinned go.mod
    requires; a pin is a gitlink, checked out DETACHED and clean (task verify).
  4. New “Catch-up & cleanup” bullet (umbrella advances via task sync + PR; main
    ff-only; remove only your own worktree; delete a local branch only if --merged).
  5. Rule 9 strengthened — cross-session coordination. When ANOTHER SESSION'S PR blocks
    you, the ONE channel is a PR comment on the PR that owns the blocking file (or a new
    issue naming it), actionable (slug + file/gitlink/pin + what unblocks you + evidence);
    then STOP and ask the operator. Never edit their artifact or work around it.
  6. New rule 10 — mandatory before ANY update push: ALWAYS read the PR's LATEST comments
    • validation results AND ALWAYS write/update the PR body for the head being published.
  7. Skill Dispatcher gains the row for the new /charly-internals:repo-setup skill.

Maintainer sign-off (T4). This edits the enforced project rulebook; the maintainer
(operator) is asked to sign off on this change — it adds/strengthens rules only and
weakens no gate.

Change class

docs-only (umbrella rulebook prose; no pin/gitlink/.gitmodules change).

Closes / relates to: relates to opencharly/layer-charly-internals#28,
opencharly/.github#123.
Breaking change + rollback: none; rollback is a revert.

How R10-tested

The umbrella's own gate is charly task verify; this change touches no pin, so the gate
runs on the identical pinning state. Captured on the current tree (origin/main):

$ charly task verify
task verify: 3 step(s), 0 failed
  [pass] check — policy B — every distro-* gitlink equals charly's own box/* gitlink
  [pass] check — every submodule is clean and checked out at its recorded gitlink, and its branch equals the remote default
  [pass] check — the opencode gate plugin contract (the check-opencode-plugin gate the former verify-pins.sh ran)

The sdk/spec are submodules claim — the command + output it rests on:

$ git -C <umbrella> config -f .gitmodules --get-regexp 'submodule\.(sdk|spec)\.'
submodule.sdk.path sdk
submodule.sdk.url https://github.com/opencharly/sdk.git
submodule.sdk.branch main
submodule.spec.path spec
submodule.spec.url https://github.com/opencharly/spec.git
submodule.spec.branch main

(charly task verify also iterates sdk/spec as .gitmodules submodules.)

The full-PR diff stat:

$ git -C .worktrees/agents-md-clarity diff --stat origin/main...HEAD
 AGENTS.md | 61 ++++++++++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 46 insertions(+), 15 deletions(-)

Rulebook compliance

  • Rule 1: change lands via a PR; the tracked submodule checkouts are untouched.
  • Rule 4/9: edited in this session's own worktree (.worktrees/agents-md-clarity),
    branched off fresh origin/main; the umbrella main tree stayed on main and clean.
  • R1/R5: the sdk/spec false claim and rule 6's self-contradiction are corrected at
    their source with an unambiguous replacement.
  • R6: docs/ branch, PR-only, no force-push.

Change classification

  • Change class: docs-only (umbrella rulebook).
  • Verification gate: charly task verify (passed); no bed applies. Maintainer sign-off
    requested (T4, rulebook change).
  • Attribution tier: documentation reviewed.

Assisted-by: opencode opencode-go/deepseek-v4.1-flash (documentation reviewed)

…s; add the catch-up/cleanup rule and the repo-setup dispatcher row

Assisted-by: opencode opencode-go/deepseek-v4.1-flash (documentation reviewed)
…mments-and-write-body before any update push

Assisted-by: opencode opencode-go/deepseek-v4.1-flash (documentation reviewed)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 4aacd6370cff58e98443cc5d570af145c39322d2 (branch: docs/submodule-pin-clarity)

Change class: docs-only (umbrella rulebook prose, AGENTS.md). Security screen: no weakened gate — the diff adds/strengthens rules (rule 9 cross-session channel, new rule 10 pre-push invariant, rule 6 "never a hand-pin or a checkout"). However, this PR is a change to the enforced project rulebook (T3/T4 security machinery), so T4's "on doubt, defer to maintainer sign-off" applies and is not satisfied below.

Blocks

  1. A1 / R10 / T4 — the PR's central factual claim is asserted, not evidenced. The body's item 1 states sdk/spec "ARE .gitmodules submodules of the umbrella (verified)" and that this reverses the current rulebook text (AGENTS.md, rule 4: "sdk and spec are NOT submodules"; rule 6: "no longer charly-pinned submodules … their de-submodule cutovers"). The whole change turns on this reversal, yet the body pastes NO verification (no .gitmodules / git submodule status output, no command). Per A1/R10 the body must supply the evidence it relies on, and per T4 a doubt on a rulebook guardrail change must be deferred. Fix: paste the actual command + output proving sdk/spec are .gitmodules submodules (or drop the reversal), and obtain explicit maintainer sign-off for the rulebook edit.

  2. R1 — the rewritten rule 6 is internally inconsistent. AGENTS.md rule 6 (new) now reads "sdk and spec are no longer charly-pinned submodules — they resolve from the Go proxy at pinned go.mod requires (their de-submodule cutovers) — but they ARE umbrella submodules, recorded like every other pin." The same rule newly defines "A pin IS A GITLINK". "Recorded like every other pin" therefore asserts they are pinned, directly contradicting "no longer … pinned" and the retained "de-submodule cutover" (a de-submodule cutover removes a submodule). A spec that contradicts itself is an R1 doc-vs-reality divergence. Fix: make the rule say one thing — either they are umbrella submodules (then drop/correct "de-submodule cutovers" and "no longer … pinned") or they are not (then rule 4's reversal is wrong).

  3. Body-truthfulness — the pasted diff stat contradicts the PR's actual diff. The body's "Markdown/structure review of the diff" pastes git diff --stat HEAD~1 = 1 file changed, 19 insertions(+), 8 deletions(-) (AGENTS.md | 27), but this PR's actual diff is AGENTS.md +36/-14. HEAD~1 covers only the second of the two commits, so the body under-reports the change it asks to land. Fix: paste the full-PR stat (git diff --stat origin/main...HEAD).

Verdict: BLOCK


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

View action run

…hange; rule 6 unambiguous (validator round 1)

Assisted-by: opencode opencode-go/deepseek-v4.1-flash (documentation reviewed)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: e8d3e6cd7a917261bc1fdbc3daca3954494e92fd (branch: docs/submodule-pin-clarity)

Change class: docs-only (umbrella rulebook prose, AGENTS.md; no pin/gitlink/.gitmodules change in the diff).

Security screen: no weakened gate — the diff only adds/strengthens rules (R0 mandatory-precondition callout, rule 6 "never a hand-pin or a checkout", new rule 10, rule 9 cross-session channel). But it edits the enforced rulebook (T4, below).

Blocks

  1. Body-truthfulness (rule 4) / A1 — the pasted "full-PR diff stat" contradicts the current diff.
    The body pastes git -C .worktrees/agents-md-clarity diff --stat origin/main...HEAD → 1 file changed, 36 insertions(+), 14 deletions(-) (AGENTS.md | 50). The current diff is AGENTS.md +46/-15 (AGENTS.md | 61; verified by line-by-line count of the four hunks: 12+17+16+1 additions, 9+6+0+0 deletions). The pasted value is stale by the third commit's delta (+10/−1 = the R0 callout + dispatcher row). This is precisely the "stale body re-reviews the wrong state" condition the PR's own new rule 10 warns against. Fix: re-run git diff --stat origin/main...HEAD at the current head and paste the real numbers (+46/−15).

  2. T4 — rulebook guardrail change without obtained maintainer sign-off.
    The diff edits the enforced umbrella rulebook, including rule 6 (policy B / pin discipline — a landing rule). The body only requests sign-off ("the maintainer (operator) is asked to sign off on this change"), and no maintainer sign-off appears in the thread. Per T4 ("when in doubt … BLOCK requesting explicit maintainer sign-off"), the gate stays blocked until the operator signs off in-thread.

Comment dispositions

  • Comment 5853879762 (github-actions[bot], head 4aacd637) — re-derived against current state:
    • Finding 1 (sdk/spec submodules claim unevidenced): stale-superseded — the current body pastes the git config -f .gitmodules --get-regexp 'submodule\.(sdk|spec)\.' command and output (path/url/branch for both), which is the evidence the prior comment demanded.
    • Finding 2 (rule 6 self-contradiction): stale-superseded — the current rule 6 no longer carries the prior triple contradiction; the "no longer charly-pinned submodules" / "de-submodule cutovers" wording is gone, and the umbrella-pin vs CHARLY-pin senses are now disambiguated.
    • Finding 3 (diff-stat contradicts actual diff, HEAD~1): verified-blocking — survives in mutated form: the command was corrected to origin/main...HEAD, but the pasted value is stale (block 1).

Verdict: BLOCK


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

Maintainer sign-off. As the operator/maintainer I approve this umbrella rulebook change (R0 mandatory-precondition callout; rule 4 and rule 6 corrections; rules 9/10; the repo-setup dispatcher row). It strengthens the rules and weakens no gate — approved to land.

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: e8d3e6cd7a917261bc1fdbc3daca3954494e92fd (branch: docs/submodule-pin-clarity)

Security screen: PASS — docs-only umbrella rulebook prose; the diff only adds/strengthens rules (R0 mandatory-precondition callout, rule 6 "never a hand-pin or a checkout", rule 9 cross-session channel, new rule 10, repo-setup dispatcher row). No weakened gate; T4 maintainer sign-off is present in-thread (aitrawog, comment 5853968584).
Checklist: All applicable rules PASS or NA. Diff stat re-derived hunk-by-hunk = +46/−15 (AGENTS.md | 61), matching the body's pasted origin/main...HEAD stat and the file header.

Comment dispositions:

  • 5853879762 (bot BLOCK @ 4aacd637) — stale-superseded: sdk/spec evidence now pasted (git config -f .gitmodules --get-regexp output); rule 6 self-contradiction removed; HEAD~1 stat replaced.
  • 5853916151 (bot BLOCK @ e8d3e6cd) — stale-superseded: current body stat is +46/−15 (matches diff), and T4 sign-off is now supplied.
  • 5853968584 (aitrawog) — verified-non-blocking: explicit maintainer/operator approval to land; satisfies T4.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 27, 2026 07:52
@github-actions
github-actions Bot merged commit c4af8f5 into main Sep 27, 2026
1 of 2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 27, 2026
@aitrawog
aitrawog deleted the docs/submodule-pin-clarity branch September 27, 2026 07:56
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.

2 participants