Files
AiSOC/docs/trust
Beenu Arora 41d31ea185 docs(security): a buyer security pack, with a gate that keeps its claims true (depth 8.3) (#1210)
* docs(security): a buyer security pack, with a gate that keeps its claims true (depth 8.3)

`docs/security/` held three threat models and an advisory draft — good
documents, and not the set a procurement review asks for. It now also carries
architecture and data-flow diagrams, data handling per deployment mode, a
completed security questionnaire with its gaps collected in one table, and a
sub-processor page.

The pack's rule is that every statement names the file or the CI job that
makes it true, and that where a control is narrower than its heading sounds
the limit sits in the same paragraph. So it says plainly that service-to-
service traffic is plaintext inside the container network on the default
stack, that `/metrics` covers 5 of 19 services, and that the injection guard
scores 7.1% on held-out payloads against 98.1% on the corpus it was hardened
against.

There is no verified sub-processor list for the hosted service in this
repository, so that page does not invent one. It says what can be established
(for self-hosting: none, by construction, with three gates behind it), what
cannot, and what a maintainer has to supply.

`scripts/check_security_pack_links.py` keeps the pack from rotting. On its
first run it caught this pack repeating ADR-0002's assertion that
`scripts/audit_compliance_claims.py` exists — it never has.

Also corrects `docs/trust/data-flows.md`, which said hosted egress is not
pseudonymized and, in the same paragraph, that it was restored by parity 2.4.
The second is true; the page understated a shipped control on the question a
buyer cares most about, and two further statements were stale the same way.

* docs: re-derive the claim-to-gate count after adding the security-pack row

`readme_gates.py` cross-checks the summary block in
`CLAIM_TO_GATE_MATRIX.md` against the rows actually in the table, and
the two surfaces that quote the figure in prose against both. Adding a
row for the buyer security pack moved the table to 291 and left three
hand-written 290s behind, which is precisely the staleness the gate
exists to catch.

Recomputed with `scripts/check_claim_gate_matrix.py` rather than edited
by hand, in the three places that carry it: the matrix summary, the
ROADMAP paragraph, and the evidence-pack table note -- the last of
which tells the reader, in the sentence immediately below the number,
to re-read it from the table rather than from there.

* docs: re-derive the claim-to-gate figure after the merge moved the base

`main` gained a row while this branch was open, so the count the
evidence pack quotes went stale in the direction the gate exists to
catch -- it claimed 289 GATED against a table holding 290.

Recomputed with `scripts/check_claim_gate_matrix.py`. The sentence
immediately below the number already tells the reader to re-read it
from the table rather than from there, which is the right instruction
and the reason this is the second time it has had to be followed.
2026-10-08 05:52:00 +05:30
..