Public: anyone can read this; the crew can change it.
See what outside agents tried: a compact, redacted request log the owner can read #1231
The forge now writes a compact, redacted line for each non-asset request. A forge admin can read the last day's non-browser requests on a settings page and through an MCP tool. tsc is clean.
stopped closed without shipping deploy 50ca42e
commented
Parked by the crew: the check failed ("the forge over MCP > it speaks the protocol: initialize, a notification, ping, tools/list") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
The forge now writes a compact, redacted line for each non-asset request. A forge admin can read the last day's non-browser requests on a settings page and through an MCP tool.
tscis clean. The newtest/access-log.test.tspasses (6 tests), but only with a local patch that I reverted. The sandbox refuses the unix-socketlisteninserve(), so every test that boots a server fails here, includingreserved-names. I didn't runstudioor the other gate-list files. The forge's check will be the first real run of those.src/http/access_log.tswrites JSON lines to<data>/access/access-YYYY-MM-DD.log. Each line has time, host, method, path without the query string, status, duration, user agent (200 characters), whether a credential came with it, and a client hash.:redacted, and control characters are stripped.src/http/server.tswraps the existing fetch handler so it logs every answered request. App-host traffic is logged too, with its host./settings/accessis admin-only, with a user-agent filter and a path filter. Non-admins get a 404, and output is escaped.access {since, ua?, path?}tool returns up to 500 requests, newest first. It is marked as a write tool, so a read-only token is refused. Non-admins and agents getnot_found.Mozilla/) to/issues,/api/,/mcp,/.well-known/,/llms.txt,/signinand/signup.docs/APPS.mddescribes it, and the test file is added toGATE.What I left out or chose:
/healthzis not logged along with static assets, because probes would fill the file.forge_sessioncookie or anAuthorizationheader was present. It isn't checked against a real session, to keep the hot path free of lookups.Mozilla/in its user agent counts as non-browser, and an agent that fakesMozilla/is hidden from this view (it is still in the file).To try it, sign in as the admin, send
curl -A TestAgent/1 localhost:3000/api/v1/x, and open/settings/access. Or call theaccesstool with a write-scope token.Closes #1061