Skip to content

feat(bench): permanent --rule-cache off|cold|warm arm in the template fan-out bench (#1971) - #2150

Merged
nc9 merged 1 commit into
mainfrom
bench/rule-cache-arm-1971
Nov 20, 2026
Merged

nc9 merged 1 commit into
mainfrom
bench/rule-cache-arm-1971

Conversation

@nc9

@nc9 nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Part of #1971 (AC1 only; AC2 to AC4 need the Mac at low load).

The arm itself landed earlier (b7c3f8f). This PR makes it testable and routes it through the real switch:

  • New apps/cli/scripts/lib/rule-cache-arm.ts: arm parsing, armEnv (off sets the real SQUIRREL_RULE_CACHE=off kill switch, cold/warm clear it so an ambient value cannot change the arm), armCacheStore (goes through ruleCacheEnabled and createProjectRuleCacheStore), prepareArmCache (cold truncates before every run, warm fills once when empty, off leaves it alone).
  • Bench uses it; each child reports its arm, the output prints one row per run (arm, cpu, wall, replayed, fresh) and a rule-cache off vs <arm> summary line.
  • Tests: apps/cli/tests/scripts/rule-cache-arm-1971.test.ts (7 pass; cold-truncate mutation fails 1).

Gates (apps/cli): format:check, lint, typecheck clean; scripts/test-suites.ts --check OK; changelog check OK. No real measurement run. Dev-only, no changelog entry, no skill change.

@nc9
nc9 merged commit ccfcf91 into main Nov 20, 2026
8 of 15 checks passed
@nc9
nc9 deleted the bench/rule-cache-arm-1971 branch November 20, 2026 20:13
nc9 added a commit that referenced this pull request Nov 20, 2026
…pass (#2082) (#2164)

security/unauthenticated-api reports every leaking current-user endpoint with no hand-off; after the site pass the runner keeps exactly one finding per endpoint (security/auth-endpoint-disclosure's when its results include the endpoint, otherwise unauthenticated-api's). Before, an endpoint handed to the auth rule lost its finding when that rule threw or ran past its time budget. The deferredToAuth detail on the unauthenticated-api clean row is replaced by reportedBy/reportedElsewhere.

landed during Actions billing lock: Daytona CI pubci-11202044-240a587 (PASS at 240a587; quality, tests, build; DCO 2/2). 4 behind main at merge (#2143, #2150, #2161, #2160): no overlap with packages/rules/src/runner.ts, packages/rules/src/security/ or the 1886/2082 tests. Hold-list security-rule change: merged on Nik's approval.

Signed-off-by: Nik Cubrilovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant