Skip to content

feat(queries): add opt-in callstack byte-budget summaries - #196

Merged
codeasier merged 2 commits into
mainfrom
fix/issue-187
Oct 3, 2026
Merged

codeasier merged 2 commits into
mainfrom
fix/issue-187

Conversation

@codeasier

Copy link
Copy Markdown
Owner

Summary

Add explicit stack_bytes parameters to event and point-in-time callstack attribution, plus --stack-bytes on peak reports. Preserve full output by default; compact mode uses UTF-8-safe text prefixes with stable database/device-scoped identity and full-stack retrieval locators. Synchronize catalog, bilingual guides and diagnostic skills.

Fixes #187

Integration with #179

Retain report completeness and coverage fields, dynamic limit help and special groups. Record the compact budget in effective_params. Regression coverage compares full/identity-only/compact output for capped and complete reports across both layouts and all metrics; byte totals, coverage, percentages and evidence completeness remain unchanged.

Validation on latest main

  • Integration/provenance/query/CLI/API regression: 154 passed
  • Full pytest with branch coverage: 1442 passed, 91.55% coverage
  • Ruff, Black, diff check passed
  • basedpyright: 0 errors, 773 informational warnings
  • Synthetic 332-event Unicode output shrinks from 10,136,479 bytes to 207,023 (v1) / 184,779 (v2) at budget 256, with all rows retained
  • Budget is per-stack UTF-8 text bytes, not a whole-response/token cap.

@codeasier
codeasier merged commit 0924415 into main Oct 3, 2026
6 checks passed
@codeasier
codeasier deleted the fix/issue-187 branch October 3, 2026 19:18
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.

[FEATURE] 为 Agent 诊断增加长 callstack 的字节预算与紧凑展示

1 participant