agent-security-hardening
AFaffaan-m/ECC314k4,125 new stars in the last 7 days
Deep-dive a SINGLE key decision. Frame the question, weigh the candidate options honestly, and land a defensible answer in a local draft. Once the user decides it, append one entry to docs/design/decisions.md, or update the entry it re-answers. Use when you need to rigorously decide one thing, such as "which X should we use", "should we do A or B", "evaluate the tradeoffs of ...", or "make the call on ...".
Take one decision and analyze it to the bottom. Frame the real question, enumerate the candidate options, weigh each honestly, and recommend an answer with its cost stated.
The work has two outputs, and they live in different places:
| Output | Where | Committed? |
|---|---|---|
| The analysis: options, criteria, measurements, recommendation | .agents/drafts/kd/{YYYY-MM-DD}-{slug}.md | No. .gitignore holds /.agents/drafts/. |
| The decided entry | one entry in docs/design/decisions.md | Yes, and only after the user decides. |
An entry records a constraint that future work must respect: a "never", an "only", or a trade-off between two goals (safety, operator effort, a frozen surface) that a later change could pick differently by accident. Write one only when it decides a change to a different feature, verb, or key than the one it came from. Judge it by its title and first sentence.
Test: "Which change to another part of Box does this entry refuse or redirect?"
These are not entries:
A choice that fails the test is one to three sentences in the pull request body: the choice and why, and, where it helps, what was tried first or what it costs.
/kd <the decision>
Examples:
/kd which isolation primitive should back the box on Linux/kd should the egress gateway do static or semantic outbound control/kd how is temporal history storeddecisions.md already owns this question. Search it by topic, not by
wording. If an entry answers it, this run re-answers that entry. See
Re-answering an entry..agents/drafts/kd/{YYYY-MM-DD}-{slug}.md, in the
draft shape. Status is Proposed.Decided, write the entry
in the entry shape, and report the anchor.An agent never decides on the user's behalf. A recommendation is not a decision, and the user's silence is not approval.
The draft is where the argument lives, so it can be as long as the analysis needs.
# {The question}
**Status:** Proposed | Decided {YYYY-MM-DD}
**Owns or re-answers:** {new | decisions.md#{anchor}}
## Why this is hard
## Options
## Criteria, and which option wins each
## Evidence
## Recommendation, and its cost
An entry states the decision, not the argument. New and rewritten entries use this shape. An existing entry in another shape keeps it until a change rewrites that entry.
<a id="no-connection-is-opaque-to-the-boundary"></a>
### The gateway terminates every connection, so no tunnel is opaque
The gateway always terminates TLS, so an interceptor sees each request and each response. Every
connection raises `http:request`, and policy decides it.
**Rejected.** Opaque tunnelling, splicing, or raw byte copying: the boundary cannot read that
plaintext, so the connection would skip authorization.
**Cost.** A box cannot reach a plaintext or non-HTTP upstream over `CONNECT`.
Premises, The box, Policy,
Containment, Interpreters, Egress, Credentials, or Telemetry. Keep the list at the top
of the page in step with the sections.docs/design/decisions.md#{slug}.Rejected. is the alternative that lost and why, in one sentence. Add a second only when a
reader would really propose it. If it was tried and reverted, say so.Cost. is what the decision costs: a limitation, a residual risk, or a thing a contributor
must not do. Leave it out only when there is none.Rewrite the entry to state what is now true. Do not append a second entry beside it. A reader who must assemble one decision from a stale entry plus its correction reads the design wrong.
<a id="…"> anchor unchanged, even when the title changes. Code links to it.Rejected., and every cost the change makes false, in the
entry shape. A title that names a deleted mechanism is the first thing a reader
trusts and the first thing that misleads. If the old answer is now the rejected one, say it was
tried and why it failed..agents/drafts/ is gitignored, so the link is dead for
every other reader and every clone. State the answer and its cost well enough that no reader
needs the draft.file.rs:LINE. Name the symbol, the type, or the test. A line number rots on
the next edit above it.decisions.md is decided by being there. The log can lag the code, and the code is
the authority where the two disagree.AFaffaan-m/ECC314k4,125 new stars in the last 7 days
Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.
DIDietrichGebert/ponytail202k4,780 new stars in the last 7 days
GAgarrytan/gstack143k636 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,627 new stars in the last 7 days
RUruvnet/RuView106k693 new stars in the last 7 days