Skip to content

chore(pins): advance box/arch to distro-arch's main (9b84c67c) - #1014

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/advance-box-arch
Oct 21, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/advance-box-arch

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Advance box/arch to distro-arch's main (9b84c67c)

Head d985c746ea7b2c4b991aa1a9fcf01b2e80b0a240 (branch feat/advance-box-arch), one commit,
one file changed, 1 insertion and 1 deletion.

Summary

One commit, one mode-160000 gitlink, produced by charly task sync (the pin verb's
MODE=bump) and committed from what it staged — never a hand-pin:

box/arch  71ba7fdf -> 9b84c67c

9b84c67c is distro-arch's refs/heads/main after 66b108a fix(skills)! and 9b84c67 docs: add CHANGELOG (distro-arch#68). The other five box/* leaves already recorded the ref their
upstream:main intent names, so the bump staged exactly one gitlink.

Why this hop exists. charly is the producer in the cross-repo order: the umbrella's six
distro-* edges desugar to derived-from:charly, so their value IS charly's nested box/*
gitlink. box/arch was the one leaf still behind its own remote, which is why the umbrella's
distro-arch edge reads blocked-by charly:box/arch (behind). This commit is that producer
leg; the umbrella's own task sync is the hop that consumes it (opencharly/opencharly#555).

The pins are not inert here. charly/plugin_prescan.go:544 resolves each import:
namespace LOCAL FIRST from box/<namespace>, so what this advance changes is the tree charly
itself prescans and validates:

	if local := filepath.Join(baseDir, "box", name); local != "" {
		if _, err := os.Stat(filepath.Join(local, spec.UnifiedFileName)); err == nil {
			return local, nil
		}
	}

The comment above it states the reason in the code's own words: prescanning the pinned cache
instead would read a DIFFERENT tree than the one being parsed, because the pin and the
submodule drift routinely. charly/plugin_prescan_import_test.go covers that local-first
resolution and ran green in the suite below.

What this advance actually moves, stated plainly. box validate counts do NOT move
between the two commits: both arms report 133 candies, 11 boxes, 8 deploys, 0 warnings,
0 errors (pasted below). The advance's diff is 7 byte-identical SKILL.md relocations plus
AGENTS.md and CHANGELOG/ — prose and skill bodies, which no validated entity counts. I am
not claiming a number moved because none did; the inert-looking result is the true one, and
the prescan claim rests on the code path and its test, not on a fabricated count delta.

How tested

The pin gate, both modes, on the committed tree (d985c746):

$ ./bin/charly task pins --param MODE=verify 2>&1 | grep -vE '^WARNING: charly is a dev|^plugin '; echo "rc=${PIPESTATUS[0]}"
task pins: 1 step(s), 0 failed
  [pass] run — run git-submodules in the selected mode
      verify: 0 policy pin(s) hold across 6 submodule(s); 6 checkout(s) clean at their gitlink
rc=0
$ ./bin/charly task pins --param MODE=currency 2>&1 | grep -vE '^WARNING: charly is a dev|^plugin '; echo "rc=${PIPESTATUS[0]}"
task pins: 1 step(s), 0 failed
  [pass] run — run git-submodules in the selected mode
      currency: 0 of 6 pin(s) NOT current [6 cur]; intents: 6 upstream leaf/leaves (6 implicit), 0 derived-from edge(s); producer-first legs: none — every pin is at the ref its intent names
rc=0

The diff itself, and the composition gate over the whole project:

$ git diff --numstat origin/main HEAD
1	1	box/arch
$ git show --stat --oneline HEAD
d985c746 chore(pins): advance box/arch to distro-arch's main (9b84c67c)
 box/arch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
$ ./bin/charly box validate 2>&1 | grep -vE '^WARNING: charly is a dev|^plugin '; echo "rc=${PIPESTATUS[0]}"
charly box validate: OK — checked 602 candies, 122 boxes, 48 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
rc=0

Each distro project on its own, over the advanced tree:

$ for d in arch cachyos debian fedora omarchy ubuntu; do ( cd box/$d && ../../bin/charly box validate 2>&1 | grep -vE '^WARNING: charly is a dev|^plugin ' | tail -1 | sed "s/^/$d /" ); done
arch charly box validate: OK — checked 133 candies, 11 boxes, 8 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
cachyos charly box validate: OK — checked 489 candies, 38 boxes, 41 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
debian charly box validate: OK — checked 109 candies, 5 boxes, 2 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
fedora charly box validate: OK — checked 426 candies, 38 boxes, 21 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
omarchy charly box validate: OK — checked 182 candies, 21 boxes, 37 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
ubuntu charly box validate: OK — checked 110 candies, 5 boxes, 5 deploys, 7 distros, 7 builders; 0 warnings, 0 errors

