Repository navigation
Description
Problem
Phase E migration of the rest of ai/: the top-level ai modules and every ai/ subpackage outside ai/{review,rag,library,mcp,agents,harness,tools,toolsets}, from ai/analyze to ai/template. This item owns the 81 test files named below, by today's flat names (22,271 lines, 878 tests) [measured: AST pass at 5c45b1e]. #1313 places most of them under tests/ai/ outside the directories of #1328, #1329 and #1330; a file named here belongs to this item wherever #1313 places it.
ai/client:test_ai_client_{credentials,finish_reasons,network,providers_and_embeddings,retries,security,structured,telemetry}.py,test_ai_gateway_base_url.py,test_ai_request_priority.py,test_ai_streaming.py,test_ollama_dynamic_leasing.py,test_thinking_providers.py.ai/spend:test_ai_spend_{dispatch,ledger,payoff,pricing,prometheus}.py,test_ai_served_by.py.ai/analyze,ai/ast,ai/benchmarkandai/personas:test_ai_analyze_outlines.py,test_analyze.py,test_ai_init.py,test_ast_more_languages.py,test_treesitter_{engine,native_symbols}.py,test_ai_benchmark.py,test_embedding_benchmark.py,test_personas.py,test_custom_personas.py.ai/chaos,ai/controller,ai/diff,ai/modelsandai/spec:test_ai_chaos_model.py,test_ai_controller.py,test_difftastic.py,test_pydantic_ai_ollama.py,test_ai_spec.py.ai/providers:test_providers.py,test_openai_auth.py.- The library-named files:
test_pydantic_ai_{concurrency,direct,durable,format_prompt,function_signature,output,profiles_and_providers,result,retries,run,settings,template,workflows}.py. - The top-level modules:
test_ai_{capability,diagram,explain,fixer,gateway,gateway_portkey,gateway_tune,inspection,prompt_eval,repomap,task_loader,test_gen}.py,test_ast_stream.py,test_{common_tools,native_common_tools}.py,test_consolidation_ast_cache.py,test_context_budget.py,test_context_packer.py,test_ext_langchain.py,test_finding_repetition_compression.py,test_instruction_generator.py,test_kb.py,test_model_bundle.py,test_pipeline_protocol.py,test_repomap.py,test_response_cache.py,test_review_{finding_losses,location_paths}.py,test_run_comparison.py,test_run_store.py,test_schema_reflection.py,test_thinking.py.
25 of these files also drive their module through a command, with 128 CliRunner invocations in all; test_analyze.py (20) and test_run_comparison.py (18) have the most.
The evidence:
- Tests patch internals. 151 of the 242 patch sites target a devops_cli name, in 40 files, and the files import 88 private names: 25 from
ai/analyze/outlinesintest_ai_analyze_outlines.pyand 15 intest_analyze.py[measured: census AST pass, recounted at 5c45b1e].LLMClientand its private methods are patched 15 times.track_request_spend10,count_tokens7,new_http_client6.- Seven sites shrink a module constant to reach a size limit, for example
MAX_REPOMAP_FILE_SIZE_BYTESandDEFAULT_AI_MAX_RESPONSE_BYTES. test_analyze.pyalone has 28 internal sites, most of themcommands.analyzeandgit.operationsnames.test_run_store.pyhas 15, reaching into review, gateway and settings.- At the edges:
ai.gateway_tune.subprocess.run7,sys.modules7, sleeps 7. tests/llm_stream_fakes.pyinstalls its transport by patching the private_shared_client/_create_http_client[code: tests/llm_stream_fakes.py:98-101, :120-127]. Eleven files of this item use it.test_embedding_benchmark.pyusesstub_web, which refactor(cli): Unify HTTP and DNS seams with shared fakes #1314 keeps only for it andtest_github_client.py.
- The legacy provider layer has no production caller.
ai/providers/{anthropic,openai,ollama,copilot,base}.pyand the registry_PROVIDERS/register_provider/get_provider[code: ai/providers/init.py:22-39] are reachable only from tests.- The
aiandai.agentsfacades re-export them [code: ai/init.py:267, :276; ai/agents/init.py:438, :447]. tests/mock_provider.pyadapts this layer and is registered for the whole session [code: tests/conftest.py:58-64].- refactor(ai): one agent runtime behind one construction point, with no silent fallback #1005 and refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001 both plan to delete
ai/providers/.
- Edges are reached without a seam.
- Direct spawns [code: ai/gateway.py:322; ai/gateway_tune.py:432].
- Inline
httpx2.Clients and gets [code: ai/gateway.py:250, :384, :591; ai/pool_load.py:49; ai/spend/pricing.py:463, :472]. - The genai-prices fetch [code: ai/spend/pricing.py:475] and tiktoken's BPE download, whose failure falls back silently [code: ai/context_budget.py:22-34].
- Inline
LLMClient(...)[code: ai/chaos/injector.py:68; ai/benchmark/runner.py:236; ai/client/unified.py:1009; ai/pydantic_ai_bridge.py:274]. refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001 routes every such construction through its factory. test_analyze.pyreplaces the PyGithubGitHubClienttwice. PyGithub keeps its own HTTP stack until refactor(github): pull request, repository and ssh key calls move from pygithub onto the github session #891 moves those calls onto refactor(github): the github session owns transport, ledger, error classes and link pagination #983's GitHub session.
- Durable backends. Temporal, DBOS and Prefect are built in
resolve_durability_capability[code: ai/durable.py:472, :524, :539, :554]. Its only caller iscreate_durable_pydantic_agent[code: ai/durable.py:571], which nothing insrccalls. Tests fake their availability throughsys.modules(6 sites). - A mock fallback.
LLMClient.backend_typereturns"mock"when the configured provider is not a string [code: ai/client/unified.py:255-258]. - Logic in commands (Q19).
- The gateway liveness and model probe, with its own
httpx2.Client[code: commands/ai_gateway.py:165, :174]. - The benchmark runners [code: commands/benchmark.py:117, :162].
- Baseline lookup [code: commands/ai_runs.py:556].
- The gateway liveness and model probe, with its own
- Shape.
- The 14
test_pydantic_ai_*files are named after the library rather than the module they test. test_common_tools.pyandtest_native_common_tools.pytest one module, and so dotest_repomap.pyandtest_ai_repomap.py.- Catch-alls include
test_outline_extended_branches[code: tests/test_ai_analyze_outlines.py:260] andtest_llm_client_streaming_and_error_branches[code: tests/test_ai_client_providers_and_embeddings.py:288]. - 21 module-level
runner = CliRunner()and 14 redundant@pytest.mark.asynciomarkers.
- The 14
Acceptance criteria
Doubles only at edges
- No test of this item patches a devops_cli name or imports a private one. Today that is 151 sites and 88 imports.
- Model traffic goes through refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001's seam and fake. This item's eleven users of
tests/llm_stream_fakes.pymove to refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001's fake. Three test(review): ai/review and review/ are tested through one public interface over the model, tool-executor and process fakes, with no mock detection in src #1328 files import the module too (test_review_path.py,test_review_reply_caps.py,test_review_verification.py), so whichever of test(review): ai/review and review/ are tested through one public interface over the model, tool-executor and process fakes, with no mock detection in src #1328 and this item lands second deletes it, once nothing imports it. - This item confirms that no inline
LLMClient(...)construction remains in its packages, the four above included. - HTTP and DNS go through refactor(cli): Unify HTTP and DNS seams with shared fakes #1314, including the gateway probes,
pool_loadand the pricing fetches. Processes go through refactor(cli): one process runner owns execution, process groups and dry-run #775. API keys come from refactor(security): one keyring seam owns the keyring and the Secret Service lock check, with a shared keyring fake and its contract suite #1318. Run-store Valkey and embeddings come from refactor(ai): Valkey, Qdrant and the embedder each have one seam, with shared fakes and contract suites #1317. Spans and metrics are read from refactor(telemetry): OTLP export goes through one exporter seam, and tests read exported spans and metrics from a shared fake #1319. Retry waits and polling use refactor(cli): tests control time: time-machine fakes wall-clock reads, and retry and rate-limit waits return at once and are recorded #1320's clock through tenacity's and pydantic-ai'ssleephooks (Q30). -
test_embedding_benchmark.pyuses refactor(cli): Unify HTTP and DNS seams with shared fakes #1314's HTTP fixture, notstub_web. Whichever of test(github): github/ is tested through its public interface over the gh process and session fakes, with no internal patches or private imports #1321 and this item lands second deletesstub_web. -
test_analyze.py's GitHub calls run on refactor(github): the github session owns transport, ledger, error classes and link pagination #983's session fake, which reaches them once refactor(github): pull request, repository and ssh key calls move from pygithub onto the github session #891 has moved them off PyGithub. git runs for real in temporary repositories (Q23). - No test patches a module constant to reach a limit.
- Token counts are deterministic offline, with no network attempt.
Dead code and accommodations (Q22, Q25, Q27)
- The legacy provider layer is gone, deleted here unless refactor(ai): one agent runtime behind one construction point, with no silent fallback #1005 or refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001 already has:
ai/providers/{anthropic,openai,ollama,copilot,base}.py;_PROVIDERS,register_providerandget_provider, with their facade re-exports;tests/mock_provider.pyand its session fixture;test_providers.pyandtest_openai_auth.py;- the legacy cases elsewhere:
test_pydantic_ai_profiles_and_providers.py:230-253,test_rag_loopback_policy.py:126-127andtest_security_sandbox_and_protection.py:134.
- The durable backends are settled one of two ways. Either they get one seam, with a fake and a contract suite, because a public behaviour reaches them. Or they are deleted with
resolve_durability_capability, and withcreate_durable_pydantic_agentif refactor(ai): one agent runtime behind one construction point, with no silent fallback #1005 has not already removed it. The PR shows the caller search. - The
"mock"fallback inbackend_typeis gone.
Logic out of commands/ (Q19)
- The gateway probe moves to
ai/gateway.py, the benchmark runners toai/benchmark/and baseline lookup toai/run_store.py, each behind a public function and tested there. - The command cases in these files become CLI tests under
tests/commands/on test(cli): the hermetic floor fails a test that reaches an edge without a fake and resets all process-wide state after every test #1310'sclifixture and check only parsing, wiring, output and exit codes (Q14). Their domain cases test theai/module directly.
Behaviour files and names
- One file per behaviour, named after it (Q10, Q8). The library-named files are renamed after their subject. The two common-tools files merge, as do the two repomap files, and the catch-alls dissolve.
-
test_run_store.pykeeps only run-store behaviour. Its review and gateway cases move to those packages. - Prompt texts whose whole text is the contract (personas, context packing) are syrupy snapshots (Q18).
- The 21 module-level
CliRunner()s give way to test(cli): the hermetic floor fails a test that reaches an edge without a fake and resets all process-wide state after every test #1310'sclifixture (Q14), and the 14 redundant@pytest.mark.asynciomarkers go.
Ratchets and coverage
- If test(cli): ratchets hold internal patches, private imports and test accommodations in src at today's counts and name each site that would raise one #1309 has landed, its ceilings drop by this item's removals, and the PR body states the counts before and after.
- If test(cli): the hermetic floor fails a test that reaches an edge without a fake and resets all process-wide state after every test #1310 added its interim
unreachable(...)marker, none remains in this item's files. A test that relied on the refusal installs the edge's fake in its refusing state. - Unreachable lines are deleted (Q22). Coverage stays at or above 90%.
-
uv run devops cipasses.
Key questions
- Who deletes the legacy provider layer? Decided 2026-10-07: it is dead code and goes with
tests/mock_provider.py(Q25), in its package's item, which is this one (Q22). refactor(ai): one agent runtime behind one construction point, with no silent fallback #1005 and refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001 each plan to deleteai/providers/too; if either lands first, this item only checks that the files and re-exports are gone. - Who routes the inline
LLMClient(...)constructions? (proposed) refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001, whose criteria already remove every construction outside its factory and which lands before this item through its native link. This item confirms none remain in its packages. - Durable backends: seam or deletion? Decided 2026-10-07: they get a seam when their package migrates, and a line no public behaviour reaches is deleted (Q22). At 5c45b1e nothing public reaches them.
- Limits that tests shrink by patching constants? (proposed) A limit a test must cross becomes a setting that test(cli): the hermetic floor fails a test that reaches an edge without a fake and resets all process-wide state after every test #1310's
configfixture writes, or the test builds an input past the real limit. - Tokenizer offline? (proposed) Tests select the heuristic counter explicitly. One live test checks tiktoken where its encoding is already cached.
- Which files? Decided 2026-10-07: each file goes to the package owning most of what it tests (Q17). Every test file is named in exactly one child's list, so the list above is this item's share wherever test(cli): every test file sits in the directory mirroring the package it tests or in tests/invariants/, and the root conftest holds only the hermetic floor #1313 places a file.
test_review_finding_losses.pyandtest_review_location_paths.pytestai/review_schema.py, a top-level module.test_analyze.pyreferencesai/analyze/most, so it is listed here, as test(ai): devops review, devops analyze and the devops ai commands are thin adapters tested over the model seam and edge fakes #1326 expects.
Strategic alignment
- Depends on: test(cli): every test file sits in the directory mirroring the package it tests or in tests/invariants/, and the root conftest holds only the hermetic floor #1313, refactor(cli): one process runner owns execution, process groups and dry-run #775, refactor(github): pull request, repository and ssh key calls move from pygithub onto the github session #891, refactor(github): the github session owns transport, ledger, error classes and link pagination #983, refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001, refactor(cli): Unify HTTP and DNS seams with shared fakes #1314, refactor(ai): Valkey, Qdrant and the embedder each have one seam, with shared fakes and contract suites #1317, refactor(security): one keyring seam owns the keyring and the Secret Service lock check, with a shared keyring fake and its contract suite #1318, refactor(telemetry): OTLP export goes through one exporter seam, and tests read exported spans and metrics from a shared fake #1319, refactor(cli): tests control time: time-machine fakes wall-clock reads, and retry and rate-limit waits return at once and are recorded #1320. Blocks: test(cli): Convert ratchets to bans and merge invariant tests #1336. Related: test(cli): ratchets hold internal patches, private imports and test accommodations in src at today's counts and name each site that would raise one #1309 (ratchets), refactor(ai): one agent runtime behind one construction point, with no silent fallback #1005 (deletes the native agent path,
ai/providers/andai/direct.py), refactor(ai): one structured-output path for validate, repair, reflect and retry #1003 (structured output), test(github): github/ is tested through its public interface over the gh process and session fakes, with no internal patches or private imports #1321 (the otherstub_webuser), test(ai): devops review, devops analyze and the devops ai commands are thin adapters tested over the model seam and edge fakes #1326 (AI commands, includingcommands/analyze.py), test(review): ai/review and review/ are tested through one public interface over the model, tool-executor and process fakes, with no mock detection in src #1328 (the otherllm_stream_fakes.pyuser), test(mcp): mcp, agent and tool tests run on edge fakes #1330 (removes theALLOW_MODEL_REQUESTSreader in the bridge). - Parent: test(cli): tests double only process edges and mirror the source tree #1307 (phase E).
- Evidence tags are explained in test(cli): tests double only process edges and mirror the source tree #1307. Here [code: path:line] lines are at 5c45b1e, the release/v0.2.28 head, and the per-item counts were recounted there.
Update 2026-10-08: refinement
Per the owner's #1001 decision, #1005 keeps the pydantic-ai route, so this item alone deletes the legacy layer: the classes, _PROVIDERS, register_provider and get_provider (ai/providers/__init__.py:15-39), their re-exports (ai/__init__.py:267, :276; ai/agents/__init__.py:438, :447), and tests/mock_provider.py with its fixture. It keeps ai/providers/__init__.py:42-110 and ai/direct.py.
Proposed design
Problem statement
The 81 test files in this item test AI modules by patching internals, importing private names, and reaching edges without a seam. They also test a legacy provider layer that no production code calls. This item migrates all 81 files to test through public interfaces on edge fakes, deletes the dead provider layer and unreachable durable backends, moves command-level logic into the ai/ packages it tests, and renames files to match their subject.
Acceptance criteria
- Criterion 1: No test in this item patches a devops_cli name or imports a private name.
Verification: Run an AST scan across the 81 test files. The count of monkeypatch.setattr calls targeting devops_cli names and from-imports of underscore-prefixed names is zero. - Criterion 2: Model traffic in these tests goes through refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001's seam and fake.
Verification: No test file in this item imports from tests/llm_stream_fakes.py. The eleven former users import refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001's fake module instead. - Criterion 3: No inline LLMClient(...) construction remains in the packages this item covers.
Verification: An AST scan of ai/client, ai/spend, ai/analyze, ai/ast, ai/benchmark, ai/personas, ai/chaos, ai/controller, ai/diff, ai/models, ai/spec, and the top-level modules finds no LLMClient constructor call outside refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001's factory. - Criterion 4: HTTP, DNS, processes, API keys, Valkey, embeddings, spans, metrics, and retry waits use the designated seams.
Verification: No test file in this item opens a raw socket, spawns a process directly, reads an API key from the environment, or patches a sleep function. It uses refactor(cli): Unify HTTP and DNS seams with shared fakes #1314, refactor(cli): one process runner owns execution, process groups and dry-run #775, refactor(security): one keyring seam owns the keyring and the Secret Service lock check, with a shared keyring fake and its contract suite #1318, refactor(ai): Valkey, Qdrant and the embedder each have one seam, with shared fakes and contract suites #1317, refactor(telemetry): OTLP export goes through one exporter seam, and tests read exported spans and metrics from a shared fake #1319, and refactor(cli): tests control time: time-machine fakes wall-clock reads, and retry and rate-limit waits return at once and are recorded #1320 fixtures. - Criterion 5: test_embedding_benchmark.py uses refactor(cli): Unify HTTP and DNS seams with shared fakes #1314's HTTP fixture, not stub_web.
Verification: test_embedding_benchmark.py imports the refactor(cli): Unify HTTP and DNS seams with shared fakes #1314 fixture. It does not import stub_web. - Criterion 6: test_analyze.py's GitHub calls run on refactor(github): the github session owns transport, ledger, error classes and link pagination #983's session fake.
Verification: test_analyze.py uses the GitHub session fixture. It does not patch PyGithub's GitHubClient. - Criterion 7: No test patches a module constant to reach a size limit.
Verification: An AST scan finds no monkeypatch.setattr targeting a module-level constant in the 81 test files. - Criterion 8: Token counts are deterministic offline with no network attempt.
Verification: Tests select the heuristic counter explicitly. No test makes a network call to download tiktoken BPE data. - Criterion 9: The legacy provider layer is deleted.
Verification: The files ai/providers/anthropic.py, ai/providers/openai.py, ai/providers/ollama.py, ai/providers/copilot.py, and ai/providers/base.py do not exist. The names _PROVIDERS, register_provider, and get_provider are absent. tests/mock_provider.py, test_providers.py, and test_openai_auth.py are deleted. The facade re-exports in ai/init.py and ai/agents/init.py are removed. - Criterion 10: The durable backends are deleted because no public behaviour reaches them.
Verification: The functions resolve_durability_capability and create_durable_pydantic_agent are removed from ai/durable.py. No test fakes Temporal, DBOS, or Prefect through sys.modules. - Criterion 11: The mock fallback in LLMClient.backend_type is removed.
Verification: The code at ai/client/unified.py that returns the string mock when the provider is not a string is deleted. - Criterion 12: The gateway probe, benchmark runners, and baseline lookup move to their ai/ modules.
Verification: commands/ai_gateway.py no longer contains the probe logic. commands/benchmark.py no longer contains the runner logic. commands/ai_runs.py no longer contains the baseline lookup. The logic is in ai/gateway.py, ai/benchmark/, and ai/run_store.py behind public functions. - Criterion 13: One file per behaviour, named after the subject it tests.
Verification: No test file is named after a library. The two common-tools files are merged into one. The two repomap files are merged into one. Catch-all test functions are split into named behaviour tests. - Criterion 14: test_run_store.py keeps only run-store behaviour.
Verification: test_run_store.py contains no test case that exercises review or gateway logic. - Criterion 15: Prompt texts whose whole text is the contract use syrupy snapshots.
Verification: Persona and context-packing prompt assertions use syrupy's snapshot matcher. No test hard-codes the full prompt text inline. - Criterion 16: Module-level CliRunner instances give way to test(cli): the hermetic floor fails a test that reaches an edge without a fake and resets all process-wide state after every test #1310's cli fixture.
Verification: No test file in this item contains the assignment runner = CliRunner(). The 21 occurrences are replaced by the cli fixture. - Criterion 17: Redundant pytest.mark.asyncio markers are removed.
Verification: The 14 redundant markers are deleted. The remaining markers are only where async is not inferred. - Criterion 18: If test(cli): ratchets hold internal patches, private imports and test accommodations in src at today's counts and name each site that would raise one #1309 has landed, its ceilings drop by this item's removals.
Verification: The PR body states the ratchet counts before and after the change. - Criterion 19: If test(cli): the hermetic floor fails a test that reaches an edge without a fake and resets all process-wide state after every test #1310 added its interim unreachable marker, none remains in this item's files.
Verification: A grep for the unreachable marker across the 81 test files returns zero hits. - Criterion 20: Coverage stays at or above 90% and CI passes.
Verification: The command uv run devops ci completes with all checks green and coverage at 90% or above.
Key questions
- Who deletes the legacy provider layer?: This item deletes it. The classes, _PROVIDERS, register_provider, get_provider, their re-exports, tests/mock_provider.py, test_providers.py, and test_openai_auth.py are removed here. If refactor(ai): one agent runtime behind one construction point, with no silent fallback #1005 or refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001 lands first and removes them, this item only confirms the files and re-exports are gone. (proposed)
- Who routes the inline LLMClient(...) constructions?: refactor(ai): one model seam: llmclient over three wire adapters behind one factory, no second provider stack #1001 routes every construction through its factory. This item confirms that no inline LLMClient(...) construction remains in its packages. (proposed)
- Durable backends: seam or deletion?: They get a seam when their package migrates and a public behaviour reaches them. A line no public behaviour reaches is deleted. At 5c45b1e nothing public reaches them, so resolve_durability_capability and create_durable_pydantic_agent are deleted. (proposed)
- Limits that tests shrink by patching constants: how are they handled?: A limit a test must cross becomes a setting that test(cli): the hermetic floor fails a test that reaches an edge without a fake and resets all process-wide state after every test #1310's config fixture writes. Alternatively, the test builds an input past the real limit. (proposed)
- Tokenizer offline: how do tests get deterministic token counts?: Tests select the heuristic counter explicitly. One live test checks tiktoken where its encoding is already cached. (proposed)
- Which files belong to this item?: Each file goes to the package owning most of what it tests. Every test file is named in exactly one child's list. test_review_finding_losses.py and test_review_location_paths.py test ai/review_schema.py, a top-level module. test_analyze.py references ai/analyze/ most and is listed here. (proposed) [sources: tests/test_ai_analyze_outlines.py, tests/test_analyze.py]
Open questions
- Limits that tests shrink by patching constants? (proposed) A limit a test must cross becomes a setting that test(cli): the hermetic floor fails a test that reaches an edge without a fake and resets all process-wide state after every test #1310's
configfixture writes, or the test builds an input past the real limit. - Tokenizer offline? (proposed) Tests select the heuristic counter explicitly. One live test checks tiktoken where its encoding is already cached.
- Which files? Decided 2026-10-07: each file goes to the package owning most of what it tests (Q17). Every test file is named in exactly one child's list, so the list above is this item's share wherever test(cli): every test file sits in the directory mirroring the package it tests or in tests/invariants/, and the root conftest holds only the hermetic floor #1313 places a file.
test_review_finding_losses.pyandtest_review_location_paths.pytestai/review_schema.py, a top-level module.test_analyze.pyreferencesai/analyze/most, so it is listed here, as test(ai): devops review, devops analyze and the devops ai commands are thin adapters tested over the model seam and edge fakes #1326 expects.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
#1313, #1314, #1317, #1318, #1319
Alternatives check of 2026-10-31: not-applicable.
Tool: none found.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
A large but non-blocking Phase E migration that improves test maintainability and removes dead code, with no user-facing defect or security risk.Decoupling 878 tests from 151 internal patch sites and deleting an unreferenced provider layer significantly reduces brittleness and maintenance cost for the AI runtime.81 test files spanning 22,271 lines and 878 tests must be rewritten to use public interfaces, plus the legacy provider layer and its re-exports must be removed from source.dan-petty commentedon Oct 8, 2026
Linked: #1381 leaves the legacy providers' raw clients to this item. #1121 deletes the three durable engines; this item's Q22 decision deletes the rest of the durable layer, and whichever lands second drops what the other removed. Found by the 2026-10-08 backlog review.
dan-petty commentedon Oct 26, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The item improves test coverage and quality but is not critical for immediate delivery.Improving test coverage for AI modules helps ensure better stability and correctness of the system.The effort involves significant refactoring of tests and migration to edge fakes, which is moderately complex.dan-petty commentedon Oct 28, 2026
Refine cannot set this item to Ready at 0b76871 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
configfixture writes, or the test builds an input past the real limit.test_review_finding_losses.pyandtest_review_location_paths.pytestai/review_schema.py, a top-level module.test_analyze.pyreferencesai/analyze/most, so it is listed here, as test(ai): devops review, devops analyze and the devops ai commands are thin adapters tested over the model seam and edge fakes #1326 expects.devops-cli-service commentedon Oct 31, 2026
Alternatives check: not-applicable
Tool: none found
Checked on 2026-10-31. A person decides what this means for the item. The check changes no label and closes no issue.
test(ai): test remaining ai modules through public interfaces on edge…