Skip to content

Fallback → telemetry bridge: log fallback reasons as GitNexus failure reports#6

Merged
ReidenXerx merged 1 commit into
mainfrom
feat/fallback-telemetry-bridge
Jul 16, 2026
Merged

Fallback → telemetry bridge: log fallback reasons as GitNexus failure reports#6
ReidenXerx merged 1 commit into
mainfrom
feat/fallback-telemetry-bridge

Conversation

@ReidenXerx

Copy link
Copy Markdown
Owner

The classical-fallback escape hatch only recorded a count (classicalFallbackGranted) plus a transient reason in the grant flag (which expires / gets cleared). This turns each fallback into a durable "where did GitNexus fall short" report you can review and forward to the GN developers.

What

  • Every gitnexus:fallback -- "<why>" appends a record to append-only .gnkit/.gitnexus-fallback-log.jsonl: the agent's reason + the graph state it distrusted — GN version, index size (nodes/edges/embeddings/processes), indexed commit + age.
  • npm run gitnexus:fallback-log lists them with context; -- --json exports for the GN devs. gitnexus:stats shows a ⚠ fallback reports: N pointer.
  • Contract now asks for a specific, actionable <why> (which tool, expected vs actual — e.g. impact returned 0 callers for OrderService but grep finds 3) since it's a bug report, not a note.

Durable (append-only; survives compaction + session clears), gitignored (per-machine telemetry). 60/60 tests.

🤖 Generated with Claude Code

…failure report

The classical-fallback escape hatch only recorded a COUNT (classicalFallbackGranted) plus a
transient reason in the grant flag (expires / cleared). Now every `gitnexus:fallback` also
appends a DURABLE report — the agent's reason + the graph state it distrusted (GN version, index
size: nodes/edges/embeddings/processes, indexed commit + age) — to an append-only
.gnkit/.gitnexus-fallback-log.jsonl, so the user can see WHERE GitNexus fell short and report it
to the GN developers.

- session-primer: appendFallbackReport / readFallbackReports / fallbackLogPath.
- `npm run gitnexus:fallback-log` (+ `--json` to export for the GitNexus devs) lists the reasons
  with their graph context; `gitnexus:stats` shows a count + pointer.
- Contract now asks for a SPECIFIC, actionable `<why>` (which tool, expected vs actual) since it's
  a bug report, not just a note.
- Durable + append-only (survives session clear + compaction); gitignored (per-machine telemetry).

60/60 tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ReidenXerx
ReidenXerx merged commit eb49dc3 into main Jul 16, 2026
1 check passed
@ReidenXerx
ReidenXerx deleted the feat/fallback-telemetry-bridge branch July 16, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant