Skip to content

test(agent): pin whole-journey byte budget (#13673) - #13898

Merged
EffortlessSteven merged 7 commits into
mainfrom
perf/agent-journey-budget-13673
Nov 15, 2026
Merged

EffortlessSteven merged 7 commits into
mainfrom
perf/agent-journey-budget-13673

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Pins the whole scripted agent CLI journey (check cold + steady, one explain --format agent, one context packet, final verify-bearing check) inside byte budgets, plus a cross-step exact-duplicate redundancy budget. Test-only evidence package for #13673; no production delta. Repair of the CodeRabbit/EffortlessSteven Windows path-normalization finding is included: both the raw canonical and ripr's printed (folded /) project spellings now normalize to <root>, proven by a checkout-length-independence test.

This is a deterministic output-budget instrument over a fixed fixture (five changed predicates yielding four agent gap records) with no test edit between the initial and final checks (final verify= may be complete or refused). It must not be cited as observed agent token savings, provider billing, or a completed repair workflow.

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for
trusted same-repo ripr work. Confirm the change belongs here:

If this PR moves crates.io publishing, VS Marketplace publishing, Open VSX
publishing, GitHub Release assets, signing, release environments, or release
secrets, close or retarget it. Those surfaces belong in EffortlessMetrics/ripr
unless a dedicated release-boundary change has already been approved.

Source-of-truth Links

Proposal: n/a - test-only budget, no product proposal
Spec: n/a - no spec change; instrument for #13673 claim
ADR: n/a - no architecture decision
Plan item: #13673 journey-budget instrument (child of token-efficiency track)
Governing issue or accepted claim: #13673
Acceptance delta (one sentence): The scripted check-explain-context-verify CLI sequence stays inside per-step byte ceilings with both Windows path spellings normalized and cross-step duplication bounded.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): perf/agent-journey-budget-13673
Stack parent or prerequisite PR (if any): none - merged origin/main 111c780 (2026-11-14 catch-up)
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): n/a - single candidate, no tournament

Related (not parents, no duplication): #13674 owns single-surface budgets (sibling); draft #13873 owns MCP discovery reduction (merged 2026-11-09, incorporated via rebase); #13846 owns JSON-terse dedup; #13426 owns changed-line ranges; #13367 owns conditional MCP reads. This PR adds no output reduction and duplicates none of them.

Scope

  • crates/ripr/tests/cli_smoke/agent_journey_budget.rs: normalize both root spellings, cross-step dup metric, scripted-sequence claims, nonempty-verify guard, checkout-length-independence proof test.
  • crates/ripr/tests/cli_smoke.rs: module registration (unchanged by this repair).
  • changelog.d/13673-agent-journey-budget.md: entry (unchanged by this repair).

Scope Classification

This PR is scoped by:

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

  • none - test-only; no src/ change.

Evidence/support delta:

  • Journey budget test now folds both Windows path spellings to <root> (CodeRabbit + EffortlessSteven finding 2 repaired, proven by journey_root_normalization_erases_checkout_path_length).
  • Duplicate metric narrowed to lines repeated across distinct steps (finding 3 repaired; within-step repeats no longer count).
  • Receipt label check cold (with legend) corrected to check cold (finding 4); empty-stdout guard added (finding 5).
  • Module docs and this body state the scripted-sequence boundary explicitly.

Single acceptance criterion:

  • cargo test -p ripr --test cli_smoke agent_journey passes on Windows with per-step receipts inside ceilings and the normalization-invariance test green.

Non-goals:

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • No user-facing surface changes; CLI output contracts unchanged. Only test normalization and assertions changed.

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

  • n/a - test-only, no policy surface touched.

Proof

cargo fmt --check -- crates/ripr/tests/cli_smoke/agent_journey_budget.rs
cargo test -p ripr --test cli_smoke agent_journey -- --nocapture
cargo test -p ripr --test cli_smoke agent_facing_outputs -- --nocapture

