NEWBravos is available: point it at a repo and see which threats an attacker can reach.Create your account

Bravos · Security decision records

Write down what you decided. Bravos checks your code against it.

Who may see the margin report, which files an upload accepts, what is allowed on purpose: those are decisions only your team makes, and code alone can't say what was intended. A security decision record writes them down for one module, in plain words. Once a person approves it, your coding agent reads it before changing that code and checks it after, and a pull request that breaks it is held.

npm install -g @bugb-technologies/bravos
bravos records new --app

Typing at 2.5× and the agent's reading at 8×; the refusal and the retry play in real time. Recorded with the agent's shell tool off, so it makes the change with its edit tool.

What a record is, and what it does.

  • One plain record per module

    .guardlink/records/SDR-n-<module>.md, in four sections: what this module does, always and never, allowed on purpose, and what would hurt us most. Each rule is one line a CXO can read.

  • SDR-0, the whole application

    bravos records new --app writes SDR-0, the application's own record. Once approved it binds every file, read in the briefing every session and checked after each edit.

  • Only what the team decided

    Its owner writes it. The agent helps only from what you tell it, your documents and rules people confirmed, citing each line. It never fills a rule or 'allowed on purpose' from the code.

  • Binding once a person approves

    A record binds when a code owner approves the pull request that brings it to the default branch. A person typing their name at their own terminal is the weaker fallback. An agent never approves one.

  • Shown before the edit, checked after

    The first edit in a session to a covered file, or the first obvious shell write to one, is refused once with the record in full, so the agent reads it first. After each change, it is handed the enforced rules for that file: keep each, undo the break, or stop and say why.

  • Held before a pull request

    The pre-PR check holds a branch that changes the code at a place where an approved record's enforced rule breaks, not every change to the file, until the code is fixed or a person approves a dated exception.

In a terminal

A record is a file in your repository.

Start with SDR-0 for the whole application, then one record per module that makes security decisions. bravos setup on Team offers a blank record for each module that needs one, its owner from CODEOWNERS, with no rule filled in.

  • bravos records new --appSDR-0, the application's own record, blank for the team
  • bravos records new "<module>" --paths "<glob>"a blank record for one module
  • bravos records for <file>which record covers a file
  • bravos records checkevery record parses and still reads as approved
  • bravos ruleseach rule of each record, with its status
  • bravos records except SDR-n R1 --where "<glob>" --reason "<why>" --until <date>a person's dated exception for one place

Typing at 1.8×; cut between the blank record and the one its owner filled in.

From a draft to a rule that holds

Write it, approve it, keep it.

In the owner's own words.

A blank record has an optional owner: line and four sections whose prompts guide the owner. Ask your agent for "a security decision record for <module>", and it drafts one only from what you say, your documents and confirmed rules, then tells you it is a draft that binds nobody yet.

bravos records new "<module>" --paths "<glob>"

A code owner, or a typed name.

Open the record's pull request: it is approved when a code owner reviews it into the default branch. bravos records check says whether the branch requires that review. Without it, a person runs bravos records adopt at their own terminal and types their name, which shows who said so, not that anyone reviewed it.

Every change, in every agent with hooks.

In Claude Code, Codex, Cursor, Antigravity, opencode and omp, the agent is shown the record before it changes covered code, with its edit tools or an obvious shell write, and handed the enforced rules after each change. The pre-PR check holds a branch that changes the code at a place where a rule breaks; a line in the PR body saying the rule was kept does not clear it. bravos setup --ci adds the same check to CI.

Typing at 3× and the agent's checks at 10×. The agent says the gate holds any branch touching the file; it holds a change at the place a rule breaks: that line, five lines above and thirty below.

One page per record.

In the dashboard's SDR view, each record has its owners and approval on top, then Findings, Rules, Text and History. Every place reads proven broken, looks broken, might break a rule, follows the rule, proven to hold, allowed on purpose, or allowed until a date.

bravos dashboard

At 1.12×. In this demo the record was approved by a typed name, which Bravos marks not verified, on a Team trial partway through.

Questions

How is a record different from the threat model?

The threat model says where the code is exposed or protected, as annotations beside it. A record says what the team decided for a module. Each enforced rule becomes a threat in the threat model, so the annotations show where the code keeps it and where it breaks it.

Who writes a record?

The module's owner: the record's owner: line, or its owner in CODEOWNERS. Your coding agent can draft one when asked, only from what you tell it, your documents and rules people confirmed, and never fills a rule from the code.

Does a draft block anything?

No. Until one of its owners approves it, a draft binds nobody: its breaks are marked "would block", and its page says nothing is blocked today.

Does it stop my agent from editing?

Not for good. The first edit in a session to a covered file is refused once, with the record in full, so the agent reads it. Made again, the edit goes through, and the record's rules are checked after it. Changes made through the shell are covered too: the first obvious shell write to a covered file is stopped the same way, and after any shell command that changed a covered file, the agent gets that file's rules. The pre-PR check still holds a change that breaks a rule, whatever tool made it.

What does the pre-PR check hold, and what clears it?

It holds a change at a place where an approved rule breaks: the line the break is recorded on, from five lines above to thirty below, not any change to the file. It clears by fixing the code at that place, a person's dated exception for that rule and place (bravos records except), or changing the record and having the new text approved. A line in the PR body saying the rule was kept is shown to the reviewer as the author's claim, and does not clear it.

Which coding agents does it work in?

Claude Code, Codex, Cursor, Antigravity, opencode and oh-my-pi (omp) show the record before an edit, check it after, and run the pre-PR check when you turn it on. Any agent can read the record itself: it is a plain file in your repository.

Which plan is it on?

Reading and following records is on every plan, and the dashboard shows their text and history on Free. Writing a new record, approving one, and each rule's status are on Team.

Write your first record.

Install the CLI, run bravos setup in your repository, then ask your agent for SDR-0, or run bravos records new --app.

npm install -g @bugb-technologies/bravos

Open your project in your coding agent, then paste this.

Bring any model
  • Claude
  • OpenAI Codex
  • Mistral
  • GLM (Zhipu)
  • DeepSeek
  • Meta Llama
  • NVIDIA
  • Groq
and more

Everything Bravos does