The pre-advance arm — box/arch detached at 71ba7fdf, the value this commit replaces:

$ git -C box/arch switch --quiet --detach 71ba7fdf; echo "rc=$?"
rc=0
$ ( cd box/arch && ../../bin/charly box validate > /tmp/bv-arch-old.log 2>&1; echo "arch_old rc=$?" )
arch_old rc=0
$ grep -vE '^WARNING: charly is a dev|^plugin ' /tmp/bv-arch-old.log | tail -1
charly box validate: OK — checked 133 candies, 11 boxes, 8 deploys, 7 distros, 7 builders; 0 warnings, 0 errors

Restored to the committed gitlink, and re-measured:

$ git -C box/arch switch --quiet --detach 9b84c67c; echo "rc=$?"
rc=0
$ git submodule status box/arch
 9b84c67cda2a9f87b44621be445111307cc3a104 box/arch (v2026.236.0159-60-g9b84c67)
$ ( cd box/arch && ../../bin/charly box validate > /tmp/bv-arch-new.log 2>&1; echo "arch_new rc=$?" )
arch_new rc=0

What the two commits differ by, which is why the counts agree — seven byte-identical
(R100, zero line change) skill-body relocations, plus AGENTS.md and a CHANGELOG entry:

$ git -C box/arch diff --name-status 71ba7fdf 9b84c67c | grep -c '^R100'; echo "rc=${PIPESTATUS[0]}"
7
rc=0
$ git -C box/arch diff --name-only 71ba7fdf 9b84c67c; echo "rc=$?"
.agents/skills/arch-aur-test/SKILL.md
.agents/skills/arch-builder/SKILL.md
.agents/skills/arch-coder/SKILL.md
.agents/skills/arch-pac-test/SKILL.md
.agents/skills/arch-test/SKILL.md
.agents/skills/arch/SKILL.md
.agents/skills/charly-arch/SKILL.md
AGENTS.md
CHANGELOG/2026.294.1509.md
rc=0

Negative control — both arms, on the gate this diff is judged by.

A throwaway detached worktree at the same commit, box/arch initialized, and the SAME
bin/charly (built from this HEAD) placed inside it so the freshness guard's premise holds.
Arm A: index gitlink restored to the committed 9b84c67c — the gate passes. Arm B: index
gitlink mutated to the pre-advance 71ba7fdf, checkout left at 9b84c67c — the gate FAILS
and names the direction:

$ cd /tmp/charly-pinctrl && git update-index --cacheinfo 160000,9b84c67cda2a9f87b44621be445111307cc3a104,box/arch && ./bin/charly task pins --param MODE=verify 2>&1 | grep -vE "^WARNING: charly is a dev|^plugin "; echo "rc=${PIPESTATUS[0]}"
task pins: 1 step(s), 0 failed
  [pass] run — run git-submodules in the selected mode
      verify: 0 policy pin(s) hold across 6 submodule(s); 1 checkout(s) clean at their gitlink; 5 uninitialized (pin audited, no checkout): box/cachyos, box/debian, box/fedora, box/omarchy, box/ubuntu
rc=0
$ cd /tmp/charly-pinctrl && git update-index --cacheinfo 160000,71ba7fdff83c38ed1c9629a04077292b49f5202f,box/arch && ./bin/charly task pins --param MODE=verify 2>&1 | grep -vE "^WARNING: charly is a dev|^plugin "; echo "rc=${PIPESTATUS[0]}"
task pins: 1 step(s), 1 failed
  [fail] run — run git-submodules in the selected mode
      verify: 1 failure(s) (1 unstaged advance): box/arch: unstaged advance (HEAD 9b84c67cda2a9f87b44621be445111307cc3a104, index gitlink 71ba7fdff83c38ed1c9629a04077292b49f5202f) — the checkout is AHEAD of the pin the index records — `git add box/arch` records the advance `charly task sync` materialised, or `git submodule update box/arch` discards it
charly: error: command "task": task "pins" failed (1 step(s) failed)
rc=1

The control worktree was removed by absolute path after the arms:
git worktree remove --force /tmp/charly-pinctrl returned rc=0 and
ls -ld /tmp/charly-pinctrl then reported No such file or directory.

The repo gate, on the worktree rebuild.

$ ./bin/charly version 2>&1 | grep -vE '^WARNING: charly is a dev|^plugin '; echo "rc=${PIPESTATUS[0]}"
2026.294.1507
rc=0
$ GOTMPDIR=$HOME/.cache/go-tmp go build ./... > /tmp/charly-gobuild.log 2>&1; echo "rc=$?"
rc=0
$ GOTMPDIR=$HOME/.cache/go-tmp go vet ./... > /tmp/charly-govet.log 2>&1; echo "rc=$?"
rc=0
$ GOTMPDIR=$HOME/.cache/go-tmp TMPDIR=/tmp/cs-test-go go test ./... > /tmp/charly-gotest.log 2>&1; echo "rc=$?"
rc=0
$ tail -2 /tmp/charly-gotest.log
ok  	github.com/opencharly/charly/charly	414.129s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	137.557s
$ gofmt -l . | wc -l
0
$ /home/atrawog/go/bin/golangci-lint run ./... > /tmp/charly-lint.log 2>&1; echo "rc=$?"
rc=0
$ tail -1 /tmp/charly-lint.log
0 issues.

The test suite ran to green on the committed tree, including TestIdleBoundedContext_LongHostLegIsProgress,
the load-sensitive test #1012 records — it did not reproduce here.

The one anomaly, with its RCA

The first control-arm attempt invoked the worktree's binary with -C /tmp/charly-pinctrl and
was REFUSED by the freshness guard (exit 1), not by the pin gate:

  running:        /home/atrawog/Sync/Atrapub/mo/dsh/opencharly/.worktrees/distro-pin-wave/charly/bin/charly
  binary mtime:   2026-10-21T17:24:07+02:00
  newer source:   charly/update_deploy_dispatch.go
  source mtime:   2026-10-21T17:39:33+02:00
  source root:    /tmp/charly-pinctrl

The source tree has been edited since this binary was built.

RCA: the guard compares the invoked binary's mtime with the newest source mtime under the
project dir; a freshly added worktree has current mtimes, so ANY prebuilt binary reads as
stale by construction. That is the guard doing its job (R9: a stale binary must not run), not
a product defect — and the remedy is NOT the CHARLY_SKIP_FRESHNESS_CHECK bypass, which this
body's runs never used. The fix is to make the guard's premise true: the same-HEAD binary was
placed at /tmp/charly-pinctrl/bin/charly, and both arms then ran and reported as pasted
above. Missed control: none in the product; my first arm attempt simply did not account for a
mechanical guard whose message named its own remedy.

Rulebook compliance

  • R0: skills loaded before the first git action: /charly-internals:git-workflow (the pin
    contract and currency), /charly-internals:strict-policy, /charly-internals:go,
    /charly-build:validate; charly/AGENTS.md read before acting in this repo (Part II refactor(charly): P1 lint/dead/dup rewrite + concurrency & correctness fixes #4).
  • R1: the one anomaly (freshness guard above) got its RCA before remediation, and the
    remedy stayed inside the sanctioned path; no finding was dismissed, and TestIdleBoundedContext_LongHostLegIsProgress is load-sensitive: a 1s host leg against a 300ms window, and #926's sibling fix does not cover it #1012
    stayed green on this tree.
  • R2: no new abstraction, no duplicated logic — the advance is one gitlink written by the
    existing verb: git-submodules (MODE=bump), the repo's single pin implementation.
  • R3: no workaround: no hand-pin, no branch checkout to fake currency, no sleeps, no retry,
    and explicitly no freshness-check bypass.
  • R4: no prose routes around anything; no documented command changed, and the product
    surfaces (task pins, box validate) are the ones executed here.
  • R5: N/A — nothing is renamed or deleted, so there is no deleted identifier to sweep.
  • R6: git status --short was empty before the commit and empty after it; one commit, no
    amend after push, no force-push, no hook bypass; the throwaway control worktree was removed
    by absolute path after verifying it was the one just created.
  • R7: the change's behaviour is proven by a control that FAILS (arm B, rc=1) and by the
    pre/post box validate arms; the prescan claim is backed by the code path and by its unit
    test, which ran in the suite.
  • R8: N/A — a gitlink advance crosses no live service boundary.
  • R9: bin/charly was rebuilt in this worktree with scripts/bootstrap-charly.sh and
    reports 2026.294.1507; nothing was installed or shared.
  • R10: every gate above ran on the committed tree d985c746, on a worktree-local rebuild,
    with 0 warnings and 0 errors.

Change classification

Config — one mode 160000 gitlink (box/arch) advanced by the repo's own pin verb. No Go,
schema, docs or script change. Attribution tier: fully tested and validated, on the gate
and the control pasted above.

Filed issues

None new. This PR is the producer leg of opencharly/opencharly#555, which keeps the umbrella's
six distro-* edges and stays OPEN until the umbrella's own task sync reads this gitlink.

Runtime identity (A3)

Descriptor record — ~/.dsh/cordis.patch.yml, agent-default-model:

    provider: ollama-cloud
    model: deepseek-v4.1-flash

The delivered system message for this session: "You are an AI agent powered by DeepSeek
Harness."
— harness DeepSeek Harness, model deepseek-v4.1-flash, provider ollama-cloud,
which is exactly the footer's identity. The runtime environment (env | grep '^DSH_'):

DSH_HOME=/home/atrawog/.dsh
DSH_PROFILE_DIR=/home/atrawog/.dsh/profiles/web
DSH_PROFILE=web
DSH_SESSION_ID=fe1b82a6-1fc8-4cd2-8911-5fde518b1e2b
DSH_SHELL=1
DSH_WEB_URL=http://127.0.0.1:3080

Attribution contract: #538.

Agent: charly

Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)

`charly task sync` (the pin verb's MODE=bump) rolled the ONE `box/*` leaf whose
remote had moved: box/arch 71ba7fdf -> 9b84c67c, distro-arch's refs/heads/main
after `66b108a fix(skills)!` and `9b84c67 docs: add CHANGELOG` (distro-arch#68).
The other five leaves already recorded the ref their `upstream:main` intent
names, so the bump staged exactly one mode-160000 gitlink.

The pins are not inert here: `charly/plugin_prescan.go:544` resolves each
`import:` namespace LOCAL FIRST from `box/<namespace>`, so this advance changes
what charly itself prescans and validates. `charly box validate` over the
advanced tree is pasted in the PR body, with the pre-advance arm beside it.

Downstream, unchanged by this commit and named so nobody re-derives it: the
umbrella's `distro-arch` edge keeps reading
`blocked-by charly:box/arch (behind)` until the umbrella's own `task sync`
reads this gitlink; opencharly/opencharly#555 stays OPEN for that hop.

Agent: charly
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — PR opened.

Head d985c746 (tree records one mode-160000 gitlink), branch feat/advance-box-arch, base main at 551b71fd — the merged producer head, so the diff's parent is the pinned commit.

What is done: charly task sync (pin verb MODE=bump) advanced the one box/* leaf whose remote had moved — box/arch 71ba7fdf → 9b84c67c — and the run's staging is committed (1 file changed, 1 insertion, 1 deletion). On the committed tree: task pins MODE=verify green (6 checkouts clean at their gitlink), MODE=currency green and reporting 0 of 6 pin(s) NOT current [6 cur], box validate green at 602 candies / 122 boxes / 48 deploys / 0 warnings / 0 errors plus each of the six distro projects on its own, and the repo gate green (go build, go vet, go test ./... 414s + 138s, gofmt -l empty, golangci-lint v2 0 issues) on the worktree rebuild 2026.294.1507. A two-arm negative control on the pin gate is pasted, and it fails at rc=1 on the pre-advance gitlink.

What is next: the charly/pr-validator verdict on this head. On PASS the validator arms native auto-merge itself and tag-on-merge writes the CalVer tag; no agent merges.

Downstream, named so nobody re-derives it: the umbrella's distro-arch edge keeps reading blocked-by charly:box/arch (behind) until the umbrella's own task sync reads this gitlink; opencharly/opencharly#555 stays open for that hop, and the BLOCKS naming this leg is on that issue.

Next update: when the verdict lands.

Agent: charly

Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: d985c746ea7b2c4b991aa1a9fcf01b2e80b0a240 (branch: feat/advance-box-arch)

Security screen: PASS — one mode-160000 gitlink; no code, secrets, deps, or guardrail edits; no injected directives (body/comment are PR data).
Checklist: All applicable rules PASS or NA. Config class (gitlink advance) — gates run are the pin verb (MODE=verify/currency), box validate over the advanced tree plus each distro project, full repo gate (build/vet/test/gofmt/lint), and a two-arm negative control that fails (rc=1) on the pre-advance pin. Pasted evidence is internally consistent (numstat 1/1; 7 R100 relocations + AGENTS.md + CHANGELOG = the 9 listed paths; per-distro arch 133/11/8 is the arch project, distinct from the umbrella 602/122/48). Tier fully tested and validated justified: the gates that consume the change executed against the fresh rebuild and a control fails without it; no buildable content moved, so a bed could not fail on this change.
Placement: placement: CORRECT — pin data at the submodule layer; no capability code, no core/sdk movement, no alias or kit import.

Comment intake:

  • Comment 6320219670 by @aitrawog (STATUS) — verified-non-blocking: coordination metadata; re-derived against current diff/body, claims match (1 file, 1/1, gates green, box/arch 71ba7fdf→9b84c67c); raises no finding. BLOCKS/#555 relationship is named on this thread and asserted on the umbrella issue.

Verdict: PASS


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

View action run

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