Skip to content

pilot: disclose automatic timeout extension - #16607

Draft
EffortlessSteven wants to merge 4 commits into
mainfrom
devin/1795941218-pilot-timeout-disclosure
Draft

EffortlessSteven wants to merge 4 commits into
mainfrom
devin/1795941218-pilot-timeout-disclosure

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Complete Pilot summaries now disclose when the default analysis budget was automatically extended, instead of presenting the combined budget as if the user requested it.
  • Terminal and Markdown name the default and extension separately; additive JSON timeout_extension_ms records the extension while explicit same-total budgets omit it.
  • Spec, schema documentation, renderer proof, and changelog are updated together.

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for trusted same-repo ripr work.

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal: none
Spec: docs/specs/RIPR-SPEC-0009-defaults-first-adoption.md (Pilot default extension honors total wall budget)
ADR: none
Plan item: ripr-release-plan-2026-11-29 release-readiness backlog
Governing issue or accepted claim: #16532
Acceptance delta (one sentence): A completed Pilot run that only finishes inside the automatic extension now persists that extension distinctly in human and machine-readable summaries.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): devin/1795941218-pilot-timeout-disclosure at 2aff0a0abd791c7cf736e544e9ca0445ed06cab7
Stack parent or prerequisite PR (if any): none
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): no competing candidate; no disposition needed

Scope

  • Production delta: complete Pilot summary rendering reuses one timeout-budget label and conditionally emits additive JSON timeout_extension_ms.
  • Evidence/support delta: renderer proof covers automatic-extension and explicit-budget controls across terminal, Markdown, and JSON; schema/spec documentation and a changelog fragment accompany the behavior.
  • Single acceptance criterion: a completed auto-extended run cannot be mistaken in its persisted artifacts for an explicit budget of the same total.
  • Non-goals: changing the timeout budget, retry policy, timeout partial-summary schema, or analysis behavior.

Scope Classification

This PR is scoped by:

  • One production behavior

Support-tier Impact

  • none

Claim/proof notes:

  • No support-tier or new language/analysis claim changes; this only makes existing timeout evidence truthful.

Policy Impact

  • none

Ledger or exception notes:

  • n/a

Proof

cargo fmt --check
cargo test -p ripr --lib complete_summary_discloses_an_automatic_timeout_extension
cargo test -p ripr --lib output::pilot::tests::
cargo xtask check-fast

Result, failures, or skipped proof:

  • Focused renderer test passed, including the explicit 270-second negative control.
  • All 134 output::pilot unit tests passed.
  • cargo fmt --check passed.
  • cargo xtask check-fast result is recorded in the final PR comment/review evidence if it completes after publication.

Claim Boundary

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

  • Complete Pilot summaries distinguish automatic extension from an explicit same-total budget. No timeout behavior, schedule, or success-rate claim changes.

Rollback

How can this PR be reverted safely?

  • Revert this PR; the prior flat timeout rendering and JSON shape return without data migration.

Spec-Test-Code Traceability

  • Spec: docs/specs/RIPR-SPEC-0009-defaults-first-adoption.md
  • Tests: crates/ripr/src/output/pilot/tests.rs::complete_summary_discloses_an_automatic_timeout_extension
  • Code: crates/ripr/src/output/pilot/render/complete.rs
  • Golden outputs: n/a
  • Metrics: n/a
  • ADR/learning: n/a

Static Language Check

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

CI Economics

n/a

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

  • Formatting: 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

Link to Devin session: https://app.devin.ai/sessions/47acec3a49fc42f98c500b10f8310c2f
Open in Devin Desktop: https://app.devin.ai/desktop/session/47acec3a49fc42f98c500b10f8310c2f?variant=devin
Requested by: @EffortlessSteven


🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

Devin Review

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 139 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

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: 067c3e26-b91f-4d36-abd4-a462872ad813
Commits

Reviewing files that changed from the base of the PR and between 40b77e3 and 6e48a0e.

Files selected for processing: 6

  • changelog.d/16532-pilot-timeout-extension.md
  • crates/ripr/src/output/pilot/render/complete.rs
  • crates/ripr/src/output/pilot/tests.rs
  • crates/ripr/src/output/pilot/types.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0009-defaults-first-adoption.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the 'ripr pilot' complete summaries to disclose when the default analysis budget was automatically extended. It introduces a helper function 'timeout_budget_label' to format the timeout display in Markdown and terminal outputs, showing both the default budget and the automatic extension. Additionally, the JSON summary now includes a 'timeout_extension_ms' field when an extension occurs. These changes are accompanied by corresponding unit tests and updates to the specification documentation. There are no review comments, and the implementation looks solid, so I have no additional feedback to provide.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@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 findings. Devin automatically fixed all 2 findings.

Fixed by Devin (2)
  • Schema omits the partial-run exception — Clarified that timeout_extension_ms is emitted only by complete summaries and is absent from partial timeout summaries.
  • Missing timeout disclosure test mapping — Added the new complete-summary timeout disclosure test to the SPEC-0009 test mapping.

View findings in Devin Review · Follow Devin's work

Devin Review

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot marked this pull request as draft November 29, 2026 08:55
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@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.

REVIEW_HELD for head d0f2e22 (native-Windows evidence-only review)

Independent source review of pilot: disclose automatic timeout extension (PR #16607) found one blocking issue before any native lane is worthwhile:

Generation-map conflict. This PR bumps the seam-cache schema versions to full 1.230 / sharded 0.232 / compact 0.232 (#16400), but per the generation map maintained on #16466, 1.230/0.232 is already claimed in flight by #16447 (banked at 85f6ce0), and 1.231/0.233 (#16162) and 1.232/0.234 (#16143) are claimed as well. The map's next free pair is now 1.234 / 0.236 (after #16557's verified 1.233/0.235 claim posted today). The PR's own claim comment ("1.227 is claimed in flight") is stale relative to the map.

Required before relane: rebase onto current main and re-bump all three constants (full, sharded, compact — lockstep) to >= 1.234 / 0.236, updating the claim comment to reference #16466's current state. This is a one-line-scale change per constant plus comment; the rest of the delta (timeout-extension disclosure across pilot surfaces) read clean at skim level and will be fully reviewed at the new head.

Merge mechanics belong to the writer; this review is evidence only.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

This hold appears misrouted. At reviewed head d0f2e22346 and current head 6e48a0e1b515f50bd3369a2cdd9614a3bec3ca90, this PR's diff touches only:

  • changelog.d/16532-pilot-timeout-extension.md
  • crates/ripr/src/output/pilot/render/complete.rs
  • crates/ripr/src/output/pilot/tests.rs
  • crates/ripr/src/output/pilot/types.rs
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0009-defaults-first-adoption.md

The PR diff does not change the full, sharded, or compact seam-cache schema constants, and git diff origin/main...HEAD has no match for 1.230, 0.232, cache_schema, or a generation-map claim. The only 1.227 / 1.230 / 0.232 text I can find on this PR is inside this review comment itself. No rebase or schema re-bump is applicable to #16607; this evidence may belong to a different cache-schema PR.

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