Skip to content

feat(api): retrieve stored temporal-context requests by extra-segment GET - #463

Closed
seonghobae wants to merge 1 commit into
feat/temporal-context-retrieval-get-gap-003afrom
feat/temporal-context-stored-request-get-gap-003a
Closed

feat(api): retrieve stored temporal-context requests by extra-segment GET#463
seonghobae wants to merge 1 commit into
feat/temporal-context-retrieval-get-gap-003afrom
feat/temporal-context-stored-request-get-gap-003a

Conversation

@seonghobae

@seonghobae seonghobae commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Folded into #464

Closed as superseded_by_fold, not discarded. #464's head contains this PR as its direct ancestor and has been retargeted to this PR's former base, so the stored-request GET code/tests and this PR's review history remain intact while queue WIP is reduced.

Canonical landing vehicle: #464 (feat(api): consolidate temporal-context stored-request GET and CLI).

Do not reopen unless the folded head demonstrably loses unique behavior or evidence.

… GET

GAP-003A unique slice: GET /v1/temporal-context/{idempotency_key}/request returns the accepted LineageWeave create request on AnalysisRunLiveService / tepp-loopback. Metric-free of RMSE/tepp.scientific_acceptance.v1. inference_status remains temporal_association_only. Naruon refused. NaruonLiveService stays POST-only. ADR 0091.
@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: a428ceff-6d79-4298-baa6-e7eb5de4c31a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@devin-ai-integration devin-ai-integration 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.

Devin Review found 1 potential issue.

Devin Review

Comment on lines +207 to +208
self.accepted_temporal_contexts
.insert(replay_key, (context_request.clone(), item));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Failed POSTs leave retrievable requests

When the generated response exceeds 64 KiB, insert stores the request before serialization returns an error. Both GET endpoints then expose a failed POST.

Prompt for agents
In crates/tepp_api/src/analysis_run_live.rs, accept_temporal_context mutates accepted_temporal_contexts before build_temporal_context and TemporalContextResponse::to_json complete. A temporal-context request can fit its 64 KiB input limit while the expanded response exceeds the same output limit, causing POST to return LimitExceeded after the registry has already changed. Reorder the operation so all response construction and serialization succeeds before inserting a new idempotency entry, while preserving exact replay and conflict behavior.
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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