docs(adr): state held-by on every layer and tighten the register

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-21 22:10:14 +00:00
1 parent e36872c255
commit 3ddbc751b5
2 files changed
+45 -57

No files matched your search

+22 -30
View File
@@ -30,19 +30,18 @@ reduction. A later decision that accepts a risk adds an entry here.
every account. Cheap measure: an unattended agent acts only on `Status/Ready for Agent`
issues opened by the maintainer, a trusted contributor or an agent account, never adds that
label itself, and treats issue text as data ([rule](docs/agents/issue-tracker.md)).
- **Trigger:** an account the maintainer did not create can write issues or comments, or a
first injection is suspected; or the release bot's secret is stored.
- **Planned reduction:** none for now; decided again at either trigger.
- **Triggers**, the two moments to decide again: (1) an account the maintainer did not create
can write issues or comments, or a first injection is suspected; (2) the release bot's
secret is stored.
- **Planned reduction:** none for now.
### Every write-capable token reaches the secrets
- **Risk:** least privilege limits a token's API scope and merge rights, not its reach: any
write-capable token (humans, the agent account, Renovate, the release bot) can push a
branch whose workflow reads every secret this repository's workflows can reach.
- **Why accepted:** write access goes only to people and bots trusted with the secrets, and
every secret is rotated when a writer is removed or a token leaks.
- **Trigger:** ephemeral runners, or secrets scoped to environments, become available.
- **Planned reduction:** none planned beyond the trigger.
- **Risk:** see the trust boundary in [ADR 0001](docs/adr/0001-threat-model.md).
- **Why accepted:** write access goes only to those trusted with the secrets, and every
secret is rotated when a writer is removed or a write-capable token leaks.
- **Trigger:** ephemeral runners, or secrets scoped to environments, are adopted.
- **Planned reduction:** none beyond the trigger.
### Shared runner
@@ -50,12 +49,11 @@ reduction. A later decision that accepts a risk adds an entry here.
the Renovate token. A Molecule job runs as root and can plant code in the cached molecule
virtualenv and collection cache that later jobs, the privileged ones included, reuse.
- **Why accepted:** only trusted contributors' runs execute on it. The runner is to be
registered for this repository only, never for the organisation; another repository in the
organisation (the skills source) runs on a runner sharing no host, Docker daemon, cache or
filesystem with it and shares no secret with it. That repository's content reaches this one
registered for this repository only, never for the organisation. Another repository in the
organisation (the skills source) is to run on a runner sharing no host, Docker daemon, cache
or filesystem with it, and to share no secret with it; its content reaches this repository
only through the content re-check and code-owner review of `.claude/`.
- **Trigger:** ephemeral runners become available.
- **Planned reduction:** ephemeral runners, a clean host per privileged job.
- **Trigger and planned reduction:** ephemeral runners, a clean host per privileged job.
### Required checks can be satisfied by a posted commit status
@@ -63,18 +61,14 @@ reduction. A later decision that accepts a risk adds an entry here.
not check that Actions posted them, and the commit status API needs only code write. A
leaked bot or agent token could post `success` for Lint, Build and Molecule on its own
branch. Not tested on this server.
- **Why accepted:** a compromised bot or agent token is defended by cheap measures only
(ADR 0001, actors).
- **Trigger:** none set.
- **Planned reduction:** none planned.
- **Why accepted:** a compromised bot or agent token gets cheap measures only (ADR 0001).
- **Trigger and planned reduction:** none; accepted as is.
### Agent-side hooks are a convenience, not a control
- **Risk:** agent-side hooks bind only Claude Code and can be switched off locally.
- **Why accepted:** server-side controls (branch protection, CI) hold the rules; the hooks
only catch mistakes earlier.
- **Trigger:** none set.
- **Planned reduction:** none planned.
- **Why accepted:** server-side controls (branch protection, CI) hold the rules.
- **Trigger and planned reduction:** none; accepted as is.
### Release assets and tags
@@ -83,10 +77,9 @@ reduction. A later decision that accepts a risk adds an entry here.
tag message's sha256 catches a swap by any writer except the release bot, so a leaked
release-bot token can replace a release unreviewed. This is why tag protection alone does
not guard releases once a release token exists.
- **Why accepted:** artifact signing is not done; consumers who need more pin the git route
to a commit.
- **Trigger:** none set.
- **Planned reduction:** none planned.
- **Why accepted:** no artifact signing; consumers who need more pin the git route to a
commit.
- **Trigger and planned reduction:** none; accepted as is.
### Release tarball file modes
@@ -94,8 +87,7 @@ reduction. A later decision that accepts a risk adds an entry here.
Collection metadata, but not file modes. A writer who swaps the release tarball can change
a file's exec bit undetected.
- **Why accepted:** the Collection ships roles only.
- **Trigger:** none set.
- **Planned reduction:** none planned.
- **Trigger and planned reduction:** none; accepted as is.
### A push onto a Renovate pull request that has a scheduled merge
@@ -105,4 +97,4 @@ reduction. A later decision that accepts a risk adds an entry here.
approval, which a push dismisses; every account that can push there already reaches every
secret. There is no `renovate/*` push allowlist.
- **Trigger:** a token that can push here but cannot reach the secrets.
- **Planned reduction:** none planned.
- **Planned reduction:** none for now.