Release 0.4.0: usage reporting, routing calibration, audit nudge, handoff + dispatch/predup hardening#2
Merged
Merged
Conversation
…dispatch + predup Features: - Usage reporting: store.py `record-usage` CLI; cost_report.py relabels the per-tier breakdown as ESTIMATED (metered session_cost stays authoritative); nx-build.md §6a logs an estimated usage row per dispatch. - Per-repo routing calibration: route_calibration table + record/list helpers and calib-record/calib-list CLI; nx-plan.md nudges weak routes up one tier (advisory only — never down, never moves needs-strong). - Audit nudge: scripts/audit_nudge.py throttled SessionStart one-liner, wired into hooks.json (audit_nudge_enabled / audit_nudge_throttle_hours). Reliability fixes: - predup freshness guard: allow a read through when its prior tool_calls row is older than predup_max_age_seconds (default 900; 0 = old behavior), so subagent/compaction rows no longer false-deny the parent. - dispatch hardening: max_steps_per_dispatch 6->4 plus size-aware batching via store.partition_steps_by_size and plan_preview.py, bounded by max_dispatch_context_tokens (50k) and dispatch_step_base_tokens (1500). Version bumped 0.3.0->0.4.0 across manifests; CHANGELOG [0.4.0] entry added. Full suite: 327 passed.
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.
Brings
main(v0.2.1) up to v0.4.0. Five commits of context + model-cost optimization work for the nexum plugin.Highlights
0.4.0 features
store.py record-usageCLI;cost_report.pyrelabels the per-tier breakdown as ESTIMATED (meteredsession_coststays authoritative);nx-build.md§6a logs an estimated usage row per dispatch.route_calibrationtable + record/list helpers andcalib-record/calib-listCLI;nx-plan.mdnudges weak routes up one tier (advisory only — never down, never moves needs-strong).scripts/audit_nudge.pythrottled SessionStart one-liner wired intohooks.json.Reliability fixes
tool_callsrow is older thanpredup_max_age_seconds(default 900; 0 = old behavior), so subagent/compaction rows no longer false-deny the parent.max_steps_per_dispatch6→4 plus size-aware batching (store.partition_steps_by_size+plan_preview.py), bounded bymax_dispatch_context_tokens(50k).Earlier on this branch (0.3.x)
nx-*; context levers hardened./nexum-implementrequest-cost overhaul + metered cost capture.Verification
python3 -m pytest tests/ -q→ 327 passedpython3 tools/check_version.py→ version 0.4.0 consistent across manifests[0.4.0]entry added (Added/Changed/Fixed)Notes
/nx-build(the orchestrator that produced this branch predates §6a).tool_callsrows by originating context) is tracked as follow-up.v0.3.0/v0.4.0git tag exists yet — tagging deferred pending release-mechanism decision.