Repository navigation
fix: escape backticks in umbrella-gates rules template (pi extension parse error) - #7
Conversation
The buildRulesBlock() template literal contained an unescaped backtick pair around `CHANGELOG/<calver>.md` (line 100). The first backtick terminated the template literal early, so pi's jiti loader failed with "ParseError: Missing semicolon ... umbrella-gates.ts:100:7" and the extension never loaded — killing the bash gate interception, the umbrella_load_skills tool, and the every-turn rules injection. Escape the pair to \`...\`, matching the already-correct pattern on the Assisted-by line. Upstream charly-gates.ts has no such line, so the defect is fork-specific.
Review — BLOCKHead SHA: Change class: code/config — one-line backtick-escape fix in Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails; the fix restores the previously-broken extension load (gates preserved). T4: the change is a minimal syntax repair, matches its stated intent exactly. Blocks
Note (non-blocking)
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: code/config — one-line backtick-escape fix in Blocks
Comments considered
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Addresses the pr-validator's B12 finding: the load check that proved the
backtick fix lived only in /tmp. Add scripts/check-umbrella-gates-syntax.mjs
(zero-dependency; runs Node's own type-strip parser over
.pi/extensions/umbrella-gates.ts) and wire it into both task verify and
.github/workflows/verify.yml so the repo's CI gate fails on a recurrence.
Verified: the gate throws on the pre-fix file ('Expected ;, got ident')
and passes on the fixed tree.
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration; diff matches the stated intent exactly (one-line backtick escape in the pi extension + in-tree regression gate wired into Checklist: All applicable rules PASS or NA. Change class: harness/config bugfix (no charly runtime, no candies, no generated files — R9/R10 target/bed items N/A with reasons given). A1 complete: all 4 files accounted for (53+/2− matches the diff exactly), Comments considered: 5382574893 — both findings Verdict: PASS deepseek.com/deepseek-v4-flash — 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.
Advance gitlinks for the merged remainder of the openclaw 2.0 batch: - layer-container-nesting (pre-pull fix, PR #2) - layer-openclaw-full (pod-openclaw 2.0 pin, PR #7) - marketplace (corpus regenerations, PRs #281/#282) - pod-selkies-core (GPU-check fixes, PR #17) - pod-selkies-desktop (GPU-check pin, PR #11) distro-cachyos stays at the charly box/cachyos gitlink (policy B).
* chore(gitlink): advance the openclaw-2.0 batch remainder to main Advance gitlinks for the merged remainder of the openclaw 2.0 batch: - layer-container-nesting (pre-pull fix, PR #2) - layer-openclaw-full (pod-openclaw 2.0 pin, PR #7) - marketplace (corpus regenerations, PRs #281/#282) - pod-selkies-core (GPU-check fixes, PR #17) - pod-selkies-desktop (GPU-check pin, PR #11) distro-cachyos stays at the charly box/cachyos gitlink (policy B). * re-trigger: paste real task verify output
….0738 (#163) * chore: close-out the eval/fix wave — advance gitlinks (eval-omarchy #39, marketplace #293, layer-charly-internals #12, layer-charly-distros #7, dotgithub #84) + bump the pi-omarchy-eval pin to v2026.251.0738 * fix(dispatcher): actions: write is REQUIRED for the cancel-in-progress concurrency dedupe (otherwise dispatches fail to expand — the #163 infra regression) * revert(dispatcher): drop the actions:write permission line from #163 — T4-deferred (no maintainer sign-off granted); the dispatcher works without it post-#85 and the dedupe cannot cancel without the permission anyway. #163 is now a pure gitlink+pin change: no workflow permission change.
… releases land (#1274) `charly task sync` on a tree current with origin/main (7f11b25): 74 leaf submodules rolled to their default-branch HEAD (11 moved), 321 leaf pins advanced in the index (11 moved) — 22 pins total. The five distro-* pin_map edges were re-pinned from charly's own gitlinks and did not move. Two of the moves are what this wave is for (#1273): sdk 2bfea23e -> dd87eb2c sdk#640 — a unit never runs as container root plugin-deploy-pod c87f056c -> c10caae #97 — a CDI device rides a keep-id unit via a derived devices-only spec; #95 writes the deploy entry's image before any overlay write The other 20 travelled on the same mechanism, each a merged upstream PR: charly #1275, layer-cdi #20, layer-vectorchord #13, marketplace #652, plugin-enc #11, pod-charly-mcp #15, pod-immich #23, pod-qwen3-tts #15/#13, spec #440, plus eleven unmaterialized paths advanced in the index (layer-devops-tools #8, layer-ollama-cuda #11, layer-ollama-rocm #9, layer-pre-commit #9, layer-versatiles-style #7, pod-airflow #15, pod-android-emulator-layer #21, pod-appium-server #9, pod-dbus #8, pod-jupyter-ml #15, pod-pmtiles-viewer #7). The plugin-deploy-pod advance moved engineDefaultRuntime from engine_ops.go:139-146 to 129-136, out from under the citation DESIGN A.13 records for "containerd namespace per deployment" (design/dulling.tsv). The row is re-anchored to the construct's new range and design/cite-baseline.tsv regenerated for that one row; the construct read at the new pin is the same one, and the regenerated baseline changes no other row. Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926` Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
Summary
Fixes the pi extension load failure at the umbrella root:
The
buildRulesBlock()template literal contained an unescaped backtick pair around`CHANGELOG/<calver>.md`(line 100). The first backtick terminated the template literal early, producing invalid syntax. As a result pi's jiti loader rejected the module and the extension never loaded — killing all three of its functions at once: the bashtool_callgate interception (pre-commit/pre-push mechanics), theumbrella_load_skillstool, and the every-turn system-prompt rules injection.The fix escapes the pair to
\`CHANGELOG/<calver>.md\`, matching the already-correct pattern on the Assisted-by line (line 102). The same change ships an in-tree regression gate (scripts/check-umbrella-gates-syntax.mjs, wired intotask verifyand.github/workflows/verify.yml) so the repo's own CI fails on a recurrence of this defect.Claim-keyed sweep — command + real output (run on the committed tree):
Interpretation: the
buildRulesBlocktemplate literal spans lines 59–116; every backtick-bearing line inside it uses the escaped\`form except line 100, which now carries the escaped pair — the only line that had bare backticks before this fix. Line 137 is aRegExpliteral (//g`), not a template. Lines 238–320 are separate template literals with correctly matched delimiters. Conclusion: line 100 was the sole unescaped backtick inside a template literal.Fork-specificity — the defect is not upstream charly's (read-only check, submodule):
How tested
RCA of the red
validate / validatecheck on the earlier head2ddd7c8: the check run was the pr-validator's first review of this PR (run32598245495), which BLOCKed on two body findings — B14(d) unpasted sweep claim and A1 missing R5/R9 rows. Both are resolved in this body (sweep pasted above; R5/R9 rows present below); the second validator run marked both findings stale-superseded. Nothing in the tree caused the failure — it was a review verdict on the earlier body. The check re-runs on this new head (synchronize) and must land green.scripts/check-umbrella-gates-syntax.mjs, run through Node's own type-strip parser):dist/core/extensions/loader.js(createJiti+ the same@earendil-works/pi-coding-agent/typeboxaliases,jiti.import(path, { default: true })):task verifynow runs pins + harness syntax):Rulebook compliance
origin/mainbefore fixing; the redvalidatecheck RCA'd abovegit statuschecked before branching; no force-push, no direct push to maintask verify(now pins + harness syntax) andtask harnessboth green (output pasted above); CIverifyworkflow extended with the same syntax step.pi/extensions/umbrella-gates.tsis a fork (not a shared file) —task harnessconfirms the 6 shared files remain identical to charly/; opencode mirror audit pasted above (no backticks, no template literals)git show HEAD:.../task verifyon the final tree), not the edited stateChange classification
task verify(R7) + in-tree syntax gate + live load test through pi's jiti loader (R10)fully tested and validated—task verifypassed on the final tree and the changed path (extension load) executed live with retained outputAssisted-by: pi deepseek/deepseek-v4-flash (fully tested and validated)