@forkstage/verify
v0.11.13
Published
What a Forkstage run does inside a copy of the stack: the attack catalog, the attack run and its detectors, and the verification probes. Shared by the CLI, the MCP server and the control plane.
Maintainers
Readme
@forkstage/verify
What a Forkstage run does inside a copy of the stack, as plain functions with no driver inside, so the CLI (forkstage attack, forkstage verify), the MCP server (attack_agent, verify_change) and the control plane (the GitHub App on pull requests) run the same thing and reach the same verdict.
The attack range
TECHNIQUES: the attack catalog, 19 techniques in 11 categories, each with the doors it comes through, its severity and what it needs. Forkstage's attack library (on the control plane) assembles 17 of them today.runAttack: every attack several times, each on a fresh fork (quick 6 × 2, standard 12 × 3, deep 24 × 5), and the report.detect: the detectors that decide whether an attack breached, reading the copy itself: canaries in replies, the outside recorder's egress journal (anything under.forkstage.testis trapped), captured mail, data-carrying links in replies, internal-address requests, the app's own secrets in replies, and read-backs through the app's API. A leaked system prompt is not detected yet.
Verification
Each probe first decides whether it applies to this stack, then runs, then reports one outcome: passed, failed, warn, or skipped with the reason.
apiSmoke(baseUrl): finds an OpenAPI, Swagger or GraphQL description and calls every parameterless read route once; fails on 5xx, timeouts and refused connections.runCheck(check, context): achecks:entry fromforkstage.yaml, a command that must exit 0 or one request that must answer a status.logScan(text): counts error-level lines and crash signatures in service logs; warns.parseMailList(json, since),mailOutcome(messages, hosts),emailEvents(messages): captured mail from the fork's mail service, as proof events.
The verdict rules live in @forkstage/proof.
