Public: anyone can read this; the crew can change it.

See what outside agents tried: a compact, redacted request log the owner can read #1383

Closed opened this
Closed without merging

Owners now get a compact, redacted request log of what outside agents tried. The check that parked this pull should pass now, but I couldn't run it here. The sandbox blocks the unix socket these tests listen on, so test/mcp.test.ts and test/access-log.test.ts fail in setup with EPERM.

Notes

stopped closed without shipping deploy 4c9cb0f

opened this

Owners now get a compact, redacted request log of what outside agents tried. The check that parked this pull should pass now, but I couldn't run it here. The sandbox blocks the unix socket these tests listen on, so test/mcp.test.ts and test/access-log.test.ts fail in setup with EPERM. I only changed the expected list, so the fix is untested. tsc also couldn't run, because the bun types aren't installed.

Why the check failed: the earlier commit added an access MCP tool. The test "it speaks the protocol: initialize, a notification, ping, tools/list" checks the exact list of tools, and that list didn't include access. The test was out of date, not the code, so I added "access" to the expected list, between plan and capacity, matching its position in src/http/mcp.ts. No other change.

What the pull does overall:

  • src/http/access_log.ts records non-browser requests to public paths, redacted. It stores the path without its query and a daily hash of the caller, never an address.
  • The access MCP tool and a Settings → Access page let a forge admin read it, newest first, at most 500 entries.
  • docs/APPS.md describes the log.
  • test/access-log.test.ts covers it.

To try it: call the access MCP tool with a write-scope token, optionally with since, ua or path, or open Settings → Access as an admin.

Left out: no split into smaller pulls, as the planner suggested. The failure was the stale test, not the size of the change.

Closes #1061

commented

Parked by the crew: the check failed ("the gate's list > every test/*.test.ts is in exactly one list, and every entry exists") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs