mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 18:28:19 +00:00
The maintainer's request, in their words: "run /humanizer across the readme and docs and push them to main". The menu of 2026-11-28, three answers, each the option recommended: prose only (headings, code blocks, commands, paths, link targets and quoted strings stay); README.md and the 21 pages under docs/ (the three ops pages that the site includes stay as they are); the push follows the full gate. What changed - The pass read the 22 files with the humanizer skill, in its register for reference text: plain and neutral, no personality added. Apart from the two corrections below, a file was edited only where a pattern of the skill required it. - Six files changed, +14 -12 (s10_rd3_diffcheck.out). The other 16 pages are byte-identical to HEAD. - README.md: one tailing negation became a sentence of its own. A missing engine is recorded as a degradation; it does not count as a clean result. - README.md, docs/architecture.md, docs/memory-and-detection.md and docs/scanning.md: four sentences lost a diff-anchored "now" (one word each). - docs/pre-push-for-developers.md: two "not just" contrasts, a tailing negation and a run of three subjectless "No ..." fragments became plain clauses. The bold label keeps its strength: "It can prove as well as warn." - Two old faults that the README rewrite of6ef8381carried over, seen by the pass and corrected here: - docs/examples.md pointed at a README section that was removed on 2026-10-02 (bdabb97, "Agent integrations"). It now names "For maintainers and contributors", which holds the text on the MCP server. - README.md, scan modes: "Each adds to the one before" (552671c, 2026-10-02) contradicted the third bullet below it since that bullet was rewritten on 2026-10-13 (f5a904b): deep records a degradation and otherwise equals standard. The sentence now says the same. Checks - s10_rd3_pytest_docs.out: the five test files that read the README, docs and ops: 30 passed. - s10_rd3_build.out: a strict build, exit 0, 22 html files (21 pages and the 404 page), none with a steering string on it. - s10_rd3_invariants.out, against HEADc10dc11for all 22 files: headings, fenced lines, include lines and link targets equal; no non-ASCII in prose. The script prints FAIL for one check, by design: README.md gained four inline code spans in the corrected sentence on the scan modes. Its "only in HEAD" lists are empty, so no code span was lost. - s10_rd3_exits.txt: the gates with label rd3, ten zeros. - s10_rd3_diffcheck.out: git diff --check exits 0. Not verified - The claims of the pages against the records. Apart from the two corrections, the pass kept every claim as it was; what it saw and left is in the session's evidence, for the maintainer. Review. Two rounds on 2026-11-28, read-only, against HEADc10dc11. Round one approved the tree and blocked the message on five statements; all five are corrected. Round two read the three edits made in between against their old lines and the facts: README.md:118 keeps the qualifier of the third bullet, README.md:128 lost its "now" like the two other copies, and pre-push-for-developers.md:58 has the strength of its original. Every hunk was read old against new in both rounds. My own comparison of the six HEAD blobs with the working tree found headings, fenced lines, include lines, link targets, HTML tags and bold marks equal, with no non-ASCII character added. No page under docs/ contains ".kiro" or "kiro-". The other 16 files are tracked and identical to HEAD. Run again in each round: the five test files, 30 passed; a strict build to a scratch directory, exit 0, 22 html files (21 pages and 404.html), none with a steering string; git diff --check, exit 0.
91 lines
4.7 KiB
Markdown
91 lines
4.7 KiB
Markdown
# 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 proof matters beyond your terminal: it is what you bring to the prioritization
|
|
conversation.
|
|
|
|
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
|
|
|
|
1. Install the hook in a repo: `ousast pre-push install`.
|
|
2. Push normally. Findings print at push time.
|
|
3. Optionally set model keys and a spend cap in `.env`; nothing else is required.
|
|
|
|
You need no code annotations, no markup and 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 as well as 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=blocking`
|
|
turns 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 instead of 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](roadmap.md#open-parts) on the roadmap page.
|