The maintainer's request of 2026-11-28, in chat, after6ef8381: use Archify to map the system and add the map to the README, before the index that links each part to its documentation; say which parts to document and which open parts the documentation should link into the roadmap. Two menus followed, each answered with the option recommended. Menu 3: all fourteen parts, in four groups; all nine open parts, listed on the roadmap page and linked from the seven pages that describe them; a static SVG in the README, the interactive HTML left out of the repository; the open parts show the states as the records hold them today, not the decisions of the earlier menu. Menu 4: the wording of the section and of the seven sentences, and the caption of the image, each "Write it as shown (Recommended)". Four places differ from that wording, each on a finding of the reviewer. The two cells follow the answer that the section show the states as the records hold them today: the row on graph reuse says "Not scheduled; no step owns it" where the wording said R5, and the row on the proof arm says "R4, if it needs it" where it said R4. The pre-push page gained a sentence in front of its link: "No pre-push capability is admitted yet." And the box of the proof arm in the map names "Use case", the page that describes the arm, where it named "Where we stand". What changed. Measured in /tmp/opencode/s10_rd2_diffcheck.out and s10_rd2_svg.out: nine tracked files changed (39 insertions, 4 deletions) and one file is new. - docs/system-map.svg, new: 225,027 bytes, 922 by 936, exported by Archify 3.3.2 from its checked HTML (four gates passed, no crossover). Fourteen components in four groups: what you call, inside a scan, maintainers only, how detection is measured. The second line of each component names its page in short. The candidate cites forty source ranges, read at6ef8381. The labels are text. The file is ASCII: the exporter's hover titles hold a middle dot, replaced by a hyphen. It holds no digit in its text, no ".kiro", no "kiro-", and none of the five patterns that test_plane_literals forbids under docs. - README.md, 301 lines: the image and one caption at the top of "Documentation", before the site paragraph and the table. - docs/roadmap.md, 140 lines: a section "Open parts" before "Rules at every step", nine rows: the open part, its state today, the page that describes it, and the step that closes it. The words "on synthetic review batches" in the first row are the handover's, which is not tracked; the reviewer found them consistent with commits825e680,6d66501andc2b5f5b. - Seven pages, one linking sentence each, with a link to that section: docs/evaluation.md, docs/pre-push-for-developers.md, docs/detection-techniques.md, docs/architecture.md, docs/use-case-fix-and-reverify.md, docs/deployment.md and docs/decision-engine.md. The map was drawn by a subagent with the Archify skill, from a list of fourteen parts and fifteen relationships; it attached the sources. It was corrected twice, after its reports and my reading of the captures. The arrow between the report and the plane pointed from the report to the plane, which suggests that a scan sends something to the plane. It now runs from the plane to the quick rules, "runs the quick scan on both pins", on the call in src/openultrasast/plane/tasks/alerts.py (lines 117 to 168, cited on the caller). The legend's "Frontend" became "Entry point". Two arrows simplify the code, as the subagent reported: the overlay asks the engine for a flow and merges it, and the engine's answers are graded on the evidence ladder. I inspected the captures at 900 pixels: light and dark of the first delivery, and light of the second and of the third; the third differs from the second in one second line. The labels read. The title of the second group sits at the top middle of its frame, above the arrow labelled "standard". Checks, in files under /tmp/opencode/ that start with their command. - s10_rd2_pytest_docs.out: 30 passed in the five test files that read the README, docs and ops, with the strict build, run after the last edit. - s10_rd2_site.out: a strict build to /tmp/opencode/site-rd2-check copies the SVG into the site, and no page of that site contains ".kiro" or "kiro-". - s10_rd2_links.out (script s10_rd2_links.py): the relative links resolve, anchors included: 42 in the README, 14 in docs/roadmap.md. The script names three anchors of docs/deployment.md that it cannot find; they lead into the pages that include ops/ax/README.md and ops/README.md, and the strict build accepts them. - s10_rd2_svg.out: the size, the viewBox, 49 lines with a text element, and the counts above. - s10_rd2_diffcheck.out: the added text is ASCII; git diff --check exits 0. - s10_rd2_gates_run.out and s10_rd2_exits.txt: the gates of label rd2 give ten zeros. They ran before the last edits, which touch documentation only. Not verified: the image through GitHub's proxy; the switch to the light theme was seen in headless Chromium only. Not in the repository: the interactive HTML and the candidate, which stay under /tmp/opencode/archify-system-map/. Review. Three rounds. Round one blocked on two points; rounds two and three checked the fixes and the message. The graph reuse row (docs/roadmap.md:121) now says "Not scheduled; no step owns it", as the records say; the Proof arm box of docs/system-map.svg names "Use case", the page that describes the arm; the pre-push page gained a sentence in front of its link; the proof arm row reads "R4, if it needs it" (roadmap.md:122). Round three found the tree as in round two: the nine blobs and the SVG are those I approved. Measured: 225,027 bytes, 922 by 936, 49 text lines, 14 boxes, 15 arrows (11 labelled), ASCII, no digit, none of the five patterns; 40 source ranges inside files at 6ef8381; 42 and 14 relative links; six anchors in a strict build of my own; 11 tests passed, again in round three; the captures of the three deliveries read at 900 pixels. Remark: line 88 of the pre-push page is 131 columns wide and line 89 is 91; the page's other lines stop at 84.
4.6 KiB
Pre-push security for developers
You push code. This checks it for security regressions first. You do not annotate anything, you do not need a security background, and you do not change how you work.
The short version
Install a git pre-push hook once. On every push it reads the code you changed, compares it against the known risks of the frameworks you already use, and warns you before the push leaves your machine. Where it can build and run your app, it goes further and proves an issue with a demonstration: a check that triggers the problem on your change and stops triggering once the problem is fixed. By default it only advises; it never blocks until you turn blocking on.
Why this matters now
Your backlog is full and your schedule is not yours. Security findings compete with feature tickets, and a vague "possible vulnerability" loses that fight every time: no one gets capacity to chase a maybe. Meanwhile you and your coding agents ship quickly, and an agent writing code does not pause to audit itself. A pre-push check is the place to catch a regression that you, or an agent acting for you, introduced, before it reaches the remote. In an agent-driven workflow it is the oversight step: the gate that reviews what the agent wrote, every push, without you having to become the security reviewer.
From a finding to capacity
The point of the proof is the prioritization conversation, not just your terminal.
A theoretical warning dies in the backlog. A demonstrated proof does not: it is a reproducible check that triggers the problem on the current code and stops once the code is fixed. That is the thing you take to a product owner or to the business when you need capacity. It turns "security thinks this might be a problem" into "here is the exact input, the exact behavior, and the one-line difference that stops it," which is something a product owner can weigh against a feature with real information instead of fear.
So the output is built to drop into your ticket system as evidence: a location, a concrete repair direction, and, where the app is runnable, the reproduction itself. That is what gets a fix scheduled rather than deferred.
What you do
- Install the hook in a repo:
ousast pre-push install. - Push normally. Findings print at push time.
- Optionally set model keys and a spend cap in
.env; nothing else is required.
No code annotations. No markup. No per-project security config.
How it decides, without annotations
- The tool brings the security knowledge. It ships framework facts: the sources, sinks, sanitizers, and guards for common frameworks. Your code does not declare any of this.
- It looks only at your change. It builds a graph of the changed code and checks it against those framework facts, scoped to the diff, not the whole repo.
- It can prove, not just warn. When the app is runnable, the proof arm builds and runs it and demonstrates the issue by execution, so a finding is a reproducible fact, not a confidence score.
What you control
- Advisory or blocking. Advisory by default;
OUSAST_PUSH_MODE=blockingturns it into a gate. Adopt in advisory mode, build trust, then block. - Budget and deadline. One budget covers the whole push; if it runs out you get an honest "incomplete coverage" notice, never a made-up verdict.
- Where proof runs. Local sandbox, a container, or a shared cluster.
- Models and spend. Keys and caps live in
.env.
Honest limits
- Coverage follows support. It helps where the tool has framework facts and a language grammar; outside that it is weak, and third-party or vendor code is not analyzed.
- Large repositories can be slow. On big codebases the deep analysis can exceed a comfortable push deadline today; that is an open engineering problem.
- Generalization is being measured, not asserted. Whether it reliably catches real regressions and stays quiet on ordinary changes in repositories it has never seen is under active measurement. We consider the tool wrong if it misses real regressions or alarms on ordinary changes on unseen repositories, and that is exactly the catch-rate and false-alarm number the unseen-repo evaluation is producing now. Treat the advisory output accordingly until that number exists.
Where this is going
An MCP agent and skills so your editor or your coding agent gets the same check
earlier, inline, before the push, so feedback arrives while you are still writing
rather than at the gate. See the follow-up spec mcp-shift-left-agent. No pre-push capability is admitted yet. What is still open,
and the step that closes it, is in Open parts on the roadmap page.