Skip to content

feat(api): resolve analysis-run identity from LineageWeave and Naruon - #402

Draft
seonghobae wants to merge 1 commit into
feat/analysis-run-idempotency-lookup-get-gap-003afrom
feat/analysis-run-idempotency-lookup-consumer-parity-gap-003a
Draft

feat(api): resolve analysis-run identity from LineageWeave and Naruon#402
seonghobae wants to merge 1 commit into
feat/analysis-run-idempotency-lookup-get-gap-003afrom
feat/analysis-run-idempotency-lookup-consumer-parity-gap-003a

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Why

GAP-003A / issue #166 still has no LineageWeave idempotency-lookup exchange builder, no Naruon compatibility-listener inspect, and no tepp-loopback TCP proof of a durable run_id from a 202 receipt key. ADR 0037 / #380 added GET /v1/analysis-runs/by-idempotency/{key} on AnalysisRunLiveService and the Naruon inspect builder only. A published LineageWeave consumer would have to mint a Naruon-labelled inspect. NaruonLiveService still refused every GET path.

Live slices that this PR does not duplicate:

What

Unique GAP-003A idempotency-lookup consumer-parity slice stacked on #380 over protected main 1bc02f580cf48e1d39da239f0e818453437c31c3:

Not an ADR 0014 scientific claim. Not GET status. Not lifecycle POST. Not collection GET. Not retry POST. Not retry-lineage. Not retry-parent. Not persistence. Does not open NaruonLiveService to LineageWeave.

Verification

  • cargo clippy -p tepp_api --all-targets -- -D warnings
  • cargo test -p tepp_api --lib --tests
  • cargo doc -p tepp_api --no-deps
  • python3 scripts/validate_documentation.py
  • python3 scripts/check_docstrings.py
  • crates/tepp_api/tests/lineageweave_http_contract.rs
  • crates/tepp_api/tests/naruon_live_http_contract.rs
  • crates/tepp_api/tests/loopback_binary_contract.rs
  • doctoring: docs/research/analysis-run-idempotency-lookup-consumer-parity.md

Exact-head Checks on 7034670efb5104479183fab92d913becec1db393 are required before merge. Two independent current-head APPROVEs are required. Author cannot self-approve. Merge #380 before this stacked PR, or retarget onto protected main after #380 lands. No force-push.

LineageWeave can GET /v1/analysis-runs/by-idempotency/{key} without a
Naruon-labelled exchange. NaruonLiveService serves the same metric-free
inspect for Naruon only and returns a real run_id on accepted creates.
tepp-loopback proves create-then-GET over TCP (ADR 0047).
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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