mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-10 15:09:00 +02:00
The user-installed impeccable engine becomes a deterministic pre-pass in four
skills, through one resolver with three renders: {{DESIGN_DETECTOR}} (the probe
block and how to read every sentinel), {{DESIGN_DETECTOR:phase0}} (design-
review's mechanical scan), {{DESIGN_DETECTOR:gate}} (design-html's bounded slop
gate). Every rendered invocation is `bun --no-env-file run <bin>/gstack-design-
detect.ts ... --host <host>` and every scan ends with the DETECT_EXIT_CODE echo
so exit 2 (findings) never aborts a block.
design-review: probe in Setup; Phase 0 picks DOM mode (URL target) or source
mode (diff-aware, no URL) once; source mode scans the changed frontend files in
Setup, DOM mode never reads source (Rule 4). Phase 3 gains a DOM-dump step per
page: both browser engines load the shared script from lib/dom-dump.js (Aside
splices it into a double-quoted repl script; the fallback engine copies it into
a temp dir for `$B eval --out --raw`), the dump is size-capped, run through
gstack-redact (a HIGH finding skips the page), and persisted under
$REPORT_DIR/dom/$RUN_ID/; one scan runs after the last page, labeled "static
scan of the rendered DOM; cross-origin CSS not resolved". REPORT_DIR honors
GSTACK_HOME so the wrapper's allow-list and the report dir agree; RUN_ID is set
once in Setup. design-baseline.json is schemaVersion 2 with runId, targetSet,
base, and a detector block (mode, engine, byRule, byPage), written temp+rename
with a per-run copy; Regression Output diffs ids only when mode and target set
match, caveats an engine change, and calls live-page count deltas advisory.
Phase 7 hands deferred detector findings to the `handoff=` command the scan
printed; Phase 9 recomputes the same way and deletes the dumps unless
--keep-dom; Phase 10 reports `Detector: N → M`.
ship review-lite gains step 0 (probe, `scan --changed <base>`, tier buckets,
detector + checklist dedupe, advisory and ignored never count) and a
`detector` count in its log payload; the PR body gets a Detector line (rule
ids and counts only). The Review Army Design specialist runs the mechanical
pass at the top of review/design-checklist.md, which now carries it. design-
html probes after DESIGN_SETUP and runs the one-pass gate before screenshots.
lib/dom-dump.js is generated by gen-skill-docs from lib/dom-dump-script.ts
(Claude host, --out-dir aware, dry-run freshness) and pinned byte-equal, so the
prose never carries the script. The contract gains DETECT_JSON, DOM_DUMP_OK,
and the self-describing set; its test now checks both directions.
Budget: design-review eager 25.6K → 28.5K. The plan's target was +2.5K; after
the levers it named (ids-only detector rules, no inline script, trimmed prose)
it lands at +2.87K, and the remainder is doctrine and detector wiring, so the
ceiling moves to the captured 31,319 for design-review only (the full capture
would also have loosened 21 ceilings this branch never touched; those stay).
design-html skeleton re-baselined to 54,000 (measured 53,592). Codex and
Factory ship goldens refreshed (review-lite step 0 and the PR-body line render
inline there).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
66 lines
1.9 KiB
JSON
66 lines
1.9 KiB
JSON
{
|
|
"_comment": "Context-budget ratchet ceilings (~tokens). Regenerate: bun test/helpers/capture-context-budget.ts. Headroom: alwaysOnTotal x1.05, eagerPerInvocation x1.1. Graded by test/context-budget-ratchet.test.ts via lib/context-bill.ts checkBudget.",
|
|
"alwaysOnTotal": 6372,
|
|
"eagerPerInvocation": {
|
|
"autoplan": 16755,
|
|
"benchmark": 7322,
|
|
"benchmark-models": 3829,
|
|
"browse": 7750,
|
|
"browser-skills/hackernews-frontpage": 371,
|
|
"canary": 13439,
|
|
"careful": 919,
|
|
"codex": 15265,
|
|
"context-restore": 9618,
|
|
"context-save": 10234,
|
|
"cso": 15919,
|
|
"design-consultation": 16897,
|
|
"design-html": 13276,
|
|
"design-review": 31319,
|
|
"design-shotgun": 13828,
|
|
"devex-review": 19755,
|
|
"diagram": 4211,
|
|
"document-generate": 12362,
|
|
"document-release": 10602,
|
|
"freeze": 990,
|
|
"gstack": 3806,
|
|
"gstack-upgrade": 4201,
|
|
"guard": 889,
|
|
"health": 10816,
|
|
"investigate": 12095,
|
|
"ios-clean": 8721,
|
|
"ios-design-review": 8902,
|
|
"ios-fix": 8674,
|
|
"ios-qa": 11414,
|
|
"ios-sync": 8845,
|
|
"land-and-deploy": 18855,
|
|
"landing-report": 9527,
|
|
"learn": 9197,
|
|
"make-pdf": 5314,
|
|
"office-hours": 19775,
|
|
"open-gstack-browser": 4510,
|
|
"openclaw/skills/gstack-openclaw-ceo-review": 2764,
|
|
"openclaw/skills/gstack-openclaw-investigate": 1429,
|
|
"openclaw/skills/gstack-openclaw-office-hours": 4433,
|
|
"openclaw/skills/gstack-openclaw-retro": 2542,
|
|
"pair-agent": 11622,
|
|
"plan-ceo-review": 20359,
|
|
"plan-design-review": 19094,
|
|
"plan-devex-review": 17608,
|
|
"plan-eng-review": 14558,
|
|
"plan-tune": 14771,
|
|
"qa": 15775,
|
|
"qa-only": 16730,
|
|
"retro": 18974,
|
|
"review": 15830,
|
|
"scrape": 6744,
|
|
"setup-browser-cookies": 3194,
|
|
"setup-deploy": 11237,
|
|
"setup-gbrain": 15565,
|
|
"ship": 20358,
|
|
"skillify": 12206,
|
|
"spec": 14976,
|
|
"sync-gbrain": 13985,
|
|
"unfreeze": 393
|
|
}
|
|
}
|