Repository navigation
feat(telemetry): filter the report by task, ticket, person and more - #1033
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
A filter compares what axisValueOf gives a call with the value a flag names, so it selects exactly the calls a row of that axis holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
The use case refuses first, locates `.` before reading anything, then resolves a session or repository typed by its start among the calls of the period. The envelope names every filter, as resolved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
Nine flags, one value each, trimmed and checked before anything is read. The text names what was selected, and says when nothing matches. The end-to-end check also runs one filtered report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
The usage contract, the telemetry memory and the usage skill name the nine filters and the envelope's `filters`. One display assertion covers the ambiguity of a repository start, which mutation found uncovered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
The use case refuses two flags that select on one axis, before the environment's refusal, and takes `.` as its own field, with no cast. A repeated bare flag is named, not shown as `null`; the selection line reads the selectors the filter matches with. The end-to-end judge takes a root-commit id, the usage skill says when a filter matched nothing, and the contract's rule 2 names a value with `--absent` on its axis. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
The command leaves conflicting filters to the use case, whose result already exits 1. A request names a repository or `.`, never both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
blafourcade
marked this pull request as ready for review
October 16, 2026 03:39
blafourcade
added a commit
that referenced
this pull request
Oct 16, 2026
Brings in the report filters (#1033). Both sides kept: the `on` identity question and options beside the report's filter options, both public telemetry modules declared, both rows of the contributor map. The absent person filter now reads `anonymous`, as the report rows do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VWNxk63AGKkqE8HRqHLjGp
This was referenced Oct 16, 2026
Merged
3 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What & why
aidd telemetry reportcould only split every call of a period along one axis. It could not answer "what did taskauthcost, per day" or "what did this repository cost, per model". The report now takes filters:--task,--ticket,--person,--model,--agent,--session,--repository <id|prefix|.>,--absent <person|model|ticket>,--unattributed [reason].🛠️ How it works
axisValueOfthat builds the rows (report-filter.ts:104), so a filter and a row cannot disagree. The flags mirror the three kinds of row in the envelope: a value,absent, orunattributed. Adayrow is selected by--from D --to D.--unattributedselects on bothtaskandticket, so combining it with--task,--ticketor--absent ticketis refused, as is a value plus--absenton the same axis. The use case refuses this itself, before anything is read (conflictsOf).--sessionand--repositorytake a prefix. An exact value wins over a prefix: a 40-hex root commit can prefix a 64-hex id. An ambiguous prefix exits 1 and lists the full candidates (resolveId).--repository .resolves the current directory with the same rule ingest uses. It runs after theAIDD_TELEMETRY=0refusal, so a refused run never runs git.version: 1and adds afiltersfield, always present. Each key isnullor holds the value as resolved.coverage.recordskeeps its meaning (the calls of the period);totalscovers what matched.01-usageskill now turns "task X per day" into one filtered report. The usage contract and the CLI memory are updated. Contract: contract.md.🧪 How to verify
cd cli && pnpm test: 6579 passed, 1 skipped.pnpm test:mutation:telemetry: 96.3 (floor 96). Survivors on changed lines are equivalent and explained in evidence.md.pnpm smoke: 132/0/1.node scripts/check-claude-tokens-end-to-end.cjs(and--attended) now runs a filtered report too.evidence.md.docsbut changes how the skill frames questions; the squash title makes it afeatfor release-please.--repository .to scope it.--repository .names the repository as it stands now. Calls stored under an earlierorigincarry another id.--personis the identity of the machine reporting, so locally it selects every call or none.🔗 Linked issue
Closes #1030
✅ I certify
🤖 Generated with Claude Code