refactor(responses): remove dormant stateful runtime dependencies - #944
refactor(responses): remove dormant stateful runtime dependencies#944hanakannzashi wants to merge 2 commits into
Conversation
🧭 IronLoop Run · ReviewThis comment updates in place as the Run moves through its stages. 🟩 Final result · Completed
Automatic trigger · attempt 1 of 3 · completed in 1m 26s IronLoop completed the review and posted it to GitHub. 🔗 Result |
There was a problem hiding this comment.
🔍 IronLoop review
🟢 No actionable findings
No actionable defects found. The refactor consistently retires stateful Conversations, Files, and response-history paths while preserving authenticated retirement responses and request-scoped stateless response execution.
Validation
- ✅ Static review — Inspected all changed files, surrounding route wiring, stateless validation, response processing, and transient repository behavior.
- ✅ Diff integrity — The complete change contains no whitespace or patch-format errors.
Review details
- Run:
2ac220c4-8b78-48cd-836b-d2bcf8c39dba - Workflow: Review
- Attempts: 1
|
Reviewed the removal for completeness and for behavior parity on the retained stateless path. Mechanically clean. No dangling references remain to 1. Client-supplied
|
5d506b2 to
3b15bd8
Compare
3e8e606 to
b5ab148
Compare
3b15bd8 to
1be1e87
Compare
|
Rebased this cleanup branch onto the updated #943 head. Addressed the two scoped review items here:
No schema, migration, data, or retention changes are included. |
b5ab148 to
f20cbbe
Compare
1be1e87 to
76b6c1b
Compare
4c662a9 to
55d899f
Compare
Stage I scope clarificationThis stacked cleanup deliberately does not remove Conversation/File routes, services, S3 wiring, schemas, or retained data. Those remain required for the temporary read-only migration views introduced by #943. Its scope is limited to dormant stateful dependencies inside the Responses runtime. Final Conversation/File and S3 removal belongs to Stage III, after the migration/archive path is complete. |
|
@ironloopai review |
Review · Status🟩 CompletedIronLoop completed the review and posted it to GitHub. ResultRun detailsManual command by think-in-universe · attempt 1 of 3 · completed in 26m 25s |
|
Re-reviewed at head Previously raised, now resolved
Verified for this diff
Non-blocking 1.
2. Redundant clones —
let mut domain_services = init_domain_services_with_pool(
database.clone(), // -> database
config,
organization_service.clone(), // -> organization_service
inference_provider_pool.clone(), // -> inference_provider_pool
metrics_service,
).await;3. Injected test doubles are now silently ignored —
4. Two-pass The
|
There was a problem hiding this comment.
Review · Summary
🟢 No actionable findings
No actionable issues found in the reviewed change.
Validation
- ✅ Compilation — The API and services crates compile successfully.
- ✅ Responses service tests — The focused Responses service test module passed all 38 tests.
Review details
- Run:
ff709a0a-ea89-4cb4-9ffe-d6587254012f - Attempts: 1
55d899f to
5ea72e8
Compare
Summary
POST /mcpweb-search endpointAPI contract preserved by this cleanup
This PR makes no new Stage I HTTP contract change; #943 remains the authoritative endpoint-level API matrix.
POST /v1/responses410 GonePOST /v1/conversations/batch;GET /v1/conversations/{id};GET /v1/conversations/{id}/itemsno-storeDELETE /v1/conversations/{id}GET /v1/files;GET /v1/files/{id};GET /v1/files/{id}/contentno-storeDELETE /v1/files/{id}410 Gone,no-storePOST /mcp, direct Chat Completions, and ImagesDependency and merge procedure
Blocked by #943. This PR is ready for review, but it is not ready to merge while it is stacked on #943.
After #943 has merged to
main:main;main;Scope boundary
This is not the final removal of Conversations, Files, or S3. The cleanup removes stale Responses-only construction of persistent response/history repositories, ConversationService, FileService/S3, and provider-pool dependencies, plus unreachable history, file-input, and citation code. It does not remove the actual DomainServices/AppState Conversation/File/S3 wiring used by the temporary views or retained DELETE routes.
No schema, migration, retained row, S3 object, or S3 configuration cleanup is included. #947 is deferred until Files views and any archive/recovery need have been retired.
Validation on this stacked review head
cargo fmt --all -- --checkgit diff --checkcargo check -p api -p servicescargo test -p services responses::service::tests --lib(38 passed)cargo clippy -p api -p services --all-targets -- -D warningscargo test -p api --test e2e_all -- --test-threads=16— 609 passed, 0 failed, 9 ignoredThe post-#943-main restack still requires its own complete current-head CI before merge.
Closes #940
Part of #934 and #953