quality: add deterministic runtime-boundary program - #1784
Merged
raphaeltm merged 20 commits intoAug 10, 2026
Conversation
Contributor
Includes checker self-count fix.
Auto-committed by SAM on agent completion.
simple-agent-manager
Bot
force-pushed
the
sam/coordinate-implement-deterministic-runtime-gkq1xt
branch
from
August 10, 2026 18:59
5863929 to
86be87c
Compare
35 tasks
|
31 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
apps/www.eslint-plugin-samwith three fixture-backed advisory runtime-boundary rules.as anywith a boundednavigator.userAgentDatainterface; application behavior and deployment output are otherwise unchanged.apps/apiWrangler binary, eliminating registry-dependentnpxbootstrap behavior while preserving its fail-closed status handling.Migration and rollout
Developer entry point:
pnpm check:fast.Rule ownership and lifecycle metadata live in
packages/eslint-plugin-sam/rules.manifest.json. Boundary, format, Astro, and reviewed-secret baselines identify an owner/backlog/review window and reject increases or expired exemptions as applicable. Contributor commands, authoritative/advisory roles, scanner privacy, and rollback switches are documented inCLAUDE.mdandscripts/quality/README.md.Validation
origin/main.codex/config.tomlmatchesorigin/mainexactlypnpm check:fast— formatting ratchet, Oxlint shadow, authoritative ESLint, and type-boundary ratchet passpnpm typecheck— 19/19 workspace taskspnpm test— 21/21 package tasks; API 6,799/6,799 and web 2,937/2,937pnpm quality:scripts:test— 31 files / 283 testspnpm --filter @simple-agent-manager/eslint-plugin-sam test— 16/16 RuleTester casespnpm build --force— 9/9 workspace tasks without cache384627e36; Specialist Review Evidence is greenThe load discrepancy is closed at its root boundary. The heartbeat route, node-agent client, and ephemeral RSA key material are now collected during module setup; tests reset only the fetch boundary. No test was skipped or retried, the five-second timeout is unchanged, and no assertion was relaxed to hide load sensitivity. The staging workflow's R2 bucket preflight now resolves the catalog-pinned Wrangler 4.118.0 from the frozen install instead of depending on an on-demand registry download.
Staging Verification (REQUIRED for all code changes — merge-blocking)
1ae5808fcompleted run 31423110320Staging Verification Evidence
The final-content candidate deployed once in run 31423110320: configuration, Cloudflare deployment, migrations, API/tail/web deploys, health check, and built-in smoke tests all passed. Authenticated Playwright used
SAM_PLAYWRIGHT_PRIMARY_USERthrough/api/auth/token-login, rendered the dashboard with 15 projects, opened an existing project and its chat, loaded settings, and observed zero console errors, page errors, or HTTP 5xx responses. Authenticated API checks confirmed zero staging VMs and zero workspaces; no resource was provisioned. Two earlier attempts on superseded SHA86be87c9stopped before Cloudflare mutation because the workflow used registry-dependentnpx wrangler; the pinned frozen-lockfile correction was independently reviewed and the successful run above is the sole deployed regression sweep.UI Compliance Checklist (Required for UI changes)
End-to-End Verification (Required for multi-component changes)
Data Flow Trace
package.json:check:fastinvokes the format ratchet, Oxlint report-only wrapper, Turbo workspace ESLint scripts, andscripts/quality/check-type-boundaries.ts..github/workflows/ci.ymlcalls the same leaves, explicitly runs SAM RuleTester fixtures, and separately invokes privacy-safe supply-chain wrappers. Workspace lint/typecheck scripts cover the audited TS/TSX/MTS/CTS/Astro populations. Runtime application paths do not depend on the new quality tooling.Untested Gaps
None. Local implementation, full-suite tests, specialist review, label-free CI evidence, and consolidated staging verification are complete.
Post-Mortem (Required for bug fix PRs)
N/A: not a user-visible bug-fix PR; this is progressively introduced repository quality infrastructure.
Specialist Review Evidence
Rollback
sam/*warnings or remove its workspace reference; the count ratchet is independent.lint:oxlintfromcheck:fastand CI. ESLint 9 remains the complete authoritative layer.Exceptions
Agent Preflight (Required)
Classification
External References
Official documentation was consulted for ESLint flat config and migration, typescript-eslint supported versions, Oxlint native and alpha plugin behavior, Astro template checks, Gitleaks scan/report behavior, and govulncheck: https://eslint.org/docs/latest/use/configure/migration-guide, https://typescript-eslint.io/users/dependency-versions/, https://oxc.rs/docs/guide/usage/linter.html, https://docs.astro.build/en/reference/cli-reference/#astro-check, https://github.com/gitleaks/gitleaks, and https://go.dev/doc/security/vuln/.
Codebase Impact Analysis
Root
package.json,pnpm-workspace.yaml,turbo.json, and ESLint/Oxlint configuration define the developer contract.apps/www,apps/tail-worker,infra,packages/cloud-init, andtools/og-imagegain lint/type/template coverage.packages/eslint-plugin-samowns syntax diagnostics,scripts/qualityowns deterministic ratchets and scanner wrappers, and.github/workflows/ci.ymlcalls those leaves without changing deployment behavior.Documentation & Specs
Updated
CLAUDE.md,scripts/quality/README.md,.claude/rules/51-runtime-boundary-validation.md, the active task record, rule documentation, lifecycle manifest, and machine-readable adoption evidence. No product feature spec changes are needed because this is contributor/CI quality infrastructure.Constitution & Risk Check
Checked progressive rollout, no-hardcoded-business-values, security/privacy, deterministic testing, and rollback isolation. Tool versions and audited base SHAs are explicit evidence/protocol pins; existing debt remains baselined; scanner output stays private and temporary; specialist evidence, local validation, CI, and consolidated staging remain fail-closed merge gates.