Skip to content

chore(pins): advance charly to v2026.280.1631 — the dotted-local-bed + loader-cycle fixes (#330) - #424

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/adopt-charly-dotted-local-fixes
Oct 7, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/adopt-charly-dotted-local-fixes

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two changes in one commit: the policy-B pin advance this PR came for, and the in-tree fix for the defect that stopped this PR's own gate from running on the layout the rulebook requires.

1. The pin advance (the pins verb, never a hand-pin)

$ charly task pins --param MODE=bump      # scoped to the charly gitlink (see below)
      bumped 1 submodule pin(s): charly
 charly | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-Subproject commit 350435d789836d135304c2e49af40211cd5f10e9
+Subproject commit 214692903edee807d9149f518fcd6896c7c294f6

21469290 is charly main (tag v2026.280.1725) — a MERGED ref. What the pin carries is the merged producer chain:

producer adopted pin fix
opencharly/spec#202 spec v0.2026280.1255 an import ref's identity names its PROJECT (local toplevel-relative + remote SubPath), so a subdirectory project mounts as a definition instead of resolving to a self-reference
opencharly/sdk#350 sdk v0.2026280.1251 the materialized wire codec terminates the (by-design) cyclic UnifiedFile.Namespaces graph by carrying the namespace levels flat
opencharly/plugin-check#85 plugin-check v0.2026280.1309 the local arm resolves a namespace-qualified bed with the dispatcher's resolver (+ the in-repo R10 bed)
opencharly/plugin-check#87 plugin-check v0.2026280.1627 a resolved NON-host leaf under a HOST root dispatches on the LEAF's venue (+ its in-repo R10 bed)
(charly#821, charly#822 adopt these) charly v2026.280.1725 —

Together these close this repo's own defect #330: ./charly/bin/charly task list at the umbrella root used to abort at project load with json: unsupported value: encountered a cycle via map[string]*spec.UnifiedFile, and now loads and lists every maintenance task.

No distro-* move is required. Policy B ties distro-* to charly's own box/* gitlinks, and those are byte-identical at both ends of this bump:

$ git -C charly diff --stat 350435d789836d135304c2e49af40211cd5f10e9 21469290 -- box
(no output — unchanged)

so the twins already hold and this PR moves the ONE pin that carried the fix. The bump therefore ran with the verb's documented skip: list set to every other submodule (425 submodules, 424 skipped) — the pin VALUE still comes from the verb (charly → its default-branch HEAD), only the sweep's scope is narrowed to this change's blast radius.

2. scripts/check-harness-config.mjs — the self-test no longer aborts on an unmaterialized submodule surface

Mechanism (RCA, run before any remediation). The first task verify on this worktree FAILED:

  [fail] check — the harness-config gate discriminates — each mutation turns it RED (fixtures)
      exit=1, want 0 (stderr: node:internal/fs/cp/cp-sync:56 ...)

$ node scripts/check-harness-config.mjs --self-test
Error: ENOENT: no such file or directory, lstat '<worktree>/marketplace/DISPATCHER.md'
    at cpSyncFn (node:internal/fs/cp/cp-sync:56:13)
    at stage (file:///<worktree>/scripts/check-harness-config.mjs:156:7)

marketplace is a SUBMODULE; stage() copied every surface unconditionally, so a checkout that does not materialize its submodules — the session-worktree layout Part II rule 2 requires — threw ENOENT out of the self-test and aborted every remaining arm, masking the gate's real verdict.

Missed control. The gate ITSELF already guards this exact case three times (checks 8/12/13: "marketplace ... not checked out — ... check skipped"). Only the self-test's fixture stager lacked the same guard, so the one command a worktree diff MUST run was the one command a worktree could not run.

Fix (in this diff, not parked). stage() skips an unmaterialized surface with a NOTICE — the same precondition and the same voice as the gate's own three guards — and the four corpus-measured arms (check 12's two, check 13's coverage and collision) are skipped identically, with the report naming how many arms were live.

How tested

The gate this diff requires — ./charly/bin/charly task verify, run on this committed tree with the advanced pin, pasted in full (all 19 steps):

$ ./charly/bin/charly task verify
task verify: 19 step(s), 0 failed
  [pass] check — policy B — every distro-* gitlink equals charly's own box/* gitlink
      ran 1 task(s), 0 step(s) failed
  [pass] check — every submodule is clean and checked out at its recorded gitlink — the ONE verb that owns the clause (its coverage rides its Message, the channel that renders on the pass path; a command step's does not)
      verify: 0 policy pin(s) hold across 425 submodule(s); 2 checkout(s) clean at their gitlink; 423 uninitialized (pin audited, no checkout): (425-path inventory elided for length)
  [pass] check — every submodule's branch equals its remote default — KEPT INLINE, deliberately, because no verb owns this clause, and it is the expensive half (one git ls-remote per submodule, hence the timeout below)
      exit=0
  [pass] check — charly's own nested submodules are at their gitlinks — KEPT INLINE, because the verb has no recursive-nested clause
      exit=0
  [pass] check — the nested-submodule step above — an uninitialized nested path is a NOTICE, a `+`/`U` drift still FAILS (fixtures)
      exit=0
  [pass] check — every step of every task in this file declares a `context:` the plan runner activates — a set disjoint from [build, runtime] (the `[deploy]` this file used to carry) is a no-op in EVERY mode (fixtures)
      exit=0
  [pass] check — the opencode gate plugin contract (the check-opencode-plugin gate the former verify-pins.sh ran)
      exit=0
  [pass] check — the PR-watch plugin's pure logic + its shipped (uncommented) SDK delivery primitives
      exit=0
  [pass] check — the agent-progress monitor+control plugin — static (no .sh), the classifier (RCA regression), and a read-only store
      exit=0
  [pass] check — the session tracker plugin — the durable ledger (rule 9 invariant), the three tools, and the real-binary load
      exit=0
  [pass] check — every harness-config surface parses and is wired (rule 5)
      exit=0
  [pass] check — the harness-config gate discriminates — each mutation turns it RED (fixtures)
      exit=0
  [pass] check — the pi gate extension fails CLOSED, uses the rule-2 worktree path, and wires both gate scripts
      exit=0
  [pass] check — the pi wake binding delegates to the neutral watchers, wakes, re-arms, cleans up, and ships inert + wired
      exit=0
  [pass] check — the pi PR-status tool parses, normalises the state, finds the run by head SHA, reads jobs via REST, and classifies INCONCLUSIVE
      exit=0
  [pass] check — the pi `question` tool is dependency-free, headless-safe, serialized, and wired into .pi/settings.json
      exit=0
  [pass] check — the harness-neutral R10 bed watcher classifies exit codes and parses summary.yml (self-test)
      exit=0
  [pass] check — every canonical root narrative exists and every root-file reference in the agent surfaces resolves (the #356 content-loss gate)
      exit=0
  [pass] check — the root-ref gate discriminates — each mutation turns it RED (fixtures)
      exit=0
rc=0

(The two counts in that paste are the ones the previous body got wrong; this one is the verbatim render with only the 425-path inventory elided, marked in place. 2 checkout(s) clean at their gitlink are charly and marketplace, the two this worktree materializes.)

The acceptance case #330 names — ./charly/bin/charly task list from the umbrella root, with the binary rebuilt from the advanced pin:

$ ./charly/bin/charly task list
hooks                    Install the pre-commit gate for this clone (policy B, the self-tests, the opencode, pi and pr-watch gates)
map                      List every submodule with its pin and sync state
org-map                  Verify the README "## The org map" tables against the repo and .gitmodules
pins                     The policy-B pin operation over the distro-* set (mode via param)
policy-b                 Assert policy B — every distro-* gitlink equals charly's own box/* gitlink
prune                    Reap merged-upstream session worktrees + branches (MODE=report is a dry run)
self-test                Self-test the committed CI body/pin-evidence builders + the dispatcher splice
skills                   Splice the generated R0 dispatcher from the pinned marketplace into AGENTS.md
sync                     Bump all submodule pins per policy B (preview; does not commit)
verify                   Run the full pinning gate on demand (every pin, incl. the remote branch audit)
rc=0

10 of 10 tasks listed; before the pin this command listed nothing and exited on the cycle error.

The script fix proves itself both ways — the SAME command, differing only in whether marketplace is materialized:

# BEFORE the fix, in this worktree (no marketplace): the self-test aborted
$ node scripts/check-harness-config.mjs --self-test
Error: ENOENT: no such file or directory, lstat '<worktree>/marketplace/DISPATCHER.md'   # rc=1

# AFTER the fix, marketplace STILL not materialized: green, and it says what it skipped
$ git submodule deinit -f marketplace && node scripts/check-harness-config.mjs --self-test
  NOTICE  surface marketplace/DISPATCHER.md is not materialized in this checkout — not staged
  NOTICE  check 12 (a row must resolve to a real skill — the dangling-ref arm): marketplace/DISPATCHER.md is not materialized in this checkout — arm skipped
  NOTICE  check 12 (the ratchet — dropping a row must FAIL, or the gate cannot notice coverage loss): marketplace/DISPATCHER.md is not materialized in this checkout — arm skipped
  NOTICE  check 13 (coverage — an unbound corpus skill must FAIL): .dsh/skills is not materialized in this checkout — arm skipped
  NOTICE  check 13 (collision — a duplicate skill name across families must FAIL): marketplace is not materialized in this checkout — arm skipped
check-harness-config --self-test: OK (27/31 arms live; 4 skipped — surface not materialized in this checkout; the structural ones are named in the header)

# AFTER the fix, marketplace materialized (the primary checkout): no regression
$ git submodule update --init marketplace && node scripts/check-harness-config.mjs --self-test
check-harness-config --self-test: OK (31/31 arms live; the structural ones are named in the header)

R9 — the binary is a fresh, worktree-local, CalVer-stamped build from the advanced pin:

$ ./charly/bin/charly version
2026.280.1725
$ go version -m ./charly/bin/charly | grep -E 'opencharly/(sdk|spec|plugin-check/candy)'
	dep	github.com/opencharly/plugin-check/candy/plugin-check	v0.2026280.1627	h1:wZ4MucwIfD9KJI9plHqvbRB1M6o1G2bARKKEju5YCNo=
	dep	github.com/opencharly/sdk	v0.2026280.1251	h1:TyVYp7LGBloYuBCfzOh/JN7JqCZazyhpf25d9SzHJ7Y=
	dep	github.com/opencharly/spec	v0.2026280.1255	h1:T5Den4FoHmEtv1OlEILUaPt7+LkeumQGadMUOAWuJek=

Rulebook compliance

Rule Answer
R0 /charly-internals:git-workflow loaded before any git/PR action; its pinning section is the procedure followed here (task pins → gate → PR).
R1 The gate's first run failed; RCA named the mechanism (stage() cpSync on an unmaterialized submodule surface), the missed control (the gate's own three guards at checks 8/12/13, which the self-test lacked), the blast radius (every session worktree and any CI checkout without submodules — the layout rule 2 requires), and the root fix, which is implemented in this diff. The earlier body's "unrelated"/"separately-owned" framing is withdrawn; the fix is in-tree.
R2 The surfaced defect is FIXED here, not parked: the script change ships in this commit, and the producer→consumer chain is complete (spec/sdk/plugin-check merged+tagged → charly #821 and #822 merged+tagged → this pin).
R3 ONE canonical pin source: the advance rides the pins verb and its pinned_from/pin_map contract; the script fix adds no second staging path — it guards the existing one.
R4 No sleep/retry/fallback. The skip: list selects WHICH submodules the verb touches, not what value it writes.
R5 No stale dual pin and no dead code: the unmaterialized case is handled by one guard in stage() plus one precondition in the arm loop, replacing an unguarded copy.
R6 git status read first (clean but for an untracked dir not of this session); PR-only branch; no force-push, no history rewrite, no hook bypass, no direct push to main.
R7 Both changed paths executed live: the pin ran (task list, task verify), and the script's new branch is proven by the both-ways self-test paste — red before the fix (ENOENT, rc=1) and green after, with no regression where the corpus IS materialized.
R8 The emitted artifact under test is the gitlink itself: go version -m names the four adopted tags the pin resolves to, and the pin audit reports 2 checkouts clean at their gitlink (charly, marketplace).
R9 charly version + go version -m pasted above.
R10 The change-class gate for a pin/gitlink diff — ./charly/bin/charly task verify — PASSED on the final committed tree (19 step(s), 0 failed), pasted in full, plus the live acceptance run.
Part II r2 Edits stay in a session worktree (<umbrella>/.worktrees/plugin-check-85-takeover/opencharly); tracked submodule checkouts stay at their gitlinks; the Go build ran inside charly/.
Part II r3 Pin advanced with the owning verb; the pinned ref is MERGED charly main; policy B's distro-* clause re-verified (PASS above).
Part II r5 The change edits only this repo's root surfaces (scripts/) and its own gitlink — harness config stays here, nothing mirrored into a submodule.

Change classification

  • Change class: umbrella pin advance (one gitlink) + one maintenance-script fix (scripts/check-harness-config.mjs), no product source change.
  • Attribution tier: fully tested and validated — the pin gate the diff requires passed on the final tree, the advanced pin executed live (the acceptance case), and the script's new branch was proven red-before/green-after.

Closes #330 on the live evidence above.

Authored in this session's own runtime: DeepSeek Harness (dsh) Web GUI at http://127.0.0.1:3080, model deepseek-v4.1-flash — the runtime the trailer names.
Agent: plugin-check-85-takeover · session session-fe6a1287-a711-4e47-b913-70b78d262fd1
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

… + loader-cycle fixes

Policy-B pin advance via `charly task pins MODE=bump` (scoped to the charly gitlink):

  charly  350435d789836d135304c2e49af40211cd5f10e9 -> 945f9d7d35d3383bee4863f1aa00d10c6a48e3a9

What the pin carries (the merged producer chain):
- charly#821 adopts spec v0.2026280.1255 (opencharly/spec#202 -- an import ref's identity
  names its PROJECT), sdk v0.2026280.1251 (opencharly/sdk#350 -- the wire codec terminates
  the cyclic UnifiedFile.Namespaces graph) and plugin-check v0.2026280.1309
  (opencharly/plugin-check#85 -- the local arm resolves a namespace-qualified bed with the
  dispatcher's resolver).

Together these fix #330: `./charly/bin/charly task list` from the
umbrella root now loads and lists every maintenance task (rc=0) instead of aborting at
project load with
`json: unsupported value: encountered a cycle via map[string]*spec.UnifiedFile`.

No distro-* move is required: charly's box/* gitlinks are unchanged between the old and the
new pin, so policy B already holds for the twins (verified).

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: b01fb6d0235db50a968ab89cf0bf857cb15c296b (branch: feat/adopt-charly-dotted-local-fixes)

Change class: umbrella pin advance (one gitlink charly 350435d7 → 945f9d7d), no source change.

Security screen: no finding (no secrets/egress/guardrail/supply-chain change; PR content contains no instruction aimed at the validator). Comment thread is empty — nothing to disposition.

Blocks

  1. R2 / B14(b) — surfaced defect parked with forbidden framing instead of fixed or batch-routed. The body's R1 row states the gate's first run FAILED, RCA'd to check-harness-config.mjs cpSync'ing marketplace/DISPATCHER.md when marketplace is uninitialized, and then: "the separately-owned defect is filed as scripts/check-harness-config.mjs --self-test aborts in a session worktree — it cpSync's a SUBMODULE file with no initialized-checkout guard #423 rather than hidden." The words "unrelated" and "separately-owned" are the exact R2/B14(b) parking phrases, and the exit named (scripts/check-harness-config.mjs --self-test aborts in a session worktree — it cpSync's a SUBMODULE file with no initialized-checkout guard #423, a filed issue) is not advanced by this PR — it is not a NAMED thematic batch cutover and nothing in the diff fixes it. The in-tree "remediation" was a local state action (materializing marketplace), not a code fix, so the harness defect remains live in the tree this PR lands. Per R2/B14(b) a parking phrase with no exit this PR advances is the forbidden split. Fix: guard/skip the cpSync in check-harness-config.mjs in-tree (or name the immediate-next thematic batch cutover the fix rides), and re-run the gate to ZERO failures/warnings. Do not land on the "unrelated"/"separately-owned" framing.

  2. R10 / R8 — pasted evidence does not reconcile with itself. The task verify block header claims 19 step(s), 0 failed, but the shown output lists only 4 named [pass] checks plus (14 further steps, all exit=0) = 18 — the counts do not sum. Separately, R8 asserts the pin audit "names charly as the one clean checkout at its gitlink" while the pasted output says 2 checkout(s) clean at their gitlink. Per ground rule 4 these are internally-inconsistent R10/R8 claims and block until the body supplies coherent, reconciled output (the correct step count and the correct number of clean checkouts).

Note (not itself a block, unverifiable read-only): the *Assisted-by: DeepSeek Harness deepseek-v4.1-flash …* trailer names a harness/provider/model I cannot cross-check against any authoring-runtime evidence in the body; if that name is not the true authoring runtime it is an A3/A1 defect. Reconcile it with the actual authoring evidence.

Verdict: BLOCK


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

View action run

…orktree-safe

Two changes in one commit: the pin advance this PR came for, and the fix for the defect that
stopped its OWN gate from running.

1. Policy-B pin advance (via `charly task pins MODE=bump`, scoped to the charly gitlink):

     charly  350435d789836d135304c2e49af40211cd5f10e9 -> 214692903edee807d9149f518fcd6896c7c294f6

   What the pin carries (the merged producer chain): opencharly/spec#202 (an import ref's
   identity names its PROJECT), opencharly/sdk#350 (the wire codec terminates the cyclic
   UnifiedFile.Namespaces graph), opencharly/plugin-check#85 (the local arm resolves a
   namespace-qualified bed with the dispatcher's resolver) and opencharly/plugin-check#87 (a
   resolved non-host leaf under a host root dispatches on its own venue). Together these
   close #330: `./charly/bin/charly task list` from the umbrella root
   loads and lists every maintenance task instead of aborting at project load with
   `json: unsupported value: encountered a cycle via map[string]*spec.UnifiedFile`.

   No distro-* move is required: charly's box/* gitlinks are identical at 350435d7 and
   21469290, so policy B already holds for the twins.

2. scripts/check-harness-config.mjs: the self-test no longer aborts on an unmaterialized
   submodule surface. `stage()` copied every surface unconditionally, so a checkout without
   the `marketplace` submodule -- the session-worktree layout Part II rule 2 REQUIRES --
   threw ENOENT out of the self-test and made `charly task verify` un-runnable there. It now
   SKIPS such a surface with a NOTICE, the same precondition the gate already guards at
   checks 8/12/13, and the four corpus-measured arms (check 12's two, check 13's coverage
   and collision) are skipped in the same voice; the report names how many arms were live.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 0d46b6458b20fea148cee1202f137e7cbf03f6c0 (branch: feat/adopt-charly-dotted-local-fixes)

Security screen: PASS — no secrets, egress, new endpoints, or supply-chain surprise beyond the reviewed gitlink advance; the harness-config self-test change preserves the gate (the gate's own checks 8/12/13 preconditions are unchanged — only the fixture stager/arm loop gains the same precondition) rather than loosening it; no PR text is addressed to the validator (all treated as data).

Placement: placement: CORRECT — the only changed surfaces are the umbrella's own scripts/ harness-config tooling and its charly gitlink; no capability code is moved into charly core/sdk, no alias/kit-import growth, no *Legacy* relocation smell. Nothing here regresses the plugin-host end-state.

Comment intake: 1 comment — @github-actions[bot] (review against the earlier head b01fb6d…): both findings stale-superseded. (1) The R2/B14(b) parking finding no longer reproduces — the current body withdraws the "unrelated"/"separately-owned" framing and the current diff ships the in-tree stage() guard + arm-skip fix in this same commit. (2) The R10/R8 count finding no longer reproduces — the current verify paste lists all 19 [pass] steps (header 19 step(s), 0 failed sums correctly), and the 2 checkout(s) clean figure is reconciled (charly, marketplace). Its trailer note is unverified-dismissed (a self-asserted runtime name, internally consistent with the body's runtime line, with no contradicting evidence).

Checklist: All applicable rules PASS or NA.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 7, 2026 17:34
@github-actions
github-actions Bot merged commit adb5e70 into main Oct 7, 2026
1 check passed
@aitrawog

aitrawog commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

RESOLVED — merged as adb5e70; the umbrella's charly gitlink is now 214692903edee807d9149f518fcd6896c7c294f6.

One record correction: the MERGE COMMIT TITLE reads "advance charly to v2026.280.1631" because that title was written for the first head (b01fb6d). The head that actually merged (0d46b64) advances the pin to 21469290 — charly main carrying both adoptions, i.e. tag v2026.280.1725 (plugin-check v0.2026280.1627, opencharly/plugin-check#87). The diff, the body and the gate output all describe 21469290; only the auto-generated squash title is one revision stale. Corrected here rather than by rewriting a landed commit.

Agent: `plugin-check-85-takeover` · session `session-fe6a1287-a711-4e47-b913-70b78d262fd1`
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

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.

umbrella charly task <name> cannot load the root project (json cycle via map[string]*spec.UnifiedFile)

1 participant