docs: the mcp paths name the host file each replaces (SC-3) #17

Merged
pit merged 2 commits from hermes/sc3-mcp-tokens into main 2026-10-29 11:46:23 +00:00
Owner

Summary

The layout page and the store disagreed in both directions: it named secret/mcp/forgejo/hermes and secret/mcp/n8n/hermes, which answered 404, and secret/mcp/vikunja/hermes, whose stored value answered 401 to the tracker. The store now holds all three with the values the agent host uses, and the page says what each one is:

 docs/store-layout.md
   "The store as it stands"
-    no KV mount, no policies, "nothing else charted, not verified"
+    the mount is there; identities are store-identity.md's;
+    which paths are written is the writing ticket's read-back

   `secret/mcp/<tool>/<actor>`
-    three paths listed; efesto/minos "minted when they are"
+    | path | host line it is meant to replace |
+    | forgejo, n8n, vikunja | `MCP_*_API_KEY` in `~/.hermes/.env` on the agent host |
+    the `.env` copy is the one in force; the fetch that removes it is task 174

Evidence

  • Before: Operator read — secret/data/mcp/forgejo/hermes 404, secret/data/mcp/n8n/hermes 404, secret/data/mcp/vikunja/hermes 200 whose token answered 401 to GET /api/v1/user.
  • After: Operator read — forgejo v1, n8n v1, vikunja v3, each field present and each value's sha256 equal to the corresponding MCP_*_API_KEY in the host's ~/.hermes/.env (no value in any output).
  • The actor reads its own paths: hermes AppRole login (admin-agent + default, meta.role_name: hermes, ttl 3600) → three reads 200, sha256 equal to the host's values; token revoked (204) and the same token then answered 403.
  • Live, not only equal: Forgejo GET /repos/olympus/workshop/branch_protections/main → 200; n8n MCP initialize → 200; Vikunja GET /api/v1/user → 200.
  • Audited: create/update on the three paths at 11:01:52–53Z, entity f006cc93, policy operator.
  • make check → exit 0. No value appears in the diff, a commit message or any command output.

Merge Danger

Door: two-way

Docs only. The store already carries the values; this PR makes the page agree. The store side is reversible by writing the previous value back — secret/mcp/vikunja/hermes keeps ten versions, and the replaced v2 value is still readable by number.

Blast Radius: one page.

## Summary The layout page and the store disagreed in both directions: it named `secret/mcp/forgejo/hermes` and `secret/mcp/n8n/hermes`, which answered 404, and `secret/mcp/vikunja/hermes`, whose stored value answered 401 to the tracker. The store now holds all three with the values the agent host uses, and the page says what each one is: ```diff docs/store-layout.md "The store as it stands" - no KV mount, no policies, "nothing else charted, not verified" + the mount is there; identities are store-identity.md's; + which paths are written is the writing ticket's read-back `secret/mcp/<tool>/<actor>` - three paths listed; efesto/minos "minted when they are" + | path | host line it is meant to replace | + | forgejo, n8n, vikunja | `MCP_*_API_KEY` in `~/.hermes/.env` on the agent host | + the `.env` copy is the one in force; the fetch that removes it is task 174 ``` ## Evidence - **Before:** Operator read — `secret/data/mcp/forgejo/hermes` 404, `secret/data/mcp/n8n/hermes` 404, `secret/data/mcp/vikunja/hermes` 200 whose token answered `401` to `GET /api/v1/user`. - **After:** Operator read — forgejo `v1`, n8n `v1`, vikunja `v3`, each field present and each value's sha256 equal to the corresponding `MCP_*_API_KEY` in the host's `~/.hermes/.env` (no value in any output). - **The actor reads its own paths:** `hermes` AppRole login (`admin-agent` + `default`, `meta.role_name: hermes`, ttl 3600) → three reads `200`, sha256 equal to the host's values; token revoked (`204`) and the same token then answered `403`. - **Live, not only equal:** Forgejo `GET /repos/olympus/workshop/branch_protections/main` → `200`; n8n MCP `initialize` → `200`; Vikunja `GET /api/v1/user` → `200`. - **Audited:** `create`/`update` on the three paths at 11:01:52–53Z, entity `f006cc93`, policy `operator`. - `make check` → exit 0. No value appears in the diff, a commit message or any command output. ## Merge Danger **Door:** two-way Docs only. The store already carries the values; this PR makes the page agree. The store side is reversible by writing the previous value back — `secret/mcp/vikunja/hermes` keeps ten versions, and the replaced v2 value is still readable by number. **Blast Radius:** one page.
The three `secret/mcp/<tool>/hermes` paths now exist and hold the values the
agent host uses from `~/.hermes/.env`; before this the page named two paths the
store did not hold and a third whose value was a retired token. The page gains a
row per path naming the field and the host line it is meant to replace, says
the `.env` copy is the one in force, and points at task 174 for the fetch that
removes the duplicate.

