Repository navigation
perf(context-guard): log path and duration for every zone-crossing-inject fire - #5667
Conversation
…e with its path Every fire that reaches a zone decision now writes one record whose data carries path fast, coalesced or resolving, and the existing error, zone change and injection records gain the same field instead of a second record. With no sink configured nothing extra is sourced or run. Refs: #5298 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mented Bumps context-guard to 0.7.95, adds the changelog entry and documents the path field and the one-record-per-fire emission in the telemetry schema. Refs: #5298 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cord The CHANGELOG, the telemetry schema and the hook header said coalesced means a snapshot that only moved captured_at. cg_try_coalesce also succeeds when no zones.json exists and only used_percentage moved within one shipped band, so the share would have counted percentage-band hits as captured_at-only hits. The comment above the no-worse-zone exit still said an unchanged zone is not an event, but that case now records path and zone. Refs: #5298 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 1m 8s —— View job Security review complete
No security issues found. This PR is telemetry-only and introduces no new trust boundary:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fd52ebcae7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… early-exit fires Pre-0.7.96 records have no path and a later execution path would fail a closed enum, so the schema now leaves path optional and lists its known values in the description. A fire that exits on missing jq or an unusable state directory after its zone is decided now records an error with a reason. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 2m 10s —— View job Security review complete
No security issues found. This is a re-review of the current head (
|
|
Claude finished @kyle-sexton's task in 3m 56s —— View job Code review (
|

Refs: #5298
Summary
zone-crossing-injectran on every PostToolBatch and UserPromptSubmit but recorded telemetry only on a zone transition, so there was no way to see what share of fires pay for the resolver. Every fire that reaches a zone decision now writes one record carryingpath(fast,coalescedorresolving) beside the envelope duration. With no sink configured nothing extra is sourced or run.Fix
pathon each fire, and on the existing transition and error records.data/zone-crossing-inject.schema.jsondocumentspathand the per-fire emission.Verification
bash plugins/context-guard/hooks/zone-crossing-inject.test.sh: PASS=192 FAIL=0.scripts/check-changelog-parity.sh --check,--check-bump origin/mainand--check-order, andscripts/check-plugin-manifest-presence.sh: pass.Related
#5298
🤖 Generated with Claude Code