Repository navigation
v4.2.1
Context packs rank by distinct request words, and a failing gate says what failed. No command or schema was removed. The gate check gains one optional field, and gate --out prints a verdict line.
Fixed
- A word the request repeats counts once. "session replay / session playback … errors … error boundary, global error handler" counted
sessiontwice anderrorfour times. Methods matching onlysession(createSession, a cache'sgetandset) then scored as two-word matches, led the hotspots, and pushedapp/global-error.tsxout of the pack. A plural and its singular (errors,error) are also one word. - The words of a camelCase name count together. "OpenPanel" splits into
openandpanel, and "PostHog" intopostandhog, like any identifier. On its own,openmade a seller checkout service a primary file, andpostmatchedpostAiStream. Each word now counts only when another word of the same name also matches, unless the request also uses it on its own. - The action verb counts only in a symbol's own name.
addfrom "add session replay…" matched a local variable insidehandleCheckoutSessionCompleted. A symbol named for the action (createOrderfor "create an order") still matches. - A failed validation command shows what failed.
gate --run-validationprinted onlytests: failed (exit 1; stdout sha256 …; stderr sha256 …), so finding the failing test meant running the suite again. The check now lists the failing tests the runner announced (TAP and node:test, Jest, Vitest, pytest, Go) and shows up to 12 lines of output from the first of them. When no runner marker is recognised it shows each stream's tail instead. The excerpt appears in the terminal and markdown reports and asexcerptson the check in JSON. Lines are capped at 200 characters and stripped of terminal escapes, the deleted snapshot directory is shown as., and any line the secret scanner would flag is withheld. The digests stay, and the validation evidence and its receipt still carry digests only. gate --outand the pre-commit hook say FAIL. Writing the report printed onlyPass report written: <path>, which read as a pass while the hook refused the commit.--outnow printsGate verdict: FAIL — blocked by <check>: <summary>(orWARN …/PASS) and thenGate report written: <path>. The hook scaffolded bysolumbe initalso printsFAIL — commit blocked by the staged safety gate. Hooks scaffolded before this release show the verdict line without re-runninginit.