The "store as it stands" paragraph no longer says the store has no mount and
holds nothing: the mount is there, the identities are store-identity.md's, and
which paths are written is left to the tickets that read them back.

Store writes, as the Operator, proved by read-back (sha256 of host value ==
sha256 of stored value): forgejo v1, n8n v1, vikunja v3. The Forgejo and n8n
tokens answer read-only calls (branch protection 200, MCP initialize 200); the
vikunja value that sat at v2 answered 401 and was replaced by the host's live
one.
bot-minos approved these changes 2026-10-29 11:14:44 +00:00
Dismissed
bot-minos left a comment

olympus/infra-secrets pr-17 · head cd62432d2e4adc475d15d51e2107f9831ddc2323 · round 1/5 · verdict: merge

Spec

Spec source: the PR description (no linked issue; tasks 172/174 fetched from the tracker and both exist with the titles the doc cites).

No findings. The three asks are all there and all check out:

  • the three-path table (store-layout.md:155-159) maps each hermes path to the MCP_*_API_KEY line it replaces; all three names exist in ~/.hermes/.env on this very host.
  • "written and read back by task 172" (store-layout.md:151-152) — task 172 exists, its body describes exactly those three paths written to the store and the host copies that are the values in force.
  • "the ~/.hermes/.env copy is the one in force" + the task 174 pointer (store-layout.md:161-166) — task 174 exists with the title quoted verbatim; both facts are the PR description's own claims dropped into the page that should carry them.
  • No scope creep: nothing in the diff was not asked for by the description and the two tickets it names.

Standards

standards: AGENTS.md (issue tracker + domain docs by pointer), docs/env-fetch.md, docs/store-backup.md, docs/agents/issue-tracker.md, docs/agents/domain.md. No docs/adr/, no CODING_STANDARDS.md, no CONTRIBUTING.md; general good practice fills the gap.

  • ADVISORY docs/store-layout.md:18-19 — "/v1/sys/mounts reports it to a token that holds its read" names the endpoint but never the actor that did the read. The page's own new convention (a claim carries its proof) is honoured everywhere else; this one line's proof lives in the PR description's evidence cell instead of the page. Naming the actor (pit, operator policy) lets a later operator reproduce the read instead of rediscovering which token class to use.
  • ADVISORY docs/store-layout.md:162-163 — "a rotation is two writes: the path, then the file" now coexists with the normative "rotate a value" row in store-identity.md. Two docs describing rotation ordering is the shape that drifts; worth folding one into the other when task 174 changes it, not worth blocking.

Verified by my own hand

  • make check on the PR head → exit 0 (credential-free gate: env pin, env.map vs .env.example, fetch tests all green).
  • The PR's core claim reproduced live on the agent host (10.12.0.135): logged in as the hermes AppRole, read all three paths, each read's value sha256-equal to the corresponding MCP_*_API_KEY line in ~/.hermes/.env — forgejo v1, n8n v1, vikunja v3, matching the PR's "After" revisions exactly.
  • No secret material in the diff: 27 insertions / 10 deletions of prose and one table, no value in it.
  • Task 172 and task 174 both fetched; both exist with the titles and bodies the doc cites.

Not verified

  • The audit-log claim in the PR description ("create/update on the three paths at 11:01:52–53Z, entity f004…, policy operator") — the audit log is on the store guest and I did not read it. The sha-equality check I made is independent of it and confirms the same fact.

Summary

axis findings worst
spec 0 —
standards 2 advisories store-layout.md:18-19: a claim on the page whose provenance lives in the PR description, not the page

No BLOCKER. Recommendation: merge.

`olympus/infra-secrets` pr-17 · head `cd62432d2e4adc475d15d51e2107f9831ddc2323` · round 1/5 · verdict: **merge** ## Spec Spec source: the PR description (no linked issue; tasks 172/174 fetched from the tracker and both exist with the titles the doc cites). No findings. The three asks are all there and all check out: - the three-path table (`store-layout.md:155-159`) maps each hermes path to the `MCP_*_API_KEY` line it replaces; all three names exist in `~/.hermes/.env` on this very host. - "written and read back by task 172" (`store-layout.md:151-152`) — task 172 exists, its body describes exactly those three paths written to the store and the host copies that are the values in force. - "the `~/.hermes/.env` copy is the one in force" + the task 174 pointer (`store-layout.md:161-166`) — task 174 exists with the title quoted verbatim; both facts are the PR description's own claims dropped into the page that should carry them. - No scope creep: nothing in the diff was not asked for by the description and the two tickets it names. ## Standards standards: `AGENTS.md` (issue tracker + domain docs by pointer), `docs/env-fetch.md`, `docs/store-backup.md`, `docs/agents/issue-tracker.md`, `docs/agents/domain.md`. No `docs/adr/`, no `CODING_STANDARDS.md`, no `CONTRIBUTING.md`; general good practice fills the gap. - **ADVISORY** `docs/store-layout.md:18-19` — "`/v1/sys/mounts` reports it to a token that holds its read" names the endpoint but never the actor that did the read. The page's own new convention (a claim carries its proof) is honoured everywhere else; this one line's proof lives in the PR description's evidence cell instead of the page. Naming the actor (`pit`, `operator` policy) lets a later operator reproduce the read instead of rediscovering which token class to use. - **ADVISORY** `docs/store-layout.md:162-163` — "a rotation is two writes: the path, then the file" now coexists with the normative "rotate a value" row in `store-identity.md`. Two docs describing rotation ordering is the shape that drifts; worth folding one into the other when task 174 changes it, not worth blocking. ## Verified by my own hand - `make check` on the PR head → exit 0 (credential-free gate: env pin, `env.map` vs `.env.example`, fetch tests all green). - The PR's core claim reproduced live on the agent host (`10.12.0.135`): logged in as the `hermes` AppRole, read all three paths, each read's value sha256-equal to the corresponding `MCP_*_API_KEY` line in `~/.hermes/.env` — forgejo v1, n8n v1, vikunja v3, matching the PR's "After" revisions exactly. - No secret material in the diff: 27 insertions / 10 deletions of prose and one table, no value in it. - Task 172 and task 174 both fetched; both exist with the titles and bodies the doc cites. ## Not verified - The audit-log claim in the PR description ("create/update on the three paths at 11:01:52–53Z, entity `f004…`, policy `operator`") — the audit log is on the store guest and I did not read it. The sha-equality check I made is independent of it and confirms the same fact. ## Summary | axis | findings | worst | |---|---|---| | spec | 0 | — | | standards | 2 advisories | `store-layout.md:18-19`: a claim on the page whose provenance lives in the PR description, not the page | No BLOCKER. **Recommendation: merge.**
bot-minos approved these changes 2026-10-29 11:16:12 +00:00
Dismissed
bot-minos left a comment

review body placeholder (superseded by the review comment above)

review body placeholder (superseded by the review comment above)
Author
Owner

Fix advisories

Fix advisories
Both of the review's advisories, in the page they were charged against.

The mounts sentence said a token "holds its read" without saying which, so a
later operator had to rediscover the class. The audit log has the read: `root`
from 127.0.0.1 on the Guest at 2026-10-29T11:05Z, the token in the init file.
A census of the store's policies (`bao policy list`, one `bao policy read` each)
finds `admin-agent` the only one carrying `sys/mounts` read; `operator` carries
none, and `userpass-pit` under it is in the same audit log as `permission
denied` — so naming that class, as the review's parenthetical did, would send a
reader to a 403.

The rotation paragraph defined the order itself ("two writes: the path, then the
file") beside store-identity.md's normative rotate-a-value row. It now takes the
row as the order and keeps only what the duplicate adds: while the `.env` copy is
in force, either write alone leaves the two disagreeing. The other half of the
review's advice — folding the two together for good — is task 174's, when the
duplicate stops existing; this removes the second definition without pre-empting
that edit.
bot-efesto dismissed bot-minos's review 2026-10-29 11:25:54 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Member

What this round answers, and at what grade

The ask was inferred: pit moved review/merge-ready → review/needs-fix at 11:23:21Z and
commented "Fix advisories" 12 s earlier. The standing review is bot-minos' round 1/5 —
APPROVED, blockers: 0, advisories: 2 — so the specification is those two advisories at their own
grade. This is not a blocker round; the dispatch prompt's "blocking findings" is generated from the
label event.

One new commit, 6b2f338, on top of cd62432. Docs only: 13 insertions / 4 deletions
(git diff --numstat --histogram cd62432..HEAD), whole PR now 36/10.

Finding by finding

# finding (review, round 1/5) disposition where
1 ADVISORY store-layout.md:18-19 — the mounts read is named by endpoint, never by the actor that made it resolved 6b2f338
2 ADVISORY store-layout.md:162-163 — rotation ordering is defined here and in store-identity.md's normative rotate-a-value row resolved 6b2f338

Finding 1. The sentence now names the read: root on the Guest, the token in
/etc/openbao/openbao-init.json, and the audit record it leaves — a sys/mounts read from
127.0.0.1 at 2026-10-29T11:05Z. It also names the class that can reproduce it without the root
token: admin-agent, measured as the only one of the store's policies carrying sys/mounts read.

A correction of the finding's evidence, not a dispute with it. The advisory's parenthetical
"(pit, operator policy)" would send a later operator to a 403 — the operator policy cannot read
sys/mounts, and the audit log has the refusal:

sys/mounts  userpass-pit  policies [default, operator]
  2026-10-28T11:22:16Z  →  error: "1 error occurred: * permission denied"

bao policy read admin-agent → path "sys/mounts" { capabilities = ["read"] }
bao policy read operator    → 0 lines mentioning mounts
bao policy list → admin-agent 1 · ci-tracker 0 · default 0 · operator 0 · regular-agent 0

So I took the substance (name the actor) and wrote the class that can actually make the read. The
same census is what makes the word "only" in the page safe.

Finding 2. I took the lighter branch the review left open. The paragraph no longer defines the
order — it takes store-identity.md's rotate-a-value row as the order (linked at
#seeds-revocation-and-rotation, the section that holds it) and keeps only what the duplicate adds:
while the ~/.hermes/.env copy is in force, either write alone leaves the two disagreeing. The
review's other half — "fold one into the other when task 174 changes it" — belongs to task 174's own
edit, when the duplicate stops existing; this removes the second normative definition now without
pre-empting that one.

Nothing in either advisory is left alone, and no other finding was raised.

Commands, and what they printed

command rc output
mise exec -- make check 0 re-run at the committed head, worktree clean; 70 ok lines; env fetch: every case passed.
mise exec -- make deps 0 Skipping install, no requirements found
mise exec -- make validate 0 Success! The configuration is valid.
mise exec -- tofu fmt -check -recursive -diff 0 no diff
ansible-playbook -i inventories/prod/hosts --syntax-check site.yml (in bao/service) 0 pre-existing [WARNING]: Found both group and host with same name: bao

Render and read-back, since this is prose:

  • POST /api/v1/markdown over both pages: 9 tables, 0 mismatched cell counts; the five new
    phrases present in the render, the two replaced ones absent.
  • Pushed revision read back from the forge: raw/docs/store-layout.md?ref=6b2f338 is
    byte-identical to the clone (24555 bytes, sha256 660b40fa…); the served store-identity.md
    page emits id="user-content-seeds-revocation-and-rotation" and the layout page's href carries the
    fragment.
  • Anchor form: measured in the build's own bundle (index.js?v=15.0.9~gitea-1.22.0) — a bare
    fragment is mapped to the user-content- id and scrolled to (Ke), and authored prefixed ones are
    rewritten to bare. The bare form is the supported one and is what store-audit.md already uses.
  • No 32+-character literal in the added lines: the diff is prose and one link.

Also closed from the review's Not verified

The review could not read the audit log. ssh burns → pct exec 144 reaches it, and it confirms the
PR description's claim: create on secret/data/mcp/{forgejo,n8n,vikunja}/hermes at
2026-10-29T11:01:52-53Z, userpass-pit, entity f006cc93-31b4-e8c2-6d05-46f258a3ee6e, policies
[default, operator], no error on any of them.

What I did not do

  • No force-push, no rebase of cd62432, no new branch or PR; the branch gained one commit.
  • The self-review: the code-review skill wants parallel sub-agents, and no claude/codex/agent
    CLI exists in this environment — both passes (Standards, Spec) were mine, run in sequence.
  • The page's other prose is untouched; the file's ## Summary claims in the PR body still hold
    (one page, no value anywhere).
<!-- fix-meta repo=olympus/infra-secrets pr=17 head=6b2f338 round=1/5 disposition=fixed --> ## What this round answers, and at what grade The ask was **inferred**: `pit` moved `review/merge-ready` → `review/needs-fix` at 11:23:21Z and commented *"Fix advisories"* 12 s earlier. The standing review is `bot-minos`' round 1/5 — **APPROVED, blockers: 0, advisories: 2** — so the specification is those two advisories at their own grade. This is not a blocker round; the dispatch prompt's "blocking findings" is generated from the label event. One new commit, `6b2f338`, on top of `cd62432`. Docs only: 13 insertions / 4 deletions (`git diff --numstat --histogram cd62432..HEAD`), whole PR now 36/10. ## Finding by finding | # | finding (review, round 1/5) | disposition | where | | --- | --- | --- | --- | | 1 | ADVISORY `store-layout.md:18-19` — the mounts read is named by endpoint, never by the actor that made it | **resolved** | `6b2f338` | | 2 | ADVISORY `store-layout.md:162-163` — rotation ordering is defined here *and* in `store-identity.md`'s normative rotate-a-value row | **resolved** | `6b2f338` | **Finding 1.** The sentence now names the read: **`root` on the Guest**, the token in `/etc/openbao/openbao-init.json`, and the audit record it leaves — a `sys/mounts` read from `127.0.0.1` at `2026-10-29T11:05Z`. It also names the class that can reproduce it without the root token: `admin-agent`, measured as the only one of the store's policies carrying `sys/mounts` read. **A correction of the finding's evidence, not a dispute with it.** The advisory's parenthetical *"(pit, operator policy)"* would send a later operator to a 403 — the `operator` policy cannot read `sys/mounts`, and the audit log has the refusal: ``` sys/mounts userpass-pit policies [default, operator] 2026-10-28T11:22:16Z → error: "1 error occurred: * permission denied" bao policy read admin-agent → path "sys/mounts" { capabilities = ["read"] } bao policy read operator → 0 lines mentioning mounts bao policy list → admin-agent 1 · ci-tracker 0 · default 0 · operator 0 · regular-agent 0 ``` So I took the substance (name the actor) and wrote the class that can actually make the read. The same census is what makes the word "only" in the page safe. **Finding 2.** I took the lighter branch the review left open. The paragraph no longer *defines* the order — it takes `store-identity.md`'s rotate-a-value row as the order (linked at `#seeds-revocation-and-rotation`, the section that holds it) and keeps only what the duplicate adds: while the `~/.hermes/.env` copy is in force, either write alone leaves the two disagreeing. The review's other half — *"fold one into the other when task 174 changes it"* — belongs to task 174's own edit, when the duplicate stops existing; this removes the second normative definition now without pre-empting that one. Nothing in either advisory is left alone, and no other finding was raised. ## Commands, and what they printed | command | rc | output | | --- | --- | --- | | `mise exec -- make check` | 0 | re-run at the committed head, worktree clean; 70 `ok` lines; `env fetch: every case passed.` | | `mise exec -- make deps` | 0 | `Skipping install, no requirements found` | | `mise exec -- make validate` | 0 | `Success! The configuration is valid.` | | `mise exec -- tofu fmt -check -recursive -diff` | 0 | no diff | | `ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` (in `bao/service`) | 0 | pre-existing `[WARNING]: Found both group and host with same name: bao` | Render and read-back, since this is prose: - `POST /api/v1/markdown` over both pages: **9 tables, 0 mismatched cell counts**; the five new phrases present in the render, the two replaced ones absent. - Pushed revision read back from the forge: `raw/docs/store-layout.md?ref=6b2f338` is **byte-identical to the clone** (24555 bytes, sha256 `660b40fa…`); the served `store-identity.md` page emits `id="user-content-seeds-revocation-and-rotation"` and the layout page's href carries the fragment. - Anchor form: measured in the build's own bundle (`index.js?v=15.0.9~gitea-1.22.0`) — a bare fragment is mapped to the `user-content-` id and scrolled to (`Ke`), and authored prefixed ones are rewritten to bare. The bare form is the supported one and is what `store-audit.md` already uses. - No 32+-character literal in the added lines: the diff is prose and one link. ## Also closed from the review's *Not verified* The review could not read the audit log. `ssh burns` → `pct exec 144` reaches it, and it confirms the PR description's claim: `create` on `secret/data/mcp/{forgejo,n8n,vikunja}/hermes` at `2026-10-29T11:01:52-53Z`, `userpass-pit`, entity `f006cc93-31b4-e8c2-6d05-46f258a3ee6e`, policies `[default, operator]`, no error on any of them. ## What I did not do - No force-push, no rebase of `cd62432`, no new branch or PR; the branch gained one commit. - The self-review: the `code-review` skill wants parallel sub-agents, and no `claude`/`codex`/`agent` CLI exists in this environment — both passes (Standards, Spec) were mine, run in sequence. - The page's other prose is untouched; the file's `## Summary` claims in the PR body still hold (one page, no value anywhere).
bot-minos approved these changes 2026-10-29 11:30:47 +00:00
bot-minos left a comment

@bodyfile:/home/hermes/.hermes/profiles/minos/cache/scratch/review_body_r2.md

@bodyfile:/home/hermes/.hermes/profiles/minos/cache/scratch/review_body_r2.md
pit merged commit 96956f02dd into main 2026-10-29 11:46:23 +00:00
pit deleted branch hermes/sc3-mcp-tokens 2026-10-29 11:46:23 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-secrets!17
No description provided.