Result, failures, or skipped proof:

  • cargo fmt --check: pass (exit 0).
  • cargo test -p ripr --test cli_smoke agent_journey -- --nocapture on Windows, head 0563edc on origin/main 111c780: 3 passed. Receipts: check cold 1186 (ceiling 1400), check steady 1186 (1400), explain 543 (800), context packet 4975 (6000), final verify 1186 (1400); steady-total 7890 bytes, cross-step exact-duplicate lines >=24B 1187 bytes (budget 3000). Folded three-row workload pinned: header gaps=3 folded_gaps=1 plus three distinct gap IDs asserted on cold/steady/verify (five changed predicates yield four findings; fix(output): fold identical agent gap rows into one (#14338) #14453 folds the two identical age-line rows into one printed row, clamp/parse stay hidden on this compact surface). Catch-up merge of origin/main plus re-pin a0d671f and check-local-context fixture repair 0563edc; all review threads resolved.
  • Pre-normalization-fix receipts on the old base were 1169/1169/577/4984/1169 (total 7899, dup 2168); the repair removed 122 bytes of checkout-path noise per output on this machine and narrowed the dup metric to cross-step repeats. Post-rebase receipts grew by ~289 (check) / ~72 (explain) vs the pre-rebase normalized run (1047/455) due to main movement since ab93e28 (includes feat(output): structured staged-evidence rows for machine consumers (RIPR-SPEC-0423) #13443 staged-evidence rows); ceilings still hold with 64-byte headroom on check.
  • cargo test -p ripr --test cli_smoke agent_facing_outputs -- --nocapture: FAILS as inherited and recorded, not fixed here - check (default human) 4055 bytes over its 3900-byte ceiling on Windows. The failing output embeds the folded H:/... root (e.g. ripr explain --root H:/Code/Muse/ripr-agent-output-budget-...), which the sibling's raw-only to_string_lossy replace never folds - the same normalization defect class repaired in this PR's new test. Separate owner should apply the shared-helper normalization there; the ceiling must not be raised to absorb unnormalized path bytes.
  • Full hosted Rust qualification not yet run on this head; draft requests normal late qualification after source review.

Claim Boundary

What may be claimed after this PR? What must not be claimed yet?

  • May claim: the fixed fixture (five changed predicates yielding three printed agent gap rows, one folded)'s scripted check-explain-context-verify stdout sequence stays inside the stated per-step byte ceilings on Windows with checkout-length-independent normalization, and cross-step exact duplication stays inside 3000 bytes.
  • Must not claim: observed agent token savings, provider billing reduction, completed repair workflows, or that agents necessarily read every byte of the sequence. No test edit happens between the checks; verify= may be complete or refused. The context packet (~60% of the steady total) is the largest single step but real-call frequency is unmeasured.

Rollback

How can this PR be reverted safely?

  • git revert the squash merge (test-only: one new test file, 3-line module registration, one changelog entry). No production, migration, config, or generated-artifact rollback. Reverting restores the unbudgeted journey (no product behavior change).

Spec-Test-Code Traceability

  • Spec: perf(tokens): agent-facing output byte budget and remaining redundancy (5-gap measurement 2026-11-08) #13673 (journey-budget instrument; no spec-text change)
  • Tests: crates/ripr/tests/cli_smoke/agent_journey_budget.rs - agent_journey_stays_inside_byte_budget_and_keeps_verify_record, journey_root_normalization_folds_both_windows_spellings, journey_root_normalization_erases_checkout_path_length
  • Code: none (test-only; pins contracts owned by output::human::agent renderer and agent::loop_commands root display)
  • Golden outputs: none (inline byte receipts, not golden files)
  • Metrics: per-step stdout bytes + bytes/4 reference estimate; cross-step dup bytes
  • ADR/learning: static-exposure honesty applies - no killed/survived language used; unknown/provider scope explicit

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

Complete this section when the PR changes workflows, policy gates, branch
protection expectations, CI artifacts, report uploads, release checks, or the
cost/posture of existing lanes. Use n/a for ordinary PRs that do not affect
CI behavior.

  • LEM impact: n/a
  • Workflows touched: n/a
  • Branch protection impact: n/a
  • Failure mode caught: n/a
  • Cheaper signal considered: n/a - focused cli_smoke agent_journey (~12s) used for shaping instead of the full matrix
  • Required lanes affected: n/a
  • Advisory lanes affected: n/a
  • On-demand/release lanes affected: n/a
  • Labels that alter behavior: n/a
  • Artifact families affected: n/a
  • Rollback path: n/a (no CI change to roll back)

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

Gates

  • cargo fmt --check
  • cargo check --workspace --all-targets
  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo doc --workspace --no-deps
  • cargo package -p ripr --list
  • cargo publish -p ripr --dry-run
  • cargo xtask check-static-language
  • cargo xtask check-doc-artifacts
  • cargo xtask check-support-tiers
  • cargo xtask check-no-panic-family
  • cargo xtask check-allow-attributes
  • cargo xtask check-local-context
  • cargo xtask check-file-policy
  • cargo xtask check-covered-by
  • cargo xtask check-executable-files
  • cargo xtask check-workflows
  • cargo xtask check-spec-format
  • cargo xtask check-spec-numbering
  • cargo xtask check-fixture-contracts
  • cargo xtask check-generated
  • cargo xtask check-badge-diff-policy
  • cargo xtask check-generated-clean
  • cargo xtask check-dependencies
  • cargo xtask check-process-policy
  • cargo xtask check-network-policy

Extension changes:

  • cd editors/vscode && npm ci
  • cd editors/vscode && npm run compile
  • cd editors/vscode && npm run package

Gates note: only cargo fmt --check and the focused agent_journey tests are claimed locally above. Remaining gates are left unchecked for hosted qualification on the exact integration subject; the PR stays Draft until late qualification is requested and green.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary by CodeRabbit

  • Tests
    • Added smoke-test coverage for the command-line workflow from checking and explaining findings through gathering context and running a final check.
    • The tests verify that findings stay consistent across steps, each command’s output stays within defined size limits, and repeated output remains below a threshold.
    • Path normalization checks ensure output-size comparisons are not skewed by workspace path differences, while still detecting actual output growth.

Walkthrough

The PR adds a Rust-gated CLI smoke test for a check, explain, context, and final check sequence. The test verifies gap IDs, final verify output, per-command byte ceilings, and a repeated-line byte limit. It also tests project-path normalization and adds a changelog entry.

Changes

Agent journey budget

Layer / File(s) Summary
Fixture and output measurement helpers
crates/ripr/tests/cli_smoke/agent_journey_budget.rs
The test builds a temporary Cargo project with five changed predicates. Helpers run CLI commands, normalize project paths, enforce byte ceilings, and extract gap IDs. Tests check Windows-style path normalization and confirm that normalization does not mask output growth.
Agent journey and registration
crates/ripr/tests/cli_smoke.rs, crates/ripr/tests/cli_smoke/agent_journey_budget.rs, changelog.d/13673-agent-journey-budget.md
The Rust-gated test runs cold and steady checks, explain, context, and a final check. It checks gap identity, verify output, per-command byte ceilings, and the repeated-line limit. The changelog records the journey and budgets.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: Minimal · up to 0a049

This change adds a test that pins the output size of a scripted CLI sequence. It does not change product behavior. The remaining merge step is the repository's review-attestation gate; the code itself shows no merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "test(agent): pin whole-journey byte budget (#13673)" matches the main change: a test-only byte-budget instrument for the scripted check-explain-context-verify CLI journey. It is specific, c…
Description check Passed The description follows the repository template closely. It fills the Summary, Swarm/Source Boundary, Source-of-truth Links, Candidate Relationships, Scope, Scope Classification, Support-tier Impact, …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test(agent): pin whole-journey byte budget (#13673)" matches the main change: a test-only byte-budget instrument for the scripted check-explain-context-verify CLI journey. It is specific, concise, and follows a conventional commit style. It omits the cross-step duplicate budget and the path normalization fix, which is acceptable since the title need not cover every detail.

Full details: Description check

Explanation

The description follows the repository template closely. It fills the Summary, Swarm/Source Boundary, Source-of-truth Links, Candidate Relationships, Scope, Scope Classification, Support-tier Impact, Policy Impact, Proof, Claim Boundary, Rollback, Traceability, Static Language Check, CI Economics, and Engineering Check sections. It states the production delta, the single acceptance criterion, and the non-goals. It also explains why the remaining gates are unchecked and that hosted qualification is pending. Minor gaps: the Proof section lists a failing inherited test without a resolution owner in the template's fields, and the Gates checklist is mostly unchecked. These are expected for a draft PR and do not make the description largely incomplete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the byte-count trail
Through explain and context, neat and small
Three gap IDs hop along
Duplicate lines stay within bounds
The final check brings the journey home

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: c972b6fc-11c4-4b2a-9a83-f4b6b2999383
Commits

Reviewing files that changed from the base of the PR and between 111c780 and 0a04997.

Files selected for processing: 3

  • changelog.d/13673-agent-journey-budget.md
  • crates/ripr/tests/cli_smoke.rs
  • crates/ripr/tests/cli_smoke/agent_journey_budget.rs

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

coderabbitai[bot]

This comment was marked as resolved.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exact-head review (head 6b5f604)

1 blocking finding: the PR body is missing the required Governing issue or accepted claim: and Acceptance delta markers (and most other template sections), and the repo's own pre-merge description check fails on it. The test code has no blocking defect; one medium test-claim mismatch on Windows and three low notes below.

Evidence basis: read the full 3-file diff (changelog.d/13673-agent-journey-budget.md, crates/ripr/tests/cli_smoke.rs +3, crates/ripr/tests/cli_smoke/agent_journey_budget.rs +211), the surrounding head sources cited below, the PR body, gh pr checks output, and the one existing review on this exact head (coderabbitai[bot], 2026-11-08T22:30:33Z, treated as leads, not as review-of-record). Nothing was executed locally; every claim below is source-read at this head SHA except where explicitly marked as pending or hypothesis.

Verified

  • The verify= last-line contract is real at head: crates/ripr/src/output/human/agent.rs:21 — "The last line is always verify=complete|... or verify=refused|...|reason=" — and render() pushes it after every bounded section (agent.rs:68). The new assertion (agent_journey_budget.rs:173-177) checks exactly that contract.
  • The |id= parse matches the renderer's shape: agent.rs:12 "Shape (one record per line, |-separated fields, no legend)" and agent.rs:16 example ending |id=probe:.... Probe selectors are accepted by both explain (positional) and context --at per existing head tests (crates/ripr/tests/cli_smoke.rs:3398 and 3438-3453 at head).
  • The cold == steady claim is supported by source: the legend marker only exists for the human format — crates/ripr/src/cli/commands/check.rs:2206 let legend_marker = matches!(format, OutputFormat::Human) — and agent.rs:1 calls the agent format "legend-free". The test would still discriminate a legend regression: the ~ten-line legend (check.rs:2203) added to agent output would push the cold receipt past its 1400-byte ceiling.
  • --quiet suppresses the progress stream and artifact-ignore notes, not the report (check.rs:1667-1671), so the receipts measure stdout as documented.
  • Module registration matches sibling convention: #[cfg(feature = "lang-rust")] with the alphabetical slot before agent_output_budget (crates/ripr/tests/cli_smoke.rs:14-18 at head). The changelog entry matches convention: <!-- section: Internal / CI --> is an existing section and the filename follows <issue>-<slug>.md.
  • Helper signatures match usage: run_command (cli_smoke.rs:266 at head) and unique_external_workspace (cli_smoke.rs:828 at head, Result<PathBuf, String>, converts into Box<dyn Error>). The fixture construction is copied from the proven agent_output_budget.rs sibling, and @@ -1,5 +1,5 @@ is a valid hunk for the 5-line BASE.
  • Semantic owner check: this PR adds evidence only, no production delta, no parallel validator — the budget pins existing renderer contracts owned by output::human::agent and agent::loop_commands. That fits the repo's spec -> test ordering for the #13673 claim.

Findings

  1. PR body (blocking, merge gate): required markers absent. The body says "Extends #13674 single-surface budgets ... under #13673" and "Refs #13673", but neither the literal Governing issue or accepted claim: nor Acceptance delta appears anywhere in it. The repo's own pre-merge description check fails on exactly this — review 5819957339: "Failed pre-merge checks: Description check: Complete the empty or unchecked template sections", enumerating the boundary option, candidate relationships (#13674, draft #13873), scope classification, the proof command block, rollback, traceability, static-language boxes, and CI economics. Fix: complete the body template, including those two markers verbatim, before requesting merge convergence.

  2. crates/ripr/tests/cli_smoke/agent_journey_budget.rs:65-66 (medium): the <root> normalization silently does nothing on Windows. The test replaces the lossy project path — let root = project.to_string_lossy().into_owned(); ... .replace(&root, "<root>") — but unique_external_workspace canonicalizes (workspace_root().canonicalize(), cli_smoke.rs:829-830 at head), which yields a verbatim \\?\D:\... spelling on Windows, while ripr prints the bound root folded: root_path_display -> root_path_text_for_host does text.replace('\\', "/") plus the verbatim fold (crates/ripr/src/agent/loop_commands.rs:73-84). Every next= navigation line (bound via bound_root, loop_commands.rs:63; rendered by render_next_action_plain_at_root, crates/ripr/src/output/next_action.rs:110-114) and the context packet's command template (crates/ripr/src/app/context.rs:294-295) therefore carry a C:/... form that never matches the replaced needle. Consequences: the module doc claim at agent_journey_budget.rs:7-8 "Bytes are UTF-8 stdout bytes with the root replaced by <root>" and the body's "Bytes are UTF-8 stdout bytes with root normalized to " are both false on Windows, and the receipts become checkout-path-length dependent there — exactly the dependency the sibling says budgets must avoid (agent_output_budget.rs:61-62: "Measure with the absolute root replaced by a fixed token, so the budget does not depend on how long the checkout path is"). The 1169 -> 1400 headroom probably still absorbs a runner path, so this likely passes the gate — but the test cannot notice its own normalization failing, which is the failure mode a byte budget exists to police. Fix: build the needle with the existing printed_path helper (cli_smoke.rs:814 at head) instead of raw to_string_lossy(), or replace both spellings with the same placeholder.

  3. crates/ripr/tests/cli_smoke/agent_journey_budget.rs:189-198 (low): the dup metric is wider than its label. The comment says "exact lines repeated across steps", but the loop also counts repeats inside a single output and counts every extra occurrence (dup_bytes += line.len() + 1). The error direction is safe — it overcounts, tightening the budget — so this is a naming/measurement mismatch, not a hole. Fix: dedupe within each step first, or rename the metric to repeated line occurrences.

  4. crates/ripr/tests/cli_smoke/agent_journey_budget.rs:183 (low): receipt label contradicts its own comment. receipt("check cold (with legend)", &cold, 1_400) labels a surface that, per the comment three lines up (179-182) and check.rs:2206, prints no legend in agent format. Rename to check cold so future receipt readers are not sent hunting a legend that never prints.

  5. crates/ripr/tests/cli_smoke/agent_journey_budget.rs:173 (low): unwrap_or_default() turns empty stdout into a misleading message. If verify were empty, the assertion would blame the missing verify= record rather than the empty output. The exit-status assert in run (lines 58-64) makes this unlikely; asserting the output is nonempty first keeps the failure message honest.

  6. Observation (hypothesis, not established by execution): the recorded inherited Windows failure may share finding 2's root cause. The body records: "agent_output_budget::agent_facing_outputs_stay_inside_their_byte_budgets fails on clean origin/main ab93e28 on Windows (check default human 4055 B over 3900 B ceiling)". The sibling uses the same verbatim-needle replace (agent_output_budget.rs:63-64), and human-format output embeds the folded root in Next:/drill-in lines with Windows console quoting (render_next_action_human_at_root, next_action.rs:97-108; head helper host_quoted, cli_smoke.rs:3186 at head). Missed replacements leave checkout-path text in the counted bytes, a plausible chunk of the 155-byte overage. Worth checking under whichever owner picks up that failure before the ceiling moves — raising it to absorb unnormalized path bytes would bake the defect in. Recording it here as a lead for that owner; the PR correctly declines to fix it in scope.

Residuals

  • The gate matrix for this head was still pending/in-progress at review time (gh pr checks: windows-gate-run, ub-review, Python package source contract, and build and inspect Linux x64 wheel all pending; the Rust test lanes skipped on the draft). No check outcome is claimed from this review, and the new test was not executed locally.
  • The ceilings/receipts (1169/1169/577/4984/1169, journey total 7899, dup 2168 vs 3000) come from the body's 2026-11-08 Windows measurement; I did not independently reproduce the byte counts.

@EffortlessSteven
EffortlessSteven force-pushed the perf/agent-journey-budget-13673 branch from 6b5f604 to 2f6cd74 Compare November 9, 2026 04:25
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 9, 2026 04:26
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Sibling-failure quantification for its owner (read-only analysis, no code touched here): the failing \�gent_output_budget\ human output (4055 B vs 3900 ceiling on Windows) embeds the folded \H:/...\ root 7 times at 66 chars each. Normalizing those 7 occurrences to <root>\ saves 420 B, landing at 3635 B - inside the ceiling with headroom. The 155-byte overage is fully explained by unnormalized checkout-path text (same defect class repaired in this PR's new test via
ormalize_root); no product output growth is implicated. Recommended repair: apply the shared-helper normalization in \�gent_output_budget.rs::run\ (replace both \ o_string_lossy\ and \printed_path\ spellings). Do not raise the 3900 ceiling.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

SOURCE_REVIEW_READY (self-review COMMENT with explicit disposition; not a counted approval)

Head reviewed: 2f6cd74 (rebased onto origin/main 7d73d7b). Scope: test-only (new cli_smoke agent_journey_budget.rs, 3-line module registration, changelog entry). No src/ change.

Verified at this head: normalize_root replaces both raw canonical and printed_path spellings (CodeRabbit + prior finding 2 repaired); dup metric counts cross-step repeats only (finding 3); receipt label and empty-stdout guard fixed (findings 4-5); module docs + PR body state the scripted-sequence boundary (no agent/token-saving claim). Local proof: cargo fmt --check pass; cargo test -p ripr --test cli_smoke agent_journey 2 passed on Windows (cold 1336/1400, steady 1336/1400, explain 527/800, context 4862/6000, verify 1336/1400, dup 1449/3000). CodeRabbit thread resolved; no other open threads; no REQUEST_CHANGES.

Residuals (not blocking): check-step headroom is 64 B after main movement since ab93e28 (includes #13443 staged-evidence rows) - the budget doing its job; inherited agent_output_budget 4055/3900 Windows failure is recorded with path-noise quantification (420 B over 7 unnormalized occurrences) and owned separately - ceiling must not be raised. Hosted Small Result qualification still to run on this head.

Disposition: READY for merge-ready qualification; merge subject to green required checks and final integration judgment.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

SOURCE_REVIEW_READY
Head: 2f6cd74 on origin/main 7d73d7b. Test-only scope, no src change. All prior exact-head findings repaired and locally proven green (fmt + 2 journey tests, receipts inside ceilings). CodeRabbit thread resolved, no change requests, no other open threads. Sibling agent_output_budget Windows failure recorded with quantification and owned separately. Ready for Small Result qualification; merge subject to green checks and final integration judgment.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY
Head 2f6cd74 on base 7d73d7b. Test-only scope, no src change. All prior exact-head findings repaired and locally proven green. CodeRabbit thread resolved, no change requests, no other open threads. Ready for Small Result qualification; merge subject to green checks and final integration judgment.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit 6a515e614e90 · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=d0218107f6f111725256c647e6c12819de6e9b11 findings=0 gaps=0
done=no changed behavior found in scope; static advisory, not runtime proof
verify=refused|outcome=no_behavioral_candidates|findings=0|exposed=0|reason=no_behavior_in_scope

Took 40s.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY
Head 934a991 on base 7d73d7b. Test-only scope, no src change. Repairs all prior findings: both-spelling normalization with host-independent fold test, cross-step dup metric, scripted-sequence claims, nonempty verify guard, gaps=4 header plus four distinct IDs pinned on cold/steady/verify. Local proof green: fmt pass, 3 journey tests pass, receipts inside ceilings. All review threads resolved, no change requests. Ready for Small Result qualification; merge subject to green checks and final integration judgment.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parked follow-ups

  • The known agent_output_budget sibling failure should remain a parked follow-up rather than broadening this test-only PR.
  • The local normalization helper is sufficient for this PR, while sharing it with the sibling test remains separate follow-up work.

Evidence gaps

  • No completed cargo-test receipt for the reviewed head is available; scheduling is not execution evidence, so the local Windows byte receipts remain author-reported rather than independently reproduced by this lane.
  • Model proof intent was rejected by deterministic validation.
  • The exact-HEAD focused runtime outcome is not evidenced by the supplied sensor receipts.
  • The claimed byte-budget behavior lacks completed exact-head runtime evidence in this packet.

@EffortlessSteven
EffortlessSteven force-pushed the perf/agent-journey-budget-13673 branch from 934a991 to 4b5cf1e Compare November 9, 2026 05:26

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY
Head 4b5cf1e on base 28b102c. Test-only scope, no src change. Rebased past the inherited main-health failure that refused the prior Small run (duplicate owner_opt_outs in human.rs at the merge subject; my diff never touches that file; main fix 4dc969d incorporated). All findings repaired and locally green on this head: fmt pass, 3 journey tests pass, receipts inside ceilings. All threads resolved, no change requests. Ready for Small Result qualification; merge subject to green checks and final integration judgment.

Copy link
Copy Markdown
Member Author

Native-group admission checkpoint (2026-11-14 UTC)

Unchanged PR head 0563edc37e9f87c41f075a29315e1c756a211879; native group a6af410635c57cc535f5fca09a2993d4e9c625d4, trusted admission source 1d082a4632c9c0d10a769b4d814bc85070e55f1a.

In run 43630102016, Admit PR Candidate, the candidate-admission and release-cut self-tests passed, then the exact-candidate admission action logged gh: Server Error (HTTP 502) at 19:06:31 UTC and exited 1. No typed admission status/reason/detail was produced. The failed API call's deeper cause is not established by this receipt.

Required Result 132555112987 failed at 19:06:39. Rust gates and test jobs were skipped, so this run establishes neither a candidate test failure nor successful qualification. The PR timeline records removal from the merge queue at 19:14:34.

This is a factual evidence handoff only. Existing ownership, source-review limits and qualification holds remain unchanged. No branch, CI or queue action has been taken for this checkpoint; historical head evidence does not qualify a future group.

Copy link
Copy Markdown
Member Author

Fresh native-queue failure receipt for the existing owner: run 43630102016, composed G a6af410635c57cc535f5fca09a2993d4e9c625d4, failed admission job 132554786586 at 2026-11-14 19:06:31 UTC. The job identified PR #13898 and expected H 0563edc37e9f87c41f075a29315e1c756a211879; both admission self-tests passed, then gh: Server Error (HTTP 502) terminated the step. This is an API/infrastructure failure, not a test, corpus, or source-review refusal. Required Result consequently failed; timeline records removal at 19:14:34.

Existing owner should reconcile current exact-head review/checks and queue membership, then use normal protected queue recovery if still eligible and absent. Do not re-bless fixtures or alter source based on this failure. I have not rerun CI or changed queue membership; successor groups, including #14529, are already running and should not be disturbed.

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 14, 2026
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Queue recovery: re-enqueued after a route-defect ejection (campaign orchestrator, 2026-11-14T19:26Z).

Head 0563edc37e9f87c41f075a29315e1c756a211879 is unchanged and carries a current APPROVE with zero unresolved review threads. All required checks are green on that head, including Ripr Rust Small Result and all four hosted test shards; mergeable is MERGEABLE, mergeStateStatus CLEAN.

The merge_group run 43630102016 (19:04Z) ejected this PR with REASON: fork_or_untrusted_pr, GITHUB_RESULT: skipped, and an empty ADMISSION_STATUS — the merge_group route never admitted the constituent, so the Result check failed on a route defect rather than on this head. That is the BASH_REMATCH capture defect review ripr-swarm found in #14671 (.github/workflows/routed-rust.yml:108-109), not a defect in this PR.

Action: re-enqueued through the native merge queue (position 49). No code change, no label change, no restack. If the next merge_group run ejects it again with fork_or_untrusted_pr, the queue route is still broken and #14671's repair is the blocker, not this PR.

Copy link
Copy Markdown
Member Author

Failure-attribution correction to the recovery disposition: re-admission at 19:25:37 is verified; no further queue action is requested. For run 43630102016 specifically, admission job 132554786586 did identify this constituent: ADMISSION_PR_NUMBER: 13898, ADMISSION_EXPECTED_HEAD: 0563edc37e9f87c41f075a29315e1c756a211879. Both admission self-tests passed at 19:06:17, then gh: Server Error (HTTP 502) exited at 19:06:31. Thus this run has direct API-failure evidence; it should not be attributed solely to the separately diagnosed BASH_REMATCH route defect or described as never identifying the constituent. An empty admission status/downstream skipped route does not override the failing job's log. Keep #14671's independent diagnosis separate. Existing owner retains normal recovery; no source, CI, or queue change made here.

@EffortlessSteven
EffortlessSteven removed this pull request from the merge queue due to a manual request Nov 14, 2026
@EffortlessSteven
EffortlessSteven marked this pull request as draft November 14, 2026 21:02
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Review record update for head 0a04997: scratch-fixture lifecycle repair. The journey test's external workspace now returns the existing parent-module DeclaredHunkScratch guard armed inside workspace() before population, so setup failures, assertion panics and the success path all remove the sibling fixture directory. Local proof on Windows: cargo test -p ripr --test cli_smoke agent_journey 3 passed with 0 ripr-agent-journey-budget-* directories before and after; a deliberate failure control (ceiling forced to 1 byte, test failed as expected) also left 0 directories. Sibling pre-existing leaks in agent_output_budget.rs and legend_first_run.rs are follow-up scope, not this candidate.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 14, 2026 21:07

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY
Head 0a04997
Scope and proof for this head are in the linked conversation review record.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: APPROVE 0a04997 — no blocking findings on this head.

Delta since my APPROVE at 0563edc3: one test-only commit, 0a0499776e "test(agent): clean up journey budget fixture on drop (#13673)", 1 file, +5/−4 in crates/ripr/tests/cli_smoke/agent_journey_budget.rs.

  • workspace() now returns (PathBuf, DeclaredHunkScratch) and arms the guard immediately after unique_external_workspace, before create_dir_all, so a failed assertion or an early ? still removes the fixture.
  • The single caller binds _cleanup (not _), so the guard lives to the end of the test; the tuple destructuring is the only call site.
  • DeclaredHunkScratch is the existing parent-module guard (Drop → ignore_remove_dir_all, which ignores a missing path), so a double remove is harmless.
  • No production code, no test assertion, and no receipt value changed.

Admission is green at this head (Admit PR Candidate completed 21:12:57Z). The hosted Rust gates (Ripr Rust Small on GitHub Hosted / Rust gates and the four test shards) were still pending when this review was written; that qualification is not yet observed on this head. Static review only: no build, no test run, no checkout.

Copy link
Copy Markdown
Member Author

Exact-head qualification checkpoint for H 0a0499776e6d0f72bd65880b849b794c60157777: run 43641553694 passed Rust gates, all four shards, and shard verification, but required Result 132599734360 failed at 21:47:56 UTC during source-review recheck. The log explicitly refuses the current-head source-review attestation; subsequent eligibility was skipped, not passed. The substantive static review 5907231583 at 21:26:56 begins VERDICT: APPROVE, whereas the earlier carrier 5907172573 begins SOURCE_REVIEW_READY. The log requires an accepted first-line carrier, not narrative approval tokens. This is an attestation failure, not a reported Rust test failure; the runner routing label alone does not identify the failing gate. Existing reviewer/owner retains reconciliation. No carrier fabricated, formal approval, label, queue operation, or rerun performed by this checkpoint.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Re-attestation at 0a0499776e6d0f72bd65880b849b794c60157777, unchanged head. My 21:26:56Z VERDICT: APPROVE review at this head displaced the 21:09:45Z marker, and Ripr Rust Small Result (run 43641553694) then failed at 21:47:56Z on source review attestation refused. This review restores the attestation; the judgement is the same one, not a new one.

Evidence at this head:

  • Admit PR Candidate pass, 21s.
  • Ripr Rust Small on GitHub Hosted / Rust gates pass, 34m30s; all four test shards pass (19m20s, 18m13s, 20m9s, 20m36s); Rust test shards verify pass.
  • vscode surface, CodeRabbit, GitGuardian, Graphite pass.
  • The only red is Ripr Rust Small Result, and its annotation is the attestation refusal above, not a test or build failure.

Source delta since 0563edc3 is the single test-only commit 0a0499776e in crates/ripr/tests/cli_smoke/agent_journey_budget.rs: workspace() returns (PathBuf, DeclaredHunkScratch) and arms the guard before create_dir_all; the one caller binds _cleanup; DeclaredHunkScratch is the existing parent-module Drop guard over ignore_remove_dir_all, which ignores a missing path. No production code, no assertion, no receipt value changed.

Static review plus the hosted gate results above. No local build or test run; no checkout.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY
Head 0a04997
Scope and proof for this head are in the linked conversation review record.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Final integration judgment on head 0a04997: REVIEW_READY. Hosted Ripr Rust Small Result SUCCESS on this head, all review threads resolved, no unresolved material findings, behind-only base movement needs no restack. Enqueuing in the native merge queue; landing is conditional on the queue merge-group qualification for the actual composition.

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 573a1f5 Nov 15, 2026
48 of 51 checks passed
@EffortlessSteven
EffortlessSteven deleted the perf/agent-journey-budget-13673 branch November 15, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant