feat(api): inspect analysis-run retry children on loopback - #379
Draft
seonghobae wants to merge 1 commit into
Draft
Conversation
GAP-003A GET /v1/analysis-runs/{run_id}/retries returns metric-free
direct retry children of a listed parent so operators can inspect
lineage after retry. Empty retries is 200 when the parent was never
retried. Stacked on stored-request GET. ADR 0035.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Aug 31, 2026
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.
Summary
GAP-003A operator-visible retry-lineage GET on the loopback analysis-run surface.
GET /v1/analysis-runs/{run_id}/retriesreturns the metric-free direct retry children of a listed parent so operators can inspect lineage after retry. Collection GET (#368) lists parent and child independently. Retry HTTP (#369) clones without exposing parent/child linkage. Stored-request GET (#377) inspects snapshot/cutoff/model/profile, not children.Stacked on #377 (
f80bd97c) over retry #369 over collection #368 over cancel #361 over protectedmain.Issue: #166
Contract
run_id/run_state/idempotency_keyplusretries[]ofrun_id/run_state/idempotency_key.rmse,bias,coverage, SE-gate,scientific_acceptance,report,terminal_result,tenant_workspace_id,snapshot_id.retriesis200when the parent exists and was never retried.run_id→ 413. More than 64 children → 413./cancel,/retry,/request,/running,/terminal.retried_from. Stored-request GET remains 200 and does not list children.ADR
This slice uses ADR 0035 (
docs/adr/0035-analysis-run-retry-lineage-get.md).Do not reuse 0030 (#362/#364/#373), 0031 (#368), 0032 (#369/#370/#371), 0033 (#372/#375/#378), 0034 (#374/#377), or 0036 (#376). Next free ADR is 0037.
Not this PR (live — do not duplicate)
df33bfa3)96a34a41)42e05e31)99464037)dba3db0e)d8f3c5fa)b7a039b8)6a5d9777)58bfc40d)3f9e2d8b)f7d5e5a3)cc8ed995)837a18ab)442b159d)409a7bdc)58bacd75)f80bd97c) — this PR's basec891d46a)Verification (local)
cargo clippy -p tepp_api --all-targets -- -D warningscargo test -p tepp_api --all-targets(87 lib tests including retry-lineage)RUSTDOCFLAGS='-D warnings' cargo doc -p tepp_api --no-depspython3 scripts/validate_documentation.pypython3 scripts/check_docstrings.pyHead:
2040a763505aba35daca131a73924f268d60344dDo not self-approve. Do not
--adminmerge. Ruleset 18156473 requires two independent current-head APPROVE reviews. Copilot/Devin/CodeRabbit COMMENTED is not independent APPROVE.