Skip to content

recipes/build/secrets still publishes the credential-store claims the corpus corrected: the marketplace gitlink is one advance behind (f46285f → 8a4ff69) #211

Closed

Description

@aitrawog

Finding (RCA, R1)

recipes/build/secrets on opencharly.ai still teaches three things the credential store does not do, and
one verb that did not exist until yesterday. The corpus fixed all four; this repo's recorded marketplace
gitlink has not moved, so the page was regenerated from the OLD corpus and the site still says:

$ git -C <docs> show origin/main:src/content/docs/recipes/build/secrets.md | grep -n 'CHARLY_VNC_PASSWORD\|generateRandomHex\|keyring_collection_label'
38:| 1 | Environment variable | `CHARLY_VNC_PASSWORD`, etc. |
171:store) auto-generate a 32-byte hex token via `generateRandomHex(32)` +
255:| `keyring_collection_label` | Preferred Secret Service collection label (empty = iterate naturally). Pin charly to a specific collection in multi-database setups. |

Three false claims, one page: the env override is the credential's bare name (VNC_PASSWORD), the
auto-generated token is 32 bytes as url-safe base64 (44 chars) via
GenerateAndStoreSecret/GenerateRandomSecretToken, and keyring_collection_label now pins the whole
store — writes and deletes resolve the collection the same way reads do. The page also carries no
charly secrets prune, a verb the store's own drift message and charly doctor tell operators to run.

Mechanism. A skill is a TWO-hop projection (docs recipes/ ← the marketplace corpus ← the owning
repo's .agents/skills/<name>/SKILL.md). This repo pins the middle hop by GITLINK:
marketplace → f46285f93ab1d0e44674dff0ac9a9360e9d84980. The corpus advanced:

opencharly/plugin-secrets#9  (RCA)  → #10 (fix, merged 7126737, tagged v2026.319.2321)
opencharly/marketplace#618 (pin + republished build/secrets, merged 17d65b3)

f46285f is a clean ancestor of the corpus main (8a4ff69), so this is an ordinary advance — nothing
diverged, the pin simply never moved. Nothing bumps it automatically: the daily refresh advances the
CORPUS's refs list, and the docs pin is a docs-repo decision.

Missed control. The drift gate here regenerates at the PINNED corpus and compares against the
committed pages, so it is green by construction while the pin is behind — it answers "do the committed
pages match their pinned sources", never "is the pinned corpus current". That is the stale-mirror gap the
docs skill itself names ("advancing the corpus without regenerating docs in the same change is what
leaves the published site stale, and nothing except the docs repo's drift gate will say so").

Blast radius. Every reader of the published page learns the wrong env-var name for a first-time
credential setup and a prune-less recovery path for exactly the drift whose message recommends it. The
page is the only user-facing description of the store.

Root fix. The standard docs leg, in one PR: bump the marketplace gitlink to 8a4ff69 (or whatever
corpus main is at the time) and carry the regenerated src/content/docs pages at the pins this repo
already declares — CHARLY_PIN: be7a505f and the plugin-docs generator v2026.289.0814 — running the
deploy recipe: build_wiring.py .github/docs-corpus/pins.tsv into the charly checkout, then
plugin-docs-bin generate --root <charly> --plugins <marketplace> --out src/content/docs. The expected
diff is recipes/build/secrets.md only (38 insertions / 18 deletions at the corpus level, the same five
passages). The docs skill's deployment section warns that a stale refs.RepoCacheDir makes a local
regeneration differ from CI's, so the regeneration must run against a warm, CI-equivalent cache and the
gate confirmed on the staged tree.

Why this is filed and not fixed in the same cutover

The fix landed producer-first in the repo that owns the behaviour (opencharly/plugin-secrets) and in the
repo that owns the corpus (opencharly/marketplace). This leg is a separate unit with its own gate (this
repo's drift gate, which regenerates at the pinned charly and plugin-docs), and it cannot be proven by the
producer's gate. Per the docs skill's own deployment recipe it also cannot be generated faithfully from
a different generator version or a cold cache — so it belongs here, with its own R10, rather than as a
hand-edited page.

Evidence provenance

Measured 2026-11-16: the page content and the gitlink read from this repo's origin/main; the corpus
commits/tags read from opencharly/marketplace and opencharly/plugin-secrets; the pins read from
.github/workflows/deploy.yml.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. self-assigned this
    on Nov 15, 2026
  2. aitrawog commented on Nov 16, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — I am taking this unit: bump the marketplace gitlink and carry the regenerated pages.

    Plan, at the pins this repo already records (CHARLY_PIN be7a505f, plugin-docs v2026.289.0814,
    UMBRELLA_PIN 1c88fcf for --narrative), reproducing the deploy recipe exactly: build_wiring.py pins.tsv into the charly checkout, then plugin-docs-bin generate --root … --narrative … --plugins <marketplace>/ --out src/content/docs, with a cold refs.RepoCacheDir (CI-equivalent). Expected diff:
    recipes/build/secrets.md only; anything else is my environment differing from CI and I will stop and
    say so rather than ship it. Gate: .github/docs-corpus/check_drift.sh on the staged tree.

    Branch feat/corpus-plugin-secrets-2026.319 in a session worktree off fresh origin/main.

    Agent: charly

    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  3. aitrawog commented on Nov 16, 2026

    @aitrawog
    ContributorAuthor

    WAITING — this unit is blocked, and NOT by its own subject.

    I reproduced the generation at the pins this repo records (CHARLY_PIN be7a505f, plugin-docs
    v2026.289.0814, UMBRELLA_PIN 1c88fcf, marketplace at f46285f, cold refs cache) — the exact recipe
    deploy.yml runs. It aborts during catalog assembly, before writing a single page:

    charly docs: resolve @github.com/opencharly/pod-crabbox:v2026.274.0652: …
      could not resolve ref "v2026.274.0652" in https://github.com/opencharly/pod-crabbox.git
    rc=1   (docs worktree unchanged: 0 files touched)
    

    That is the SAME failure this repo's deploy has hit on main since 2026-11-10 (run 42772683718, failing
    step "Regenerate the generated content from the pinned charly"), so the site has been frozen at its
    2026-10-29 state since then and no docs landing can pass — this one included.

    The chain is four hops from anything the site documents: charly.yml:3276 pins
    layer-agentteams:v2026.274.2144 → that tree pins distro-cachyos…:v2026.274.2120 → that tree's
    box/crabbox-e2e/charly.yml:9 pins pod-crabbox:v2026.274.0652 → and pod-crabbox was created
    2026-11-01, serving four tags none older than day 307.

    Blocker: opencharly/charly#1160, which carries the RCA and both halves of the root fix (advance this
    repo's stale layer-agentteams pin — an owner decision with its own bed — and stop a transitively-dead
    closure ref from aborting the whole site build in plugin-docs).

    What is ready here, the moment generation runs: branch feat/corpus-plugin-secrets-2026.319 in
    <umbrella>/.worktrees/secrets-fix/docs, marketplace materialized at the recorded gitlink f46285f, the
    wiring candy written from pins.tsv, and the generator built at the pinned plugin-docs tag. The bump to
    8a4ff69 (corpus main, which now publishes the corrected build/secrets) plus one regeneration is all
    that is left.

    Next update: when charly#1160 has a verdict, or immediately if the operator advances the pin.

    Agent: charly

    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  4. aitrawog commented on Nov 16, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — landed as #212 (squash a599ba0, CHANGELOG 6886c81, tag v2026.320.0402).

    What landed: CHARLY_PIN be7a505f → 4c9a79e5, the marketplace gitlink f46285f → 8a4ff69 (which
    publishes the corrected build/secrets skill through opencharly/plugin-secrets#10 and
    opencharly/marketplace#618), the regenerated src/content/docs tree, and — because the two red gates
    interlocked — the astro lockfile resolution (7.4.0 → 7.4.12) that the same deploy check needs.

    The mirror's purpose is measurable now — the published page teaches what the store does:

    $ grep -n "VNC_PASSWORD\|charly secrets prune\|resolveTargetCollection" src/content/docs/recipes/build/secrets.md
    38:| 1 | Environment variable | the credential's OWN variable name — `VNC_PASSWORD`, `OPENAI_API_KEY`, … |
    59:**Shadow-index drift and `charly secrets prune`.** …
    $ grep -c "CHARLY_VNC_PASSWORD\|generateRandomHex" src/content/docs/recipes/build/secrets.md
    0
    

    Gates: this repo's check_drift.sh green on the committed tree ("regeneration is a no-op"), npm ci rc=0,
    check-dependency-advisories: OK, npm run build 1601 pages rc=0 — and the deploy check on the PR head
    (a36b9e8) completed success, i.e. the whole workflow (generation → drift → advisory → build) is green
    for the first time since 2026-11-10.

    Two findings this leg produced, both filed rather than absorbed

    Agent: charly

    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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions