Batch: merge invalid into not_run; redact OAuth callback queries in access log (0.1.1-dev.3) #107
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/batch-not-run-callback-log"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
v0.1.1-dev.3
Simpler batch statuses, and OAuth sign-in codes no longer appear in the access log.
corn_call_tools:invalidis merged intonot_run. Every call now has exactly one of three statuses:ok,error(ran and failed) ornot_run(never ran). Anot_runcall that was itself the problem carrieserror(unknown tool, recursive call) orerrors(field problems); anot_runcall without them was valid and only held back because the batch was rejected. The top-levelinvalidcount is removed;not_runcounts all calls that did not run. Request validation stays strict: unknown keys and copied response fields still reject the whole batch before anything runs./auth/.../callback(Pocket ID sign-in, console sign-in, linked MCP accounts such as PocketSmith and Coder) now show?<redacted>instead of the one-time authorizationcodeandstate. Other request paths and query strings are logged unchanged.Behaviour change: clients reading
results[].status == "invalid"or the top-levelinvalidcount should usenot_run(witherror/errors) instead.Verification
tests/test_access_log.py: path matcher incl. non-authcallbackpaths untouched, filter rewrite, dictConfig wiring, idempotent install;tests/test_batch.pyupdated for the three statuses).run_serverlog config:GET /auth/upstream/pocketsmith/callback?<redacted>,GET /auth/console/callback?<redacted>,GET /mcp?keep=1unchanged; 0 occurrences of the test code/state in output.Change review ·
7993f8203070→592325ed8292Call paths changed by this PR
Caller → changed symbol → callee. Each edge labels the line in the caller. One detected entry path (up to 3 hops) is included when found. Static evidence, not a runtime stack trace.
After
Changed symbols:
redact_path—src/corn/access_log.py:21CallbackQueryFilter.filter—src/corn/access_log.py:29install—src/corn/access_log.py:38_summary—src/corn/batch.py:89rejected_batch—src/corn/batch.py:104register—src/corn/batch.py:245Bounded view: 16 more changed symbols and 7 neighbour references omitted.
Overall architecture after this change
Source: 592325ed8292 ·
code-review 0.1.0-dev.1.Generated from resolved static calls between reviewed code areas. Numbers are call sites, not request counts.
Framework registration, dynamic dispatch, and unresolved calls are not shown. This is not a deployment map.
Showing 6 of 6 inter-area edges. Edit the reviewed source instead of this generated page.
This diagram is for the linked commit. It refreshes after required checks pass for a new head.