Repository navigation
fix: escape backticks in umbrella-gates.ts template literal - #3
Conversation
Fixes ParseError: Missing semicolon on line 99 caused by unescaped backticks inside the buildRulesBlock() template literal that prematurely terminated the template string. Also adds .pi/npm/ to .gitignore for parity with charly/.
Review — BLOCKHead SHA: Change class: code/config fix — Blocks
Non-blocking flag
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — BLOCKHead SHA: Change class: code/config — TypeScript pi-extension fix ( Security screen: PASS — diff matches the description exactly (no scope mismatch), no secrets/network/guardrail changes, no embedded directives. The backtick-escape fix is internally consistent with the claimed Blocks
Non-blocking flag: Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — BLOCKHead SHA: Change class: code/config — Security screen: PASS — diff matches the described intent (backtick escaping, gitignore, changelog); no secrets, network, guardrail, or scope-mismatch findings; no embedded directives. Blocks
Non-blocking flag
Comment dispositions
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — diff matches the described intent exactly (backtick escapes in Checklist: All applicable rules PASS or NA. Placement: CORRECT (fix stays inside the existing umbrella extension; no layer moves, no alias/core-machinery changes). Comment intake: comments #5379837868/#5379841912/#5379857829 are stale/superseded — their A3 tier, A1 accounting, body↔diff CHANGELOG-name, and disposable-target claims are all resolved by the current body/diff (tier downgraded to Verdict: PASS openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — diff matches the stated intent exactly (.ts backtick-escape fix, Checklist: All applicable rules PASS or NA. Placement: CORRECT (fix confined to the existing extension; no layer moves, no alias/core machinery). R10 is legitimately N/A with reason (meta-repo; no Comment intake: #5379837868 / #5379841912 / #5379857829 — Verdict: PASS openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
…aky cron (#8) RCA: tag delivery was driven entirely by GitHub's best-effort cron (measured 21-44 min gaps vs the configured 15; PR #3's tag 4+ h late; PR #7's tag still missing 30 min after merge). The pull_request:closed trigger added in PR #4 never fired a single run (0 runs across 7 merges, API-confirmed), and the earlier workflow_run design died 15x in a row with startup_failure. The one trigger that demonstrably fires at merge time is the push to main that IS the squash-merge (verify.yml push runs arrive ~20s after each merge). Re-trigger on push: branches: [main]; the org reusable workflow is idempotent, so the CHANGELOG bot push re-trigger is a cheap no-op sweep.
…ge commits are run-suppressed) (#9) * ci: tag-on-merge via push-to-main instead of dead closed trigger + flaky cron RCA: tag delivery was driven entirely by GitHub's best-effort cron (measured 21-44 min gaps vs the configured 15; PR #3's tag 4+ h late; PR #7's tag still missing 30 min after merge). The pull_request:closed trigger added in PR #4 never fired a single run (0 runs across 7 merges, API-confirmed), and the earlier workflow_run design died 15x in a row with startup_failure. The one trigger that demonstrably fires at merge time is the push to main that IS the squash-merge (verify.yml push runs arrive ~20s after each merge). Re-trigger on push: branches: [main]; the org reusable workflow is idempotent, so the CHANGELOG bot push re-trigger is a cheap no-op sweep. * ci: tag-on-merge on pr-validator completion + push (corrected RCA) The push-only trigger shipped in #8 was based on a false premise: the verify.yml 'push' runs cited were changelog-bot commits, not merge pushes. Measured reality: native-auto-merge merges (actor app/github-actions) fire their webhook events (visible in the public event stream) but GitHub Actions creates ZERO workflow runs for them — platform-level run suppression. The pull_request:closed trigger never fired either (0 runs in history). The only trigger whose event delivery is proven is workflow_run on the pr-validator run — the run that arms the auto-merge. This fires on its completion, waits (bounded) for the squash merge to land, then runs the org's idempotent tag-on-merge sweep. push remains as a secondary trigger for human/bot pushes (which do create runs). No cron: measured delivery was 21-44 min late.
* chore(pins): advance 15 pins to their merged, tagged tips `charly task sync` over the whole umbrella, after the owned-skill carrier chain and this session's consumer fixes landed. Every pin is a leaf judged against its remote default branch; the moved set is exactly what the currency report listed as NOT CURRENT: charly 199cd01 (v2026.325.1102 — the release carrying the owned-skill chain) spec 961a32a sdk fe472f3 plugin-box c27f6e1 plugin-build 3421574 plugin-cstream 31895cd plugin-harness-kind a66de82 layer-kde-shell 1aa1ba4 layer-openclaw 9fcdbe5 layer-whisper 73808b9 marketplace ad6074a pod-cdi 7459ea8 pod-kde-vnc 2a2f526 pod-openwebui ce0ff42 pod-strata 90f1b6b The wave also re-derived the harness skill bindings from the bumped corpus (its second step), so the DSH farm, reasonix.toml and .claude/settings.json are projections of the corpus this same commit pins. Why one wave: `task sync` advances EVERY declared pin by design (Part II #3), and the pins it moved are the ones today's landed chain touched. The gitlinks it records are the merged squash commits' successors, which is what the served-line rule expects. Agent: `owui-full-stack` · Claude Code session `00d99c7c-dad9-4d14-be0e-7be094b099e9` Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system) * chore(design): re-anchor the kind:skill citation at the advanced spec pin The wave advances `spec` to the commit carrying the owned-skill chain, which rewrote the comment block in `spec/schema/skill.cue`: at the new pin, lines 33-38 hold the `owner` and `family` notes and the `#Skill` node starts at 42. The ledger row was anchored to that line range, so the DESIGN gate correctly refused the push (R11 ratchet). The row now cites the construct by name — `spec/schema/skill.cue:#Skill` — which is what the control recommends for a construct a schema edit can move, and `design/cite-baseline.tsv` is regenerated with `--emit-baseline` (never by hand): design-cite: every citation resolves at its pin; 150 line citation(s) still hold the construct and the bytes they were affirmed against Agent: `owui-full-stack` · Claude Code session `00d99c7c-dad9-4d14-be0e-7be094b099e9` Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system) * chore(design): re-anchor the plugin-cstream union census at the advanced pin The wave advances `plugin-cstream` to the release whose control-surface schema grows `method` from three alternatives to eight (type/key/move/click/scroll added). The dpat census recorded the old text, so the §25 control failed the push. The COUNT is unchanged — 1 union on that path before and after, the same single D-PAT-3 violation — so this re-anchors the recorded text and does not raise the debt: design-dpat: no new violation, and the census matches the tree Agent: `owui-full-stack` · Claude Code session `00d99c7c-dad9-4d14-be0e-7be094b099e9` Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
…#1357) * chore(umbrella)!: track upstream main and fast-forward the submodules Delete the pin-tag control (DESIGN A.12, `scripts/design-pintag.sh`, its census) and the tag vocabulary around the pin advance. A pin is now the tip of the branch its `.gitmodules` entry declares, as of the last fast-forward: - `charly task ff` (verb mode `ff`) fast-forwards every declared path, refusing a move that is not a fast-forward, and stages the gitlinks; - `charly task verify` FAILS on a pin that is behind that tip (and on a `blocked-by` that names a producer leg); the one reported non-failure is a pin whose ancestry cannot be judged; - `sync-pin-evidence.sh` becomes `ff-evidence.sh`, and every gate, hook and skill reference follows. The rulebook (Part II #3), the README, the dispatcher row and the git-workflow skill's tracking-contract reference are rewritten to match. Relates to #1347 Agent: hidden-moon-ses_ddfedece3ffegiVhkXvGabTaFh Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system) * chore(pins)!: the fast-forward wave — 328 pins current, citations re-keyed The umbrella's wave under the new contract: 17 gitlinks advanced (charly, the five `distro-*` edges — two moved — and 13 leaves), and the three prose citations of `plugin-task` re-keyed to the version the new pin compiles (`candy/plugin-task/verbs.go:978` for `ancestryClass`, `:819` for the step message). `charly task verify`: 0 of 328 pin(s) NOT current [328 cur]. Relates to #1347 Agent: hidden-moon-ses_ddfedece3ffegiVhkXvGabTaFh Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * refactor(ff): complete the rename — the body builder, the env contract, the prose The validator's R5 round: `scripts/sync-pr-body.sh` and its `SYNC_*` env contract still named the retired operation after `sync` became `ff`. - `scripts/sync-pr-body.sh` → `scripts/ff-body.sh`, with every reference in `charly.yml`, `scripts/self-test.sh`, `scripts/lib/pr-body-cap`, `check-pr-body-cap.mjs`, `check-pr-body-diff.mjs`, `check-cited-plugin-task-version.mjs`, `check-pin-verb-scope.mjs` and `ff-evidence.sh`. - `SYNC_*` → `FF_*` throughout the two scripts (`FF_AGENT`, `FF_ASSISTED_BY`, `FF_BASE`, `FF_EVIDENCE_OUT`, `FF_EVIDENCE_MAX_BYTES`, `FF_EVIDENCE_TYPE_OUT`). - "the sync" → "the wave" in the wave-PR prose; the unrelated uses (the fork sync, the label sync, `tracker_sync`) were kept as they are. - `.agents/skills/agents/SKILL.md`: the quoted failure form "X not found — sync the pin" is no longer a product string (verified absent from every opencharly module in the module cache), so it now names the condition. Verified: both scripts' self-tests, `check-pr-body-cap`, `check-pin-verb-scope` (29 arms), `check-retired-claims` and the umbrella `self-test.sh` all pass. Relates to #1347 Agent: hidden-moon-ses_ddfedece3ffegiVhkXvGabTaFh Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * fix(pins): follow charly's advance, disambiguate the label-sync prose The strict gate failed on `charly: behind` after main's latest landing. The wave advanced it (1 pin moved), the binary was rebuilt from the new pin (`2026.332.1152`), and `verify` is `0 of 328` not current again. The one surviving `the sync` in the tree was the LABEL sync in `issue-labels.md`; it now says "the label sync", so the rename sweep is genuinely clean under the broader pattern. Relates to #1347 Agent: hidden-moon-ses_ddfedece3ffegiVhkXvGabTaFh Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…e arm The raced paragraph this cutover adds still emitted the RETIRED verb name: the base's hard cutover renamed it (#1357), the merge carried my paragraph across the rename untouched, and my sweep looked only at the three code comments I had authored -- not at the SENTENCE the generator emits. The body then pasted that sentence with the new name, so its evidence contradicted the committed script (#1360, block 1). The echo now emits `charly task ff`, and the self-test pins the VERB, not only the rule it cites: the earlier arms asserted `Part II #3` and stayed green while the sentence named a command that no longer exists. Swept: a grep for the retired spelling across scripts/ returns nothing. Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated)
…y can prove (#1360) * fix(design): resolve a construct-only citation, and refuse a construct carrying a range design-cite recognised only `:#Name`, `:N` and `:N-M`. A construct citation (`pod_cmd.go:CpCmd.Run`) matched no subject, fell through to the bare-path pass, and was judged as "the file exists" — so the form the capability ledger is migrating to was checked by nothing, and a hybrid left behind by a find-and-replace reached the org validator instead of failing here (#1348, block 2; #1349). The scanner now also matches a bare symbol and `Receiver.Method`, and the judge resolves the DECLARATION at the pin: a CUE `#Name`/`_name` header, a Go `func (r *Receiver) Method(`, or a top-level func/type/var/const. A construct the pin does not declare is a failure naming the row; a construct that cannot be located because the language has no construct model is a failure that says so. A construct carrying a line range is refused: it names two subjects at once. `.md` is deliberately NOT a construct surface: `DESIGN.md:D-CLI-1` and `DESIGN.md:§A.13` are how every ledger row names its requirement, and an ungated arm turned 241 of them into failures (measured). The self-test pins both halves. MEASURED on this tree (pin plugin-pod c4ddfd0cc353): real ledger 0 findings pod_cmd.go:NoSuchConstructXYZ 1 finding (was 0) pod_cmd.go:CpCmd.Run 0 findings pod_cmd.go:CpCmd.Run-485 (the hybrid) 1 finding Closes #1349 Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) * fix(sync): derive the .pi marketplace pin from the corpus, through the gate's own library `charly task sync` re-derived the DSH farm and .claude/settings.json from the corpus it had just advanced, while check-harness-config judged THREE surfaces that name that corpus — the third being .pi/settings.json's marketplace package pin. No step derived it, so every wave reddened the gate after its own derivation step had reported success, and the pin was corrected by hand twice in one cutover (#1348; #1344). The tag reading is now ONE library (scripts/lib/corpus-tag.mjs) with two consumers: check-harness-config JUDGES with it, sync-skill-bindings WRITES from it, so the gate and the derivation cannot drift apart again. `--only pi` is a scope like the others, and every state where the pin cannot be derived — no .pi/settings.json, no marketplace package entry, no corpus checkout (a session worktree carries an EMPTY marketplace/, Part II rule 2) — SKIPS VISIBLY by name. `--check` does NOT write. The first version of this function wrote on the check path, which would have repaired the very staleness the wave is meant to surface; an arm now asserts the file is byte-identical after a failed check. MEASURED on this tree, in the order a wave runs: pin moved back to v2026.331.2137 --check exit 1, STALE named, file untouched the same staleness check-harness-config exit 1, its own message the derive step (write mode) rewrites the pin to the corpus tag both check-harness-config OK / bindings clean Closes #1344 Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) * fix(sync): derive the .pi marketplace pin from the corpus, through the gate's own library `charly task sync` re-derived the DSH farm and .claude/settings.json from the corpus it had just advanced, while check-harness-config judged THREE surfaces that name that corpus — the third being .pi/settings.json's marketplace package pin. No step derived it, so every wave reddened the gate after its own derivation step had reported success, and the pin was corrected by hand twice in one cutover (#1348; #1344). The tag reading is now ONE library (scripts/lib/corpus-tag.mjs) with two consumers: check-harness-config JUDGES with it, sync-skill-bindings WRITES from it, so the gate and the derivation cannot drift apart again. `--only pi` is a scope like the others, and every state where the pin cannot be derived — no .pi/settings.json, no marketplace package entry, no corpus checkout (a session worktree carries an EMPTY marketplace/, Part II rule 2) — SKIPS VISIBLY by name. `--check` does NOT write. The first version of this function wrote on the check path, which would have repaired the very staleness the wave is meant to surface; an arm now asserts the file is byte-identical after a failed check. MEASURED on this tree, in the order a wave runs: pin moved back to v2026.331.2137 --check exit 1, STALE named, file untouched the same staleness check-harness-config exit 1, its own message the derive step (write mode) rewrites the pin to the corpus tag both check-harness-config OK / bindings clean Closes #1344 Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) * refactor(design): one judge_construct helper serves both citation loops The construct arm was written twice — once in the loop that judges a citation into a PINNED module, once in the loop that judges a citation into this repository's own tree — and the two had already diverged: the first read the working tree and said "does not declare X", the second read the pinned cache and said "does not declare X at the pin <sha>". A citation could therefore get two verdicts depending on which loop reached it, which is precisely the defect the arm exists to remove (#1356 blocks 1 and 2). `judge_construct` now owns the language gate, the hybrid refusal, the resolution and the message, and each caller supplies the file it resolved plus the phrase that names it: `at the pin <sha>` for a pinned module, `in this tree` for a file of this repository (which cannot drift under a third party's commit — the split the LINE arm already documents). Its variables are `local`. The body's section 1 is also corrected: it paraphrased three runs as "0 findings", which is not the script's output. It now pastes all four runs verbatim, including the row injection that produced each one. Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) * refactor(design): one owner for the language dispatch, and a comment that matches it `judge_construct` pre-filtered the cited path to `.cue|*.go` and emitted the unmodelled-language failure itself, so `declares_construct`'s `return 2` could never execute and the language decision lived in two places — the second one dead. Its doc block also promised a fail-loud the function did not perform: the message was rendered by the caller (#1356, blocks 1 and 2). `declares_construct` now answers the language question FIRST and owns the three answers (declared / not declared / no model for this language); `judge_construct` renders them and holds no language case of its own, so there is one decision site and no dead branch. The comment above each function describes what that function does. The self-test is unchanged and still passes all 26 cases, including `a construct in an unmodelled language` (now reached through the reachable `return 2`) and arm 9g's two local-path cases. Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) * fix(design): anchor the Go receiver, and make two self-test arms actually run Round 4 of the review found three defects in the arms and one in the block: * The Go receiver pattern was `\([^)]*${recv}\)`, so `func (x *FooCpCmd) Run(` satisfied a citation of `CpCmd.Run` — a FALSE PASS of exactly the class this cutover exists to close. The receiver is now anchored (`(name *Type)`, `(*Type)`, `(name Type)`), and arm 9h proves both directions: a method the pin declares passes, and one only a DIFFERENT receiver declares fails. Disabling the anchor turns 9h red (measured). * Arm 9f ("a document reference is prose") appended BARE lines to `design/dulling.tsv`, which land in column 0 — the one column `cite_scan` never reads — so the arm exercised NOTHING. It is a real ledger row now, and the fixture carries a `DESIGN.md`: without it the slash-less-path prose guard swallowed the row first. Disabling the `.md` skip now turns 9f red (measured); before, it stayed green. * `scripts/sync-pr-body.sh` is unchanged in this commit; its spike evidence is in the body. Self-test: 28 cases, all live. Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) * style(design): collapse the duplicated self-test blocks the review found Two copy-pasted blocks in the self-test: arm 9f carried the old comment AND the new one (both still opening "9f."), and the end of arm 9g repeated the write_ledger/emit_baseline reset pair twice. The behaviour was identical — the duplicates are dead prose and a redundant reset — so this commit deletes them and keeps one of each (#1360, block 3). Self-test: 28 cases, unchanged and green. Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) * chore(design): name the pin-advance verb the tree ships, after its rename `main` renamed the pin-advance verb `charly task sync` -> `charly task ff` in a hard cutover (#1357), and the merge brought that in under this branch. Three of this cutover's comments still named the retired verb -- the shared corpus-tag library, the harness-config gate and the binding self-test -- so they described a command that no longer exists (R5: a rename sweeps every reference in the same change; R1: a doc that diverges from reality is an incident). They now name `charly task ff`, which is also what the verb-scope classifier looks for: with the stale names the gate reported all three as "classified as a non-claim mention, but it no longer names the verb", and it is green again. `scripts/sync-pr-body.sh` also became `scripts/ff-body.sh` in that cutover, and the merge carried this branch's RACE_COUNT fix across the rename; the file's self-test still passes. Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) * fix(sync): emit the pin-advance verb the tree ships, and pin it in the arm The raced paragraph this cutover adds still emitted the RETIRED verb name: the base's hard cutover renamed it (#1357), the merge carried my paragraph across the rename untouched, and my sweep looked only at the three code comments I had authored -- not at the SENTENCE the generator emits. The body then pasted that sentence with the new name, so its evidence contradicted the committed script (#1360, block 1). The echo now emits `charly task ff`, and the self-test pins the VERB, not only the rule it cites: the earlier arms asserted `Part II #3` and stayed green while the sentence named a command that no longer exists. Swept: a grep for the retired spelling across scripts/ returns nothing. Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) * fix(sync): drop the dead RACE_COUNT initialiser `RACE_COUNT=0` was immediately overwritten by the assignment that follows it, on every path — the `|| true` already guarantees a value. Leftover from the first draft of the race count, and dead code in a file this cutover edits (#1360, block 2). The self-test is unchanged and green. Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated)
Summary
Fixes a
ParseError: Missing semicolonin.pi/extensions/umbrella-gates.tscaused by unescaped backticks inside thebuildRulesBlock()template literal. The backticks around Markdown code spans (\`CHANGELOG/<calver>.md\`and theAssisted-byexample) prematurely terminated the template string, making the extension unloadable.Also adds
.pi/npm/to.gitignoreso that pi project-local package installs are ignored at the root level, matchingcharly/.gitignore.Diff items:
.pi/extensions/umbrella-gates.ts,.gitignore,CHANGELOG/2026.234.1041.md.How tested
1. TypeScript syntax check — changed path static analysis
Previously this produced
TS1005: ';' expected.at line 99.2. Live extension execution — changed path ran live on committed tree
The
umbrella_load_skillscustom tool (registered by the extension) is present and functional, proving the extension loads and executes. Previously the same command failed with:3. Harness parity gate
4. Pinning gate
5. git status — committed tree verification
6. RCA of previous validator review rounds
Earlier
charly/pr-validatorruns on this PR (#32568270134, #32568270550) failed because:fully tested and validatedwithout live execution proof of the changed path → fixed by downgrading toanalysed on a live systemand adding the livepiexecution proof above.tscoutput andgit statuswere parenthetical assertions, not pasted output → fixed by pasting verbatim output for every step.disposable: truebeds).The current body addresses every issue raised in those review rounds. The red
validate / validatechecks from those superseded runs remain on the PR because GitHub does not clear historical check runs; they are not the current state.Rulebook compliance
feat/branch, no force-push, no direct-main pushtask verify+task harnessboth green on final committed treecharly checkbeds, no container images, and nodisposable: truetargets. R10's fresh-rebuild requirement does not apply. The changed path was verified live viapiexecution on the committed tree.Change Classification
task verify(CI) +task harness(parity check) + live pi extension executionanalysed on a live systemAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)