Skip to content

test(webevidence): Porter's evidence through lodge (plan 0007, Phase 4) - #117

Merged
bketelsen merged 3 commits into
mainfrom
irulan/0007-phase4-porter-evidence
Oct 29, 2026
Merged

bketelsen merged 3 commits into
mainfrom
irulan/0007-phase4-porter-evidence

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Plan 0007, Phase 4: "Evidence through lodge". make m4-evidence gains Porter's run, and make porter-evidence runs it alone.

What.

  • internal/webevidence/porter_integration_test.go, TestIPorterThroughLodge: lodge's development build issues 2 tokens of Porter's scope (vault=1;write=Porter/;except=Porter/Routines/;daily) with lodgectl token issue: porter-notes-tailnet for the loopback listener, and porter-notes (--agent, the test's user) for the agent socket. The MCP SDK's client then works through each route:
    • writes Porter/Memory.md and Porter/Briefs/<date>.md;
    • is refused at Porter/Routines/ in 2 case spellings (edit and create) and at a user's note (Garden.md), with the scope's message, and the refused notes stay byte for byte;
    • appends to today's daily note (created from the template on the first route);
    • every version it writes has source agent and names its token.
    • Each token is 401 on the other route.
  • Makefile: LODGE_E2E_REF moves from c48d43a to lodge e76a17c, the first ref with the agent socket and lodgectl --agent. New target porter-evidence.
  • Docs: plan 0007 records the run and answers its agent-socket question; AGENTS.md status and map.

Evidence (2026-10-28, in the nsl machine frostnotes, Debian 13, nsl v0.11.0, on the team VM):

  • make porter-evidence: PASS (listener and agent-socket subtests).
  • make app-build, then make m4-evidence: PASS. All 4 tests pass at the new lodge ref: TestIPorterThroughLodge, TestIWebAppInLodge (desktop 1232, phone 390), TestIPhoneEditReachesTheDesktop (p95 1.035 s over 20 edits), TestIRenderedNotesRunNoScript.
  • make check: green.

Not in this PR. Phase 4's "done when" also needs Brian to issue Porter's token on the real hub; that stays with him.

Coder: github-copilot/claude-sonnet-5.5 (subagent), with edits by the parent; parent: Irulan.

@frostyard-machines
frostyard-machines marked this pull request as ready for review October 29, 2026 01:39
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Oct 29, 2026
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Cross-review: openai/gpt-6.1-sol (coder github-copilot/claude-sonnet-5.5, parent edits github-copilot/claude-opus-5.5). Initial review at 2a88304: 2 blocking findings (every version's author and source; invalidParams on a refusal), both fixed. Re-review 1 at 2225e07: Ready, blocking: none. make porter-evidence re-run in nsl at 2225e07: PASS. CI green at 2225e07.

@bketelsen
bketelsen merged commit 5684ddd into main Oct 29, 2026
9 checks passed
@bketelsen
bketelsen deleted the irulan/0007-phase4-porter-evidence branch October 29, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants