Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

ci(workflows): reduce queue demand and rebalance eight unit lanes (#2543)

Call White13e0e7b9339d
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 8fab4697f..42a21bb0d 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -8,7 +8,9 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
- cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+ # Only test runs share these groups; superseded master checks must not
+ # occupy runners needed by the latest commit. Release workflows are separate.
+ cancel-in-progress: true
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
@@ -261,11 +263,11 @@ jobs:
strategy:
fail-fast: false
matrix:
- # The last complete run still held ~77 minutes of isolated-file work.
- # Nine balanced lanes bring that work to ~8m30s each before setup,
- # without changing discovery, watchdogs or test process isolation.
- shard: [0, 1, 2, 3, 4, 5, 6, 7, 8]
- shard-total: [9]
+ # Refreshed complete-run timings balance eight lanes below nine minutes
+ # of file work, reducing the initial hosted-runner burst by one.
+ # Preserve discovery, watchdogs and one-process-per-file isolation.
+ shard: [0, 1, 2, 3, 4, 5, 6, 7]
+ shard-total: [8]
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
diff --git a/docs/plans/ci-docs-fast-path.md b/docs/plans/ci-docs-fast-path.md
index a10e87768..e967f1242 100644
--- a/docs/plans/ci-docs-fast-path.md
+++ b/docs/plans/ci-docs-fast-path.md
@@ -1,5 +1,11 @@
# Documentation-only CI fast path
+Current scheduling policy: the fast path applies to PRs. Latest-wins master
+cancellation requires every replacement master run to validate the full tree,
+including code from an older cancelled run; even a docs-only push uses full CI.
+See `ci-under-10m.md` for that follow-up contract. The original diff-classifier
+and failure-closed gate design below remain unchanged.
+
## Contract
Owner request: avoid a full `lint` run for changes that are proven to affect
diff --git a/docs/plans/ci-under-10m.md b/docs/plans/ci-under-10m.md
new file mode 100644
index 000000000..17809a224
--- /dev/null
+++ b/docs/plans/ci-under-10m.md
@@ -0,0 +1,107 @@
+# CI under ten minutes: queue demand and measured execution
+
+Owner request (2026-10-13): continue the CI optimization roadmap toward a
+complete successful `lint` result under ten minutes, including runner queue
+waits. Not permission to skip failures, publish/deploy, reset environments,
+upgrade the GitHub plan, or merge without a new explicit owner instruction.
+
+Base: master `a5c6cbf17` (#2542). Session `sesp2bd67rp9c` owns the task branch
+`vibe/20261013-ci-under-10m`; no parallel mutable owners.
+
+## Evidence and honest acceptance
+
+- #2527 execution critical path reached ~9m21s but total elapsed was 15m43s.
+ Organization Free concurrency is 20 hosted jobs. An org-wide timeline showed
+ all 20 slots busy for 348 of one shard's 381 seconds of queue wait.
+- After #2540/#2541, successful master run 38355727304 (9efb8b95c) has 540
+ complete file records, 3943 launcher seconds (3745.60s before interpreter
+ shutdown), and a 332–506s file-work imbalance across nine shards. The longest
+ job is 551s. Rebalancing eight lanes may reduce queue demand without making
+ execution exceed 600s; replay is evidence for a trial, not a guarantee.
+- Latest master run 38358514819 is **failed**, not a fast success: ARM Agent
+ setup-python's PowerShell archive extraction crashed with an internal CLR
+ error before any tests ran. Preserve this observation; do not weaken that
+ gate or mix partial failed-run data into the timing snapshot.
+- Accept only complete successful exact-head runs. Report elapsed seconds,
+ dependency critical path, ready-to-start queue gaps and total runner seconds.
+ A single run under 600s is a measured sample, not a P95 guarantee. Saturated
+ hosted capacity cannot be solved solely by YAML; surface capacity limits
+ rather than repeatedly increasing shard count.
+
+## First bounded change
+
+1. Only test workflow `lint` uses latest-wins cancellation for its existing
+ per-PR / master concurrency group. Every `push` trigger here is master;
+ publishing/deployment workflows and other PRs' groups are untouched. A
+ superseded commit may lack a completed master verdict; the newest must still
+ pass all gates. **Master pushes always use full CI**, even for a docs-only
+ before..after diff: a docs push may cancel an unvalidated earlier code push.
+ Documentation fast-path authority is retained for PRs only. This deliberate
+ trade-off was identified by the independent design reviewer and avoids
+ creating a validation gap. No manual cancellation of peers' runs.
+2. Refresh per-file launcher timings from complete successful current-generation
+ CI. Replay a separate run to check balance before trialling **eight** lanes
+ rather than nine. Keep all discovered files exactly once, isolated-process
+ watchdogs, integration exclusions and required check names.
+3. Add an **observational-only impact category** to the existing scope summary,
+ reusing its complete validated Git diff. UI-local / backend-local categories
+ are candidates for later analysis, not skip authority. Only the existing
+ docs-only decision is exposed as a workflow output; unknown/shared/mixed
+ changes stay full. No workflow condition consumes shadow telemetry.
+4. Run focused validation and first full PR CI; observe current-head review/CI
+ through one durable Watch. If the target is unmet, diagnose the actual tail
+ before another change. No inferred win from cancellation or missing jobs.
+
+## Later decisions, only after first run
+
+- Observe a real docs-only run when naturally available; do not fabricate a
+ stacked PR or introduce a force-skip input.
+- Consider grouping short checks only if worth migrating required contexts;
+ never silently delete the required checks or add placebo success wrappers.
+- Consider safe fixture overhead or batch-runner experiments only with real
+ order-independence and hermeticity proof. The current process-isolation
+ workaround remains needed until then; no broad local full-suite gate.
+- Keep Windows artifact/installer/engine coverage. Cache downloads rather than
+ user state only if observed setup dominates after queue reduction.
+
+## First candidate evidence
+
+- Snapshot: median launcher elapsed time from complete successful master runs
+ 38350418272 (`f73106bd1`, 538 files, 3843s) and 38355727304 (`9efb8b95c`,
+ 540 files, 3943s); new files use their one available measured sample. The
+ current network guard file has no sample in those runs and retains the
+ existing structural fallback, not an invented measured duration.
+- Eight-lane median planning predicts 487–488.5s of launcher work each.
+ Replaying the later source sample gives 476–503s; using only the older sample
+ to plan and holding out the newer gives 466–515s. Add roughly 30–45s measured
+ setup/cleanup overhead: eight lanes are a plausible sub-ten-minute candidate
+ with less queue demand, not a promised service-level bound.
+- Observational labels are `docs-only`, `ui-source-only`,
+ `python-source-only`, `shared-or-mixed`, `unknown`. They classify path areas,
+ not independent behavioral boundaries: App/API/routing or migration code
+ may still couple both sides. They appear only in stdout/Actions summary,
+ never `GITHUB_OUTPUT`; the sole output remains `docs_only` and no new skip
+ condition exists. Incomplete/invalid mode/event evidence yields unknown/full.
+- Independent read-only design review on contract `c4c014684` found the
+ docs-push cancellation hole above; no artifact consumer or isolation issue.
+ All assertions, installers, branch protection and release workflows remain.
+
+- Focused validation: 50 docs/event/impact cases and 62 pipeline/shard cases
+ pass in separate invocations, including a real code-B/docs-C push whose
+ effective output must be full and a matching docs PR whose output stays true.
+ The first combined probe exceeded its command deadline during execution and
+ is not counted as passing; the bounded focused reruns completed normally.
+ Ruff 0.4.9 and actionlint pass. No repository-wide local gate was run.
+- No ARM code change is needed for the observed failure: job 115166968293
+ failed inside setup-python extracting the x64 archive with PowerShell
+ `Internal CLR error (0x80131506)` / exit 3221225477, before dependency setup
+ and tests. It is not counted as success; future full master CI must verify
+ Windows Agent coverage again. No retries/failure suppression were added.
+
+## Validation boundary
+
+Existing pytest owns changed CI behavior. New cases must protect a credible
+failure mode (accidental gating on observational classification, incorrect
+path-side handling, losing required coverage or cross-PR cancellation), not
+pin tool versions for their own sake. Existing root/mode/rename/event validation
+from #2534 stays conservative. No runtime/application behavior changes.
diff --git a/scripts/ci_docs_only.py b/scripts/ci_docs_only.py
index 5fcf7ca6e..1fb6e3ab2 100644
--- a/scripts/ci_docs_only.py
+++ b/scripts/ci_docs_only.py
@@ -47,8 +47,28 @@ def revision(value: object) -> str:
return value
-def classify(event_name: str, event: dict, sha: str, repo: Path) -> tuple[bool, str]:
- """Return explicit docs/full disposition; never infer docs from partial data."""
+def impact_category(paths: list[str]) -> str:
+ """Path-area telemetry only, not evidence that other checks can be skipped.
+
+ An API file under ui/src can affect Python consumers and vice versa. These
+ labels deliberately say where code changed, not which tests are safe to omit.
+ """
+ code = [path for path in paths if not narrative_path(path)]
+ if not paths:
+ return "unknown"
+ if not code:
+ return "docs-only"
+ if all(path.startswith("ui/src/") and PurePosixPath(path).suffix in {".ts", ".tsx", ".css"}
+ for path in code):
+ return "ui-source-only"
+ if all(path.split("/", 1)[0] in {"core", "modules", "vibe", "storage", "config", "tests"}
+ and path.endswith(".py") for path in code):
+ return "python-source-only"
+ return "shared-or-mixed"
+
+
+def classify(event_name: str, event: dict, sha: str, repo: Path) -> tuple[bool, str, str]:
+ """Return docs disposition, reason, and non-authoritative impact telemetry."""
try:
if not isinstance(event, dict):
raise ValueError("event payload is not an object")
@@ -86,20 +106,23 @@ def classify(event_name: str, event: dict, sha: str, repo: Path) -> tuple[bool,
fields = raw[:-1].split(b"\0")
if len(fields) % 2:
raise ValueError("incomplete diff records")
+ paths = []
for header, name in zip(fields[::2], fields[1::2]):
meta = header.decode("ascii").split()
if len(meta) != 5 or not meta[0].startswith(":"):
raise ValueError("unexpected diff record")
old_mode, new_mode = meta[0][1:], meta[1]
if meta[4] not in {"A", "M", "D"} or {old_mode, new_mode} - {"000000", "100644"}:
- return False, "non-document file type or mode changed"
- path = name.decode("utf-8")
+ return False, "non-document file type or mode changed", "unknown"
+ paths.append(name.decode("utf-8"))
+ impact = impact_category(paths)
+ for path in paths:
if not narrative_path(path):
- return False, f"full CI required by {json.dumps(path, ensure_ascii=True)}"
- return True, f"all {len(fields) // 2} changed paths are narrative documentation"
+ return False, f"full CI required by {json.dumps(path, ensure_ascii=True)}", impact
+ return True, f"all {len(paths)} changed paths are narrative documentation", impact
except (OSError, ValueError, KeyError, TypeError, subprocess.SubprocessError) as exc:
# Do not print Git stderr, event payloads or arbitrary commit data.
- return False, f"full CI: classification unavailable ({type(exc).__name__})"
+ return False, f"full CI: classification unavailable ({type(exc).__name__})", "unknown"
def main() -> None:
@@ -107,10 +130,16 @@ def main() -> None:
event = json.loads(Path(os.environ["GITHUB_EVENT_PATH"]).read_text(encoding="utf-8"))
except (OSError, ValueError, KeyError):
event = {}
- docs_only, reason = classify(
- os.environ.get("GITHUB_EVENT_NAME", ""), event,
- os.environ.get("GITHUB_SHA", ""), Path.cwd(),
+ event_name = os.environ.get("GITHUB_EVENT_NAME", "")
+ docs_only, reason, impact = classify(
+ event_name, event, os.environ.get("GITHUB_SHA", ""), Path.cwd(),
)
+ # A master push supersedes the preceding run even when only docs changed.
+ # It must cover code inherited from that cancelled run, not merely its own
+ # before..after diff. PRs retain the reviewed documentation fast path.
+ if event_name == "push" and docs_only:
+ docs_only = False
+ reason = "latest master push validates the whole tree, including superseded code changes"
# Output/write failures remain job failures; consumers require success AND
# a literal disposition, so no missing output can authorize a skip.
output = os.environ.get("GITHUB_OUTPUT")
@@ -118,10 +147,14 @@ def main() -> None:
with Path(output).open("a", encoding="utf-8") as stream:
stream.write(f"docs_only={str(docs_only).lower()}\n")
print(f"docs_only={str(docs_only).lower()}: {reason}")
+ print(f"Impact shadow: {impact} (observation only; no test selection)")
summary = os.environ.get("GITHUB_STEP_SUMMARY")
if summary:
with Path(summary).open("a", encoding="utf-8") as stream:
stream.write(f"## CI scope: {'documentation only' if docs_only else 'full'}\n\n{reason}\n")
+ # Keep shadow out of GITHUB_OUTPUT; no downstream job may use it as
+ # skip authority without a separately reviewed coverage contract.
+ stream.write(f"\nImpact shadow: **{impact}** (observation only; no test selection).\n")
if __name__ == "__main__":
diff --git a/scripts/ci_unit_test_timings.json b/scripts/ci_unit_test_timings.json
index 42c06a866..d65bf3216 100644
--- a/scripts/ci_unit_test_timings.json
+++ b/scripts/ci_unit_test_timings.json
@@ -1,543 +1,545 @@
{
- "source": "GitHub Actions run 38285598210 (82b3be73b2b198f079f64fd7728bffa20b0a8869), complete successful per-file launcher elapsed seconds",
+ "source": "Median per-file launcher elapsed seconds from successful GitHub Actions runs 38350418272 (f73106bd1e0e23bdbd6f85c7df5d382738b0a9e2), 38355727304 (9efb8b95c8e651bc0bb00cba9b5d581687ffdd34); single available sample for new files",
"durations_seconds": {
- "tests/agent_core/agent/test_compaction.py": 17.0,
- "tests/agent_core/agent/test_context.py": 10.0,
- "tests/agent_core/agent/test_fork.py": 8.0,
- "tests/agent_core/agent/test_loop.py": 7.0,
- "tests/agent_core/agent/test_outcomes.py": 7.0,
- "tests/agent_core/agent/test_projection.py": 7.0,
- "tests/agent_core/agent/test_recovery.py": 7.0,
- "tests/agent_core/ai/test_anthropic_prompt_cache.py": 2.0,
- "tests/agent_core/ai/test_pi_stream_differential.py": 6.0,
- "tests/agent_core/ai/test_provider_adapters.py": 7.0,
- "tests/agent_core/ai/test_transform_sse_errors.py": 3.0,
- "tests/agent_core/test_messages.py": 3.0,
- "tests/agent_core/tools/test_args.py": 2.0,
- "tests/agent_core/tools/test_bash.py": 22.0,
- "tests/agent_core/tools/test_file_kinds.py": 2.0,
+ "tests/agent_core/agent/test_compaction.py": 15.5,
+ "tests/agent_core/agent/test_context.py": 7.5,
+ "tests/agent_core/agent/test_fork.py": 3.0,
+ "tests/agent_core/agent/test_loop.py": 7.5,
+ "tests/agent_core/agent/test_outcomes.py": 7.5,
+ "tests/agent_core/agent/test_projection.py": 6.5,
+ "tests/agent_core/agent/test_recovery.py": 2.5,
+ "tests/agent_core/ai/test_anthropic_prompt_cache.py": 4.0,
+ "tests/agent_core/ai/test_pi_stream_differential.py": 3.0,
+ "tests/agent_core/ai/test_provider_adapters.py": 10.0,
+ "tests/agent_core/ai/test_transform_sse_errors.py": 7.0,
+ "tests/agent_core/test_messages.py": 3.5,
+ "tests/agent_core/tools/test_args.py": 3.0,
+ "tests/agent_core/tools/test_bash.py": 19.0,
+ "tests/agent_core/tools/test_file_kinds.py": 2.5,
"tests/agent_core/tools/test_jobs.py": 11.0,
- "tests/agent_core/tools/test_jobs_windows.py": 1.0,
- "tests/agent_core/tools/test_normalize.py": 3.0,
+ "tests/agent_core/tools/test_jobs_windows.py": 0.0,
+ "tests/agent_core/tools/test_normalize.py": 6.5,
"tests/agent_core/tools/test_powershell.py": 2.0,
- "tests/agent_core/tools/test_read.py": 2.0,
+ "tests/agent_core/tools/test_read.py": 2.5,
"tests/agent_core/tools/test_write_edit.py": 8.0,
- "tests/scenarios/auth_setup/test_auth_setup_scenarios.py": 175.0,
+ "tests/scenarios/auth_setup/test_auth_setup_scenarios.py": 57.0,
"tests/scenarios/memory_upgrade_compatibility/test_catalog.py": 2.0,
"tests/scenarios/message_delivery/test_message_delivery_scenarios.py": 4.0,
- "tests/scenarios/model_hub/test_model_hub_catalog.py": 6.0,
- "tests/scenarios/model_hub/test_model_hub_configured_route_scenarios.py": 6.0,
+ "tests/scenarios/model_hub/test_model_hub_catalog.py": 7.0,
+ "tests/scenarios/model_hub/test_model_hub_configured_route_scenarios.py": 4.0,
"tests/scenarios/model_hub/test_model_hub_live_resolution_scenarios.py": 4.0,
- "tests/scenarios/model_hub/test_model_hub_migration_scenarios.py": 21.0,
- "tests/scenarios/model_hub/test_model_hub_native_oauth_scenarios.py": 4.0,
+ "tests/scenarios/model_hub/test_model_hub_migration_scenarios.py": 7.0,
+ "tests/scenarios/model_hub/test_model_hub_native_oauth_scenarios.py": 3.0,
"tests/scenarios/model_hub/test_model_hub_turn_contract_scenarios.py": 3.0,
- "tests/scenarios/model_hub/test_model_hub_valuation_scenarios.py": 3.0,
- "tests/scenarios/permissions/test_cli_invocation_authority.py": 10.0,
- "tests/scenarios/permissions/test_deferred_authority_provenance.py": 8.0,
- "tests/scenarios/permissions/test_editor_reservation_and_fork.py": 8.0,
- "tests/scenarios/permissions/test_effective_target_preflight.py": 41.0,
- "tests/scenarios/permissions/test_member_instance_operations.py": 14.0,
- "tests/scenarios/permissions/test_permissions_scenarios.py": 6.0,
- "tests/test_admin_notifications.py": 3.0,
- "tests/test_agent_activity_service.py": 6.0,
- "tests/test_agent_auth_service.py": 4.0,
+ "tests/scenarios/model_hub/test_model_hub_valuation_scenarios.py": 2.5,
+ "tests/scenarios/permissions/test_cli_invocation_authority.py": 11.5,
+ "tests/scenarios/permissions/test_deferred_authority_provenance.py": 9.5,
+ "tests/scenarios/permissions/test_editor_reservation_and_fork.py": 9.0,
+ "tests/scenarios/permissions/test_effective_target_preflight.py": 43.5,
+ "tests/scenarios/permissions/test_member_instance_operations.py": 12.5,
+ "tests/scenarios/permissions/test_permissions_scenarios.py": 5.0,
+ "tests/test_admin_notifications.py": 2.0,
+ "tests/test_agent_activity_service.py": 8.0,
+ "tests/test_agent_auth_service.py": 4.5,
"tests/test_agent_backend_alive.py": 3.0,
- "tests/test_agent_backend_catalog.py": 3.0,
+ "tests/test_agent_backend_catalog.py": 2.5,
"tests/test_agent_context_seq_migration.py": 3.0,
- "tests/test_agent_events_retention.py": 7.0,
- "tests/test_agent_graph_service.py": 7.0,
- "tests/test_agent_initiated_turn_fsm.py": 3.0,
- "tests/test_agent_input.py": 2.0,
- "tests/test_agent_install_failures.py": 2.0,
- "tests/test_agent_organization_onboarding.py": 7.0,
+ "tests/test_agent_events_retention.py": 9.0,
+ "tests/test_agent_graph_service.py": 4.5,
+ "tests/test_agent_initiated_turn_fsm.py": 2.5,
+ "tests/test_agent_input.py": 3.0,
+ "tests/test_agent_install_failures.py": 2.5,
+ "tests/test_agent_organization_onboarding.py": 8.5,
"tests/test_agent_run_close_after.py": 3.0,
"tests/test_agent_run_target.py": 6.0,
"tests/test_agent_service.py": 5.0,
- "tests/test_agent_silent_result.py": 3.0,
- "tests/test_agent_steering.py": 17.0,
+ "tests/test_agent_silent_result.py": 2.0,
+ "tests/test_agent_steering.py": 19.0,
"tests/test_agent_stop_settlement.py": 3.0,
- "tests/test_agent_tool_policy.py": 3.0,
- "tests/test_agent_transcript.py": 5.0,
- "tests/test_agents_graph_route.py": 4.0,
- "tests/test_api_key_masking.py": 2.0,
- "tests/test_api_runtime_refresh.py": 2.0,
- "tests/test_api_save_config_merge.py": 23.0,
- "tests/test_async_bridge.py": 3.0,
- "tests/test_atomic_io.py": 2.0,
- "tests/test_audio_asr.py": 2.0,
- "tests/test_auth_pipeline.py": 2.0,
+ "tests/test_agent_tool_policy.py": 2.5,
+ "tests/test_agent_transcript.py": 5.5,
+ "tests/test_agents_graph_route.py": 4.5,
+ "tests/test_api_key_masking.py": 2.5,
+ "tests/test_api_runtime_refresh.py": 2.5,
+ "tests/test_api_save_config_merge.py": 26.0,
+ "tests/test_async_bridge.py": 2.0,
+ "tests/test_atomic_io.py": 3.0,
+ "tests/test_audio_asr.py": 1.5,
+ "tests/test_auth_pipeline.py": 2.5,
"tests/test_avault_agent.py": 3.0,
- "tests/test_backend_connection.py": 6.0,
- "tests/test_backend_failure.py": 2.0,
- "tests/test_backend_failure_retry.py": 14.0,
+ "tests/test_backend_connection.py": 5.0,
+ "tests/test_backend_failure.py": 1.5,
+ "tests/test_backend_failure_retry.py": 13.0,
"tests/test_backend_model_catalog.py": 3.0,
- "tests/test_backend_registration_contract.py": 8.0,
+ "tests/test_backend_registration_contract.py": 6.5,
"tests/test_backend_restart.py": 3.0,
- "tests/test_background_command_caller_context.py": 14.0,
- "tests/test_background_work_banner.py": 15.0,
- "tests/test_bind_code_api.py": 3.0,
+ "tests/test_background_command_caller_context.py": 15.5,
+ "tests/test_background_work_banner.py": 16.0,
+ "tests/test_bind_code_api.py": 3.5,
"tests/test_bind_security.py": 3.0,
"tests/test_blocking.py": 2.0,
- "tests/test_caller_context.py": 3.0,
- "tests/test_chat_discovery.py": 16.0,
+ "tests/test_caller_context.py": 2.5,
+ "tests/test_chat_discovery.py": 18.0,
+ "tests/test_ci_docs_only.py": 5.0,
"tests/test_ci_pipeline.py": 24.0,
"tests/test_ci_test_fixtures.py": 5.0,
- "tests/test_ci_unit_test_shards.py": 4.0,
+ "tests/test_ci_unit_test_shards.py": 3.5,
"tests/test_citation_consumers.py": 6.0,
- "tests/test_citation_exits.py": 4.0,
- "tests/test_citations.py": 3.0,
+ "tests/test_citation_exits.py": 5.0,
+ "tests/test_citations.py": 4.5,
"tests/test_claude_agent_initiated_turn.py": 4.0,
- "tests/test_claude_agent_sessions.py": 3.0,
- "tests/test_claude_cli_path.py": 19.0,
- "tests/test_claude_container_sandbox.py": 3.0,
- "tests/test_claude_model_catalog.py": 3.0,
+ "tests/test_claude_agent_sessions.py": 3.5,
+ "tests/test_claude_cli_path.py": 17.5,
+ "tests/test_claude_container_sandbox.py": 1.5,
+ "tests/test_claude_model_catalog.py": 2.5,
"tests/test_claude_output_recovery_ledger.py": 6.0,
- "tests/test_claude_process_reaper.py": 5.0,
- "tests/test_claude_reasoning_options.py": 2.0,
+ "tests/test_claude_process_reaper.py": 3.5,
+ "tests/test_claude_reasoning_options.py": 2.5,
"tests/test_claude_receiver_result_settle.py": 3.0,
- "tests/test_claude_result_provenance.py": 3.0,
- "tests/test_claude_sdk_compat.py": 3.0,
- "tests/test_claude_session_recovery.py": 4.0,
+ "tests/test_claude_result_provenance.py": 4.0,
+ "tests/test_claude_sdk_compat.py": 2.0,
+ "tests/test_claude_session_recovery.py": 3.0,
"tests/test_claude_subprocess_env.py": 2.0,
- "tests/test_claude_token_usage.py": 2.0,
- "tests/test_cli_agent_models.py": 2.0,
- "tests/test_cli_agent_run_schema.py": 13.0,
+ "tests/test_claude_token_usage.py": 3.0,
+ "tests/test_cli_agent_models.py": 3.0,
+ "tests/test_cli_agent_run_schema.py": 10.0,
"tests/test_cli_definition_read_projection.py": 10.0,
- "tests/test_cli_pagination.py": 13.0,
+ "tests/test_cli_pagination.py": 12.5,
"tests/test_cli_screenshot_command.py": 3.0,
- "tests/test_cli_setup_status.py": 3.0,
+ "tests/test_cli_setup_status.py": 2.0,
"tests/test_cli_task_command.py": 29.0,
- "tests/test_cli_watch_command.py": 15.0,
- "tests/test_cloudflare_network.py": 2.0,
+ "tests/test_cli_watch_command.py": 17.0,
+ "tests/test_cloudflare_network.py": 2.5,
"tests/test_cloudflared_runtime.py": 9.0,
"tests/test_codex_agent.py": 6.0,
"tests/test_codex_api_auth.py": 3.0,
- "tests/test_codex_catalog_retention.py": 5.0,
- "tests/test_codex_citations.py": 3.0,
- "tests/test_codex_config.py": 2.0,
- "tests/test_codex_event_handler.py": 2.0,
- "tests/test_codex_launch_failure.py": 4.0,
- "tests/test_codex_native_prompt_baseline.py": 2.0,
- "tests/test_codex_process_match.py": 3.0,
- "tests/test_codex_prompt_delivery_contract.py": 2.0,
- "tests/test_codex_request_provenance.py": 2.0,
- "tests/test_codex_request_routing.py": 2.0,
- "tests/test_codex_runtime_generations.py": 4.0,
+ "tests/test_codex_catalog_retention.py": 4.5,
+ "tests/test_codex_citations.py": 4.5,
+ "tests/test_codex_config.py": 2.5,
+ "tests/test_codex_event_handler.py": 2.5,
+ "tests/test_codex_launch_failure.py": 3.0,
+ "tests/test_codex_native_prompt_baseline.py": 2.5,
+ "tests/test_codex_process_match.py": 1.5,
+ "tests/test_codex_prompt_delivery_contract.py": 1.0,
+ "tests/test_codex_request_provenance.py": 2.5,
+ "tests/test_codex_request_routing.py": 2.5,
+ "tests/test_codex_runtime_generations.py": 3.0,
"tests/test_codex_session.py": 2.0,
- "tests/test_codex_token_usage.py": 3.0,
- "tests/test_codex_transport.py": 2.0,
- "tests/test_codex_turn_state.py": 2.0,
- "tests/test_command_handler_user_names.py": 3.0,
- "tests/test_command_runner.py": 6.0,
+ "tests/test_codex_token_usage.py": 2.5,
+ "tests/test_codex_transport.py": 3.0,
+ "tests/test_codex_turn_state.py": 2.5,
+ "tests/test_command_handler_user_names.py": 3.5,
+ "tests/test_command_runner.py": 6.5,
"tests/test_computer_cli.py": 4.0,
- "tests/test_computer_server.py": 3.0,
- "tests/test_computer_use.py": 3.0,
+ "tests/test_computer_server.py": 4.5,
+ "tests/test_computer_use.py": 2.5,
"tests/test_computer_use_backends.py": 2.0,
- "tests/test_config_write_transaction.py": 16.0,
- "tests/test_conftest_async_plugin_guard.py": 20.0,
- "tests/test_conftest_auth_home_isolation.py": 2.0,
- "tests/test_conftest_real_home_tripwire.py": 14.0,
- "tests/test_conftest_signal_guard.py": 7.0,
- "tests/test_control_ipc.py": 3.0,
- "tests/test_controller_ack.py": 3.0,
+ "tests/test_config_write_transaction.py": 11.0,
+ "tests/test_conftest_async_plugin_guard.py": 19.5,
+ "tests/test_conftest_auth_home_isolation.py": 3.0,
+ "tests/test_conftest_real_home_tripwire.py": 13.5,
+ "tests/test_conftest_signal_guard.py": 7.5,
+ "tests/test_control_ipc.py": 3.5,
+ "tests/test_controller_ack.py": 2.0,
"tests/test_controller_agent_status.py": 4.0,
- "tests/test_controller_config_reload.py": 2.0,
- "tests/test_controller_dispatch_loop.py": 3.0,
+ "tests/test_controller_config_reload.py": 2.5,
+ "tests/test_controller_dispatch_loop.py": 3.5,
"tests/test_controller_idle_cleanup.py": 3.0,
- "tests/test_controller_im_ready.py": 3.0,
- "tests/test_controller_model_hub_gate.py": 2.0,
+ "tests/test_controller_im_ready.py": 2.0,
+ "tests/test_controller_model_hub_gate.py": 2.5,
"tests/test_controller_platform_reconcile.py": 12.0,
- "tests/test_controller_trace_retention.py": 3.0,
- "tests/test_controller_vibe_agent_routing.py": 3.0,
- "tests/test_core_services_dispatch.py": 3.0,
- "tests/test_core_services_sessions.py": 8.0,
- "tests/test_core_services_settings.py": 4.0,
- "tests/test_cua_driver_packaging.py": 2.0,
+ "tests/test_controller_trace_retention.py": 2.5,
+ "tests/test_controller_vibe_agent_routing.py": 2.5,
+ "tests/test_core_services_dispatch.py": 2.5,
+ "tests/test_core_services_sessions.py": 8.5,
+ "tests/test_core_services_settings.py": 5.0,
+ "tests/test_cua_driver_packaging.py": 2.5,
"tests/test_delete_channel_scope.py": 2.0,
- "tests/test_delivery_ack_reaction.py": 2.0,
- "tests/test_delivery_state_matrix.py": 3.0,
- "tests/test_dependency_inspection.py": 3.0,
- "tests/test_dependency_network.py": 2.0,
- "tests/test_desktop_backends.py": 43.0,
- "tests/test_desktop_computer_capabilities.py": 2.0,
+ "tests/test_delivery_ack_reaction.py": 3.0,
+ "tests/test_delivery_state_matrix.py": 3.5,
+ "tests/test_dependency_inspection.py": 3.5,
+ "tests/test_dependency_network.py": 3.0,
+ "tests/test_desktop_backends.py": 39.5,
+ "tests/test_desktop_computer_capabilities.py": 3.0,
"tests/test_desktop_release.py": 10.0,
- "tests/test_desktop_runtime.py": 4.0,
- "tests/test_desktop_runtime_bundle_builder.py": 3.0,
+ "tests/test_desktop_runtime.py": 3.0,
+ "tests/test_desktop_runtime_bundle_builder.py": 2.5,
"tests/test_desktop_runtime_stop.py": 34.0,
- "tests/test_desktop_updater.py": 2.0,
+ "tests/test_desktop_updater.py": 2.5,
"tests/test_dev_state_migration_guard.py": 3.0,
- "tests/test_discord_api_retry.py": 2.0,
- "tests/test_discord_guild_settings.py": 9.0,
+ "tests/test_discord_api_retry.py": 2.5,
+ "tests/test_discord_guild_settings.py": 10.5,
"tests/test_discord_indicator_target.py": 3.0,
- "tests/test_discord_model_picker.py": 3.0,
- "tests/test_discord_reply_anchor.py": 3.0,
+ "tests/test_discord_model_picker.py": 1.5,
+ "tests/test_discord_reply_anchor.py": 2.5,
"tests/test_discord_runtime.py": 3.0,
"tests/test_discovered_chats.py": 2.0,
"tests/test_dispatcher_stream_chunk.py": 3.0,
- "tests/test_distribution_artifacts.py": 3.0,
+ "tests/test_distribution_artifacts.py": 2.0,
"tests/test_dock_api.py": 6.0,
- "tests/test_docker_entrypoint_supervisor.py": 18.0,
- "tests/test_doctor_i18n.py": 5.0,
+ "tests/test_docker_entrypoint_supervisor.py": 18.5,
+ "tests/test_doctor_i18n.py": 6.0,
"tests/test_event_loss_is_never_silent.py": 5.0,
- "tests/test_feedback_intake.py": 40.0,
- "tests/test_feedback_intake_artifacts.py": 13.0,
- "tests/test_feedback_intake_distribution.py": 2.0,
- "tests/test_feedback_intake_http.py": 3.0,
- "tests/test_feedback_intake_recovery.py": 55.0,
+ "tests/test_feedback_intake.py": 24.0,
+ "tests/test_feedback_intake_artifacts.py": 10.0,
+ "tests/test_feedback_intake_distribution.py": 2.5,
+ "tests/test_feedback_intake_http.py": 3.5,
+ "tests/test_feedback_intake_recovery.py": 39.5,
"tests/test_feishu_event_dispatcher.py": 2.0,
- "tests/test_feishu_hot_stop.py": 14.0,
- "tests/test_feishu_post_messages.py": 3.0,
- "tests/test_feishu_reaction_emoji.py": 2.0,
- "tests/test_feishu_routing_card.py": 2.0,
- "tests/test_feishu_status_bubble_footer.py": 13.0,
- "tests/test_file_browser_backend.py": 6.0,
+ "tests/test_feishu_hot_stop.py": 13.5,
+ "tests/test_feishu_post_messages.py": 2.0,
+ "tests/test_feishu_reaction_emoji.py": 2.5,
+ "tests/test_feishu_routing_card.py": 2.5,
+ "tests/test_feishu_status_bubble_footer.py": 14.5,
+ "tests/test_file_browser_backend.py": 5.5,
"tests/test_file_search.py": 3.0,
- "tests/test_git_binary.py": 2.0,
- "tests/test_git_runtime.py": 2.0,
+ "tests/test_git_binary.py": 3.0,
+ "tests/test_git_runtime.py": 2.5,
"tests/test_git_runtime_release_guard.py": 2.0,
- "tests/test_github_release.py": 3.0,
- "tests/test_github_wait_common.py": 3.0,
+ "tests/test_github_release.py": 2.5,
+ "tests/test_github_wait_common.py": 1.5,
"tests/test_global_agents_md.py": 2.0,
- "tests/test_harness_definition_lifecycle.py": 6.0,
+ "tests/test_harness_definition_lifecycle.py": 6.5,
"tests/test_harness_failure_retry.py": 10.0,
- "tests/test_harness_failure_visibility.py": 46.0,
- "tests/test_harness_health_projection.py": 7.0,
+ "tests/test_harness_failure_visibility.py": 28.5,
+ "tests/test_harness_health_projection.py": 7.5,
"tests/test_harness_live_status.py": 7.0,
"tests/test_harness_payload_enrichment.py": 3.0,
"tests/test_harness_run_projection.py": 5.0,
"tests/test_harness_skill_guidance.py": 3.0,
- "tests/test_host_header_boundary.py": 3.0,
- "tests/test_i18n_backend_keys.py": 2.0,
- "tests/test_i18n_key_parity.py": 2.0,
+ "tests/test_host_header_boundary.py": 2.5,
+ "tests/test_i18n_backend_keys.py": 2.5,
+ "tests/test_i18n_key_parity.py": 2.5,
"tests/test_im_backend_registration.py": 3.0,
- "tests/test_im_base_auth.py": 3.0,
- "tests/test_im_citation_delivery.py": 2.0,
- "tests/test_im_post_send_bookkeeping.py": 16.0,
- "tests/test_im_proxy_unification.py": 3.0,
- "tests/test_inbound_attachments.py": 2.0,
- "tests/test_inbox_bridge.py": 2.0,
- "tests/test_inbox_events.py": 23.0,
- "tests/test_incus_regression.py": 11.0,
- "tests/test_incus_regression_supervisor.py": 2.0,
+ "tests/test_im_base_auth.py": 2.5,
+ "tests/test_im_citation_delivery.py": 2.5,
+ "tests/test_im_post_send_bookkeeping.py": 12.0,
+ "tests/test_im_proxy_unification.py": 2.5,
+ "tests/test_inbound_attachments.py": 2.5,
+ "tests/test_inbox_bridge.py": 3.0,
+ "tests/test_inbox_events.py": 23.5,
+ "tests/test_incus_regression.py": 13.0,
+ "tests/test_incus_regression_supervisor.py": 2.5,
"tests/test_incus_tenant_scaffold.py": 3.0,
- "tests/test_install_generation_retirement.py": 8.0,
- "tests/test_install_integrity.py": 11.0,
- "tests/test_install_script.py": 32.0,
- "tests/test_installer_uninstall.py": 48.0,
+ "tests/test_install_generation_retirement.py": 9.5,
+ "tests/test_install_integrity.py": 11.5,
+ "tests/test_install_script.py": 37.5,
+ "tests/test_installer_uninstall.py": 51.0,
"tests/test_instance_authorization.py": 13.0,
- "tests/test_internal_client.py": 3.0,
+ "tests/test_internal_client.py": 2.5,
"tests/test_internal_client_timeouts.py": 2.0,
- "tests/test_internal_server.py": 24.0,
- "tests/test_latest_version_cache.py": 3.0,
- "tests/test_link_unit_delivery.py": 4.0,
- "tests/test_local_deps.py": 15.0,
- "tests/test_loop_watchdog.py": 5.0,
- "tests/test_macos_session_diagnostics.py": 2.0,
- "tests/test_managed_runtime.py": 5.0,
+ "tests/test_internal_server.py": 24.5,
+ "tests/test_latest_version_cache.py": 1.5,
+ "tests/test_link_unit_delivery.py": 4.5,
+ "tests/test_local_deps.py": 13.5,
+ "tests/test_loop_watchdog.py": 4.5,
+ "tests/test_macos_session_diagnostics.py": 2.5,
+ "tests/test_managed_runtime.py": 5.5,
"tests/test_managed_runtime_composite_artifacts.py": 3.0,
"tests/test_managed_skills.py": 3.0,
- "tests/test_markdown_escape_delivery.py": 3.0,
+ "tests/test_markdown_escape_delivery.py": 2.5,
"tests/test_media_types.py": 3.0,
"tests/test_member_management_parity.py": 19.0,
"tests/test_memory_removal.py": 3.0,
"tests/test_message_context_helpers.py": 2.0,
- "tests/test_message_delivery_authority.py": 20.0,
+ "tests/test_message_delivery_authority.py": 16.0,
"tests/test_message_dispatcher_file_uploads.py": 3.0,
- "tests/test_message_dispatcher_interim.py": 3.0,
- "tests/test_message_dispatcher_platform_limits.py": 2.0,
- "tests/test_message_dispatcher_result_fallback.py": 2.0,
- "tests/test_message_dispatcher_scheduled.py": 10.0,
- "tests/test_message_dispatcher_status_bubble.py": 3.0,
+ "tests/test_message_dispatcher_interim.py": 2.5,
+ "tests/test_message_dispatcher_platform_limits.py": 2.5,
+ "tests/test_message_dispatcher_result_fallback.py": 2.5,
+ "tests/test_message_dispatcher_scheduled.py": 8.0,
+ "tests/test_message_dispatcher_status_bubble.py": 2.5,
"tests/test_message_facts_generic.py": 2.0,
- "tests/test_message_handler_attachments.py": 3.0,
- "tests/test_message_handler_auth_setup.py": 2.0,
- "tests/test_message_handler_harness_echo.py": 2.0,
- "tests/test_message_handler_missing_agent.py": 3.0,
+ "tests/test_message_handler_attachments.py": 2.0,
+ "tests/test_message_handler_auth_setup.py": 2.5,
+ "tests/test_message_handler_harness_echo.py": 3.0,
+ "tests/test_message_handler_missing_agent.py": 2.5,
"tests/test_message_handler_typing.py": 3.0,
- "tests/test_message_handler_user_info.py": 3.0,
+ "tests/test_message_handler_user_info.py": 2.5,
"tests/test_message_mirror.py": 9.0,
- "tests/test_message_priority_cutover.py": 2.0,
+ "tests/test_message_priority_cutover.py": 3.0,
"tests/test_message_search.py": 5.0,
- "tests/test_message_type_catalog.py": 2.0,
- "tests/test_message_type_python_consumers.py": 2.0,
- "tests/test_messages_service.py": 9.0,
- "tests/test_migration_lock.py": 5.0,
+ "tests/test_message_type_catalog.py": 3.0,
+ "tests/test_message_type_python_consumers.py": 2.5,
+ "tests/test_messages_service.py": 6.0,
+ "tests/test_migration_lock.py": 2.5,
"tests/test_migration_release_guard.py": 13.0,
- "tests/test_model_hub_admission.py": 3.0,
- "tests/test_model_hub_api.py": 80.0,
- "tests/test_model_hub_authorities.py": 2.0,
- "tests/test_model_hub_background_discovery.py": 4.0,
+ "tests/test_model_hub_admission.py": 3.5,
+ "tests/test_model_hub_api.py": 57.5,
+ "tests/test_model_hub_authorities.py": 2.5,
+ "tests/test_model_hub_background_discovery.py": 5.0,
"tests/test_model_hub_claude_login_migration.py": 2.0,
- "tests/test_model_hub_config.py": 34.0,
- "tests/test_model_hub_config_read_compatibility.py": 8.0,
+ "tests/test_model_hub_config.py": 34.5,
+ "tests/test_model_hub_config_read_compatibility.py": 7.5,
"tests/test_model_hub_connection_credentials.py": 2.0,
- "tests/test_model_hub_credential_address.py": 4.0,
- "tests/test_model_hub_credential_replacement.py": 8.0,
+ "tests/test_model_hub_credential_address.py": 3.0,
+ "tests/test_model_hub_credential_replacement.py": 3.0,
"tests/test_model_hub_engine_build.py": 3.0,
- "tests/test_model_hub_engine_release_guard.py": 2.0,
- "tests/test_model_hub_failure_presentation.py": 3.0,
- "tests/test_model_hub_google.py": 7.0,
- "tests/test_model_hub_inference_wait.py": 10.0,
+ "tests/test_model_hub_engine_release_guard.py": 3.0,
+ "tests/test_model_hub_failure_presentation.py": 4.5,
+ "tests/test_model_hub_google.py": 3.5,
+ "tests/test_model_hub_inference_wait.py": 11.0,
"tests/test_model_hub_injection.py": 3.0,
- "tests/test_model_hub_json_wire.py": 3.0,
- "tests/test_model_hub_l3.py": 12.0,
- "tests/test_model_hub_legacy_opencode_migration.py": 2.0,
- "tests/test_model_hub_local_error_details.py": 11.0,
+ "tests/test_model_hub_json_wire.py": 3.5,
+ "tests/test_model_hub_l3.py": 14.0,
+ "tests/test_model_hub_legacy_opencode_migration.py": 3.0,
+ "tests/test_model_hub_local_error_details.py": 10.0,
"tests/test_model_hub_migration_auth_mirror.py": 4.0,
- "tests/test_model_hub_migration_auth_recovery.py": 8.0,
+ "tests/test_model_hub_migration_auth_recovery.py": 4.5,
"tests/test_model_hub_migration_bearer.py": 4.0,
- "tests/test_model_hub_migration_custody_history.py": 63.0,
- "tests/test_model_hub_migration_review_boundaries.py": 20.0,
- "tests/test_model_hub_migration_shell.py": 2.0,
- "tests/test_model_hub_migration_source_identity.py": 19.0,
- "tests/test_model_hub_migration_static_cleanup.py": 51.0,
- "tests/test_model_hub_migration_transport.py": 17.0,
- "tests/test_model_hub_native_takeover.py": 23.0,
- "tests/test_model_hub_oauth.py": 2.0,
- "tests/test_model_hub_oauth_takeover.py": 2.0,
- "tests/test_model_hub_persisted_inventory.py": 9.0,
- "tests/test_model_hub_persisted_migration.py": 11.0,
- "tests/test_model_hub_pricing.py": 2.0,
- "tests/test_model_hub_progress.py": 3.0,
+ "tests/test_model_hub_migration_custody_history.py": 11.5,
+ "tests/test_model_hub_migration_review_boundaries.py": 5.0,
+ "tests/test_model_hub_migration_shell.py": 3.0,
+ "tests/test_model_hub_migration_source_identity.py": 4.0,
+ "tests/test_model_hub_migration_static_cleanup.py": 8.0,
+ "tests/test_model_hub_migration_transport.py": 4.0,
+ "tests/test_model_hub_native_takeover.py": 5.5,
+ "tests/test_model_hub_oauth.py": 3.0,
+ "tests/test_model_hub_oauth_takeover.py": 3.0,
+ "tests/test_model_hub_persisted_inventory.py": 4.0,
+ "tests/test_model_hub_persisted_migration.py": 4.0,
+ "tests/test_model_hub_pricing.py": 2.5,
+ "tests/test_model_hub_progress.py": 2.5,
"tests/test_model_hub_provenance.py": 4.0,
- "tests/test_model_hub_provisional_ownership.py": 7.0,
- "tests/test_model_hub_provisional_ownership_engine.py": 3.0,
- "tests/test_model_hub_quota.py": 2.0,
- "tests/test_model_hub_reasoning_tiers.py": 3.0,
- "tests/test_model_hub_recovery_evidence.py": 4.0,
- "tests/test_model_hub_replacement_transport.py": 4.0,
+ "tests/test_model_hub_provisional_ownership.py": 4.0,
+ "tests/test_model_hub_provisional_ownership_engine.py": 2.0,
+ "tests/test_model_hub_quota.py": 2.5,
+ "tests/test_model_hub_reasoning_tiers.py": 2.5,
+ "tests/test_model_hub_recovery_evidence.py": 3.5,
+ "tests/test_model_hub_replacement_transport.py": 4.5,
"tests/test_model_hub_request_body_budget.py": 6.0,
- "tests/test_model_hub_resolution.py": 7.0,
- "tests/test_model_hub_retention.py": 3.0,
+ "tests/test_model_hub_resolution.py": 3.5,
+ "tests/test_model_hub_retention.py": 5.0,
"tests/test_model_hub_retry_advice.py": 5.0,
- "tests/test_model_hub_retry_lifecycle.py": 11.0,
- "tests/test_model_hub_retry_policy.py": 5.0,
- "tests/test_model_hub_routing_modes.py": 6.0,
- "tests/test_model_hub_runtime.py": 36.0,
+ "tests/test_model_hub_retry_lifecycle.py": 21.5,
+ "tests/test_model_hub_retry_policy.py": 4.5,
+ "tests/test_model_hub_routing_modes.py": 3.5,
+ "tests/test_model_hub_runtime.py": 35.0,
"tests/test_model_hub_runtime_default_upgrade.py": 3.0,
"tests/test_model_hub_scenario_adapter.py": 3.0,
- "tests/test_model_hub_shell_core_inventory.py": 41.0,
- "tests/test_model_hub_shell_writer_roles.py": 88.0,
- "tests/test_model_hub_source_identity.py": 5.0,
- "tests/test_model_hub_source_probe.py": 50.0,
+ "tests/test_model_hub_shell_core_inventory.py": 48.0,
+ "tests/test_model_hub_shell_writer_roles.py": 11.5,
+ "tests/test_model_hub_source_identity.py": 4.0,
+ "tests/test_model_hub_source_probe.py": 5.0,
"tests/test_model_hub_state_private.py": 2.0,
- "tests/test_model_hub_structure_guards.py": 8.0,
- "tests/test_model_hub_takeover_integration.py": 5.0,
- "tests/test_model_hub_takeover_inventory.py": 26.0,
- "tests/test_model_hub_tool_names.py": 4.0,
- "tests/test_model_hub_transport_leases.py": 2.0,
- "tests/test_model_hub_turn_mode_stamp.py": 8.0,
- "tests/test_model_hub_unverified.py": 37.0,
- "tests/test_model_hub_usage.py": 6.0,
- "tests/test_model_hub_vibey_consumer.py": 7.0,
- "tests/test_model_hub_vibey_contract_matrix.py": 4.0,
+ "tests/test_model_hub_structure_guards.py": 7.5,
+ "tests/test_model_hub_takeover_integration.py": 3.5,
+ "tests/test_model_hub_takeover_inventory.py": 5.0,
+ "tests/test_model_hub_tool_names.py": 3.0,
+ "tests/test_model_hub_transport_leases.py": 2.5,
+ "tests/test_model_hub_turn_mode_stamp.py": 6.0,
+ "tests/test_model_hub_unverified.py": 15.0,
+ "tests/test_model_hub_usage.py": 5.5,
+ "tests/test_model_hub_vibey_consumer.py": 5.0,
+ "tests/test_model_hub_vibey_contract_matrix.py": 3.0,
"tests/test_model_selection_addresses.py": 4.0,
- "tests/test_models_dev_catalog.py": 2.0,
+ "tests/test_models_dev_catalog.py": 3.0,
"tests/test_multi_platform_runtime.py": 15.0,
- "tests/test_native_login_single_flight.py": 2.0,
- "tests/test_native_login_structure_guards.py": 6.0,
- "tests/test_native_oauth_store.py": 8.0,
- "tests/test_native_process_inventory.py": 38.0,
- "tests/test_native_session_providers.py": 4.0,
+ "tests/test_native_login_single_flight.py": 2.5,
+ "tests/test_native_login_structure_guards.py": 5.0,
+ "tests/test_native_oauth_store.py": 3.5,
+ "tests/test_native_process_inventory.py": 9.0,
+ "tests/test_native_session_providers.py": 2.0,
"tests/test_native_takeover_lifecycle.py": 4.0,
"tests/test_native_writer_custody.py": 3.0,
- "tests/test_oauth_callback_diagnostics.py": 3.0,
- "tests/test_opencode_caller_context.py": 5.0,
- "tests/test_opencode_default_provider_routing.py": 2.0,
+ "tests/test_oauth_callback_diagnostics.py": 3.5,
+ "tests/test_opencode_caller_context.py": 3.0,
+ "tests/test_opencode_default_provider_routing.py": 3.0,
"tests/test_opencode_directory_bootstrap.py": 8.0,
"tests/test_opencode_generations.py": 8.0,
- "tests/test_opencode_model_hub_retry.py": 2.0,
- "tests/test_opencode_provider_base_url.py": 3.0,
- "tests/test_opencode_provider_catalog_coercion.py": 2.0,
- "tests/test_opencode_provider_keys_reader.py": 2.0,
- "tests/test_opencode_reasoning_variants.py": 2.0,
+ "tests/test_opencode_model_hub_retry.py": 3.0,
+ "tests/test_opencode_provider_base_url.py": 2.5,
+ "tests/test_opencode_provider_catalog_coercion.py": 3.0,
+ "tests/test_opencode_provider_keys_reader.py": 2.5,
+ "tests/test_opencode_reasoning_variants.py": 2.5,
"tests/test_opencode_restore_polls.py": 7.0,
- "tests/test_opencode_server.py": 6.0,
- "tests/test_opencode_session_manager.py": 2.0,
- "tests/test_opencode_steer_superseded_reply.py": 2.0,
- "tests/test_opencode_stop_receipt.py": 3.0,
+ "tests/test_opencode_server.py": 7.5,
+ "tests/test_opencode_session_manager.py": 2.5,
+ "tests/test_opencode_steer_superseded_reply.py": 1.5,
+ "tests/test_opencode_stop_receipt.py": 2.0,
"tests/test_org_sender_identity.py": 4.0,
- "tests/test_origin_links.py": 2.0,
- "tests/test_pagination.py": 2.0,
- "tests/test_pairing_recovery.py": 65.0,
- "tests/test_permissions.py": 14.0,
+ "tests/test_origin_links.py": 2.5,
+ "tests/test_pagination.py": 2.5,
+ "tests/test_pairing_recovery.py": 59.5,
+ "tests/test_permissions.py": 13.5,
"tests/test_platform_registry.py": 3.0,
- "tests/test_prepare_regression.py": 2.0,
- "tests/test_private_fs.py": 2.0,
+ "tests/test_prepare_regression.py": 3.5,
+ "tests/test_private_fs.py": 3.0,
"tests/test_process_diagnostics.py": 2.0,
"tests/test_process_isolation.py": 3.0,
- "tests/test_process_reaper.py": 41.0,
+ "tests/test_process_reaper.py": 42.0,
"tests/test_process_start_token.py": 3.0,
"tests/test_processing_indicator_reaction.py": 2.0,
- "tests/test_project_access_service.py": 4.0,
- "tests/test_project_access_sync.py": 3.0,
- "tests/test_project_agents_md.py": 2.0,
- "tests/test_projects_service.py": 10.0,
- "tests/test_prompt_render_export.py": 15.0,
+ "tests/test_project_access_service.py": 5.0,
+ "tests/test_project_access_sync.py": 4.0,
+ "tests/test_project_agents_md.py": 2.5,
+ "tests/test_projects_service.py": 12.0,
+ "tests/test_prompt_render_export.py": 14.0,
"tests/test_prompt_studio_catalog.py": 3.0,
"tests/test_pypi_shim.py": 2.0,
- "tests/test_queued_image_delivery.py": 8.0,
+ "tests/test_queued_image_delivery.py": 9.0,
"tests/test_queued_message_writer_policy.py": 6.0,
- "tests/test_read_only_query.py": 3.0,
+ "tests/test_read_only_query.py": 2.5,
"tests/test_read_only_query_vault_denylist.py": 3.0,
"tests/test_regression_script.py": 3.0,
- "tests/test_release_checkout_pinning.py": 2.0,
- "tests/test_release_mirror.py": 3.0,
+ "tests/test_release_checkout_pinning.py": 1.5,
+ "tests/test_release_mirror.py": 2.0,
"tests/test_release_package_version.py": 3.0,
- "tests/test_release_show_runtime.py": 3.0,
- "tests/test_release_verification.py": 64.0,
- "tests/test_remote_access_vibe_cloud.py": 51.0,
- "tests/test_remote_authorization_revision.py": 37.0,
- "tests/test_remote_resource_acl_sync.py": 8.0,
- "tests/test_removed_feature_contract.py": 11.0,
+ "tests/test_release_show_runtime.py": 2.5,
+ "tests/test_release_verification.py": 66.5,
+ "tests/test_remote_access_vibe_cloud.py": 19.0,
+ "tests/test_remote_authorization_revision.py": 24.0,
+ "tests/test_remote_resource_acl_sync.py": 8.5,
+ "tests/test_removed_feature_contract.py": 7.5,
"tests/test_reply_enhancer_platform.py": 9.0,
- "tests/test_reply_enhancer_secret_requests.py": 3.0,
+ "tests/test_reply_enhancer_secret_requests.py": 2.5,
+ "tests/test_repository_guidance.py": 2.0,
"tests/test_reserved_native_session_id.py": 2.0,
- "tests/test_resource_access_service.py": 10.0,
+ "tests/test_resource_access_service.py": 6.5,
"tests/test_resource_acl_agents.py": 7.0,
- "tests/test_resource_acl_show_pages.py": 7.0,
+ "tests/test_resource_acl_show_pages.py": 8.0,
"tests/test_resource_acl_vaults.py": 7.0,
- "tests/test_resource_governance.py": 2.0,
- "tests/test_restart_supervisor.py": 4.0,
- "tests/test_result_message_token_field.py": 2.0,
+ "tests/test_resource_governance.py": 2.5,
+ "tests/test_restart_supervisor.py": 3.5,
+ "tests/test_result_message_token_field.py": 2.5,
"tests/test_resume_session.py": 3.0,
"tests/test_retired_companion.py": 3.0,
- "tests/test_ripgrep_runtime.py": 3.0,
- "tests/test_routing_modal_selection.py": 2.0,
- "tests/test_running_agents_service.py": 3.0,
- "tests/test_runtime_activation.py": 2.0,
- "tests/test_runtime_commands.py": 2.0,
- "tests/test_runtime_generations.py": 2.0,
- "tests/test_runtime_log_sink.py": 3.0,
- "tests/test_runtime_ownership.py": 7.0,
- "tests/test_runtime_process_scan.py": 2.0,
+ "tests/test_ripgrep_runtime.py": 2.0,
+ "tests/test_routing_modal_selection.py": 3.0,
+ "tests/test_running_agents_service.py": 3.5,
+ "tests/test_runtime_activation.py": 3.0,
+ "tests/test_runtime_commands.py": 2.5,
+ "tests/test_runtime_generations.py": 3.0,
+ "tests/test_runtime_log_sink.py": 2.5,
+ "tests/test_runtime_ownership.py": 8.0,
+ "tests/test_runtime_process_scan.py": 2.5,
"tests/test_runtime_recovery.py": 6.0,
- "tests/test_runtime_scope_bootstrap.py": 3.0,
- "tests/test_runtime_service_lock.py": 7.0,
- "tests/test_runtime_spawn_ownership.py": 6.0,
- "tests/test_runtime_work_supervisor.py": 2.0,
- "tests/test_save_opencode_provider_auth.py": 10.0,
+ "tests/test_runtime_scope_bootstrap.py": 1.5,
+ "tests/test_runtime_service_lock.py": 6.5,
+ "tests/test_runtime_spawn_ownership.py": 5.5,
+ "tests/test_runtime_work_supervisor.py": 2.5,
+ "tests/test_save_opencode_provider_auth.py": 9.5,
"tests/test_scheduled_command_task_integration.py": 10.0,
- "tests/test_scheduled_tasks.py": 94.0,
- "tests/test_sentry_integration.py": 6.0,
- "tests/test_service_lock_record.py": 11.0,
+ "tests/test_scheduled_tasks.py": 90.5,
+ "tests/test_sentry_integration.py": 7.0,
+ "tests/test_service_lock_record.py": 10.5,
"tests/test_service_logging_handlers.py": 3.0,
- "tests/test_service_readiness.py": 7.0,
- "tests/test_session_activities.py": 8.0,
- "tests/test_session_archive.py": 6.0,
+ "tests/test_service_readiness.py": 7.5,
+ "tests/test_session_activities.py": 6.5,
+ "tests/test_session_archive.py": 7.0,
"tests/test_session_cli.py": 9.0,
- "tests/test_session_delivery_fsm.py": 23.0,
- "tests/test_session_fork.py": 28.0,
- "tests/test_session_handler_base_id.py": 2.0,
- "tests/test_session_route_writer_policy.py": 2.0,
- "tests/test_session_titles.py": 4.0,
- "tests/test_settings_disk_fallback.py": 4.0,
- "tests/test_settings_handler.py": 2.0,
- "tests/test_show_api.py": 14.0,
+ "tests/test_session_delivery_fsm.py": 16.0,
+ "tests/test_session_fork.py": 27.0,
+ "tests/test_session_handler_base_id.py": 2.5,
+ "tests/test_session_route_writer_policy.py": 2.5,
+ "tests/test_session_titles.py": 3.5,
+ "tests/test_settings_disk_fallback.py": 3.0,
+ "tests/test_settings_handler.py": 2.5,
+ "tests/test_show_api.py": 11.0,
"tests/test_show_api_integration.py": 3.0,
- "tests/test_show_git.py": 6.0,
+ "tests/test_show_git.py": 3.0,
"tests/test_show_git_turn_entrypoints.py": 4.0,
- "tests/test_show_identity.py": 3.0,
+ "tests/test_show_identity.py": 3.5,
"tests/test_show_page_legacy_ui_removed.py": 2.0,
- "tests/test_show_pages.py": 75.0,
- "tests/test_show_pages_admin_api.py": 4.0,
- "tests/test_show_router.py": 2.0,
- "tests/test_show_runtime_archive_cleanup.py": 5.0,
+ "tests/test_show_pages.py": 70.5,
+ "tests/test_show_pages_admin_api.py": 4.5,
+ "tests/test_show_router.py": 3.0,
+ "tests/test_show_runtime_archive_cleanup.py": 4.0,
"tests/test_show_runtime_manifest.py": 2.0,
- "tests/test_show_runtime_manifest_packaging.py": 2.0,
- "tests/test_show_runtime_orphan_sweep.py": 3.0,
- "tests/test_show_runtime_protocol.py": 3.0,
- "tests/test_show_session_events.py": 8.0,
- "tests/test_skill_cli.py": 2.0,
- "tests/test_skill_observability.py": 6.0,
+ "tests/test_show_runtime_manifest_packaging.py": 2.5,
+ "tests/test_show_runtime_orphan_sweep.py": 3.5,
+ "tests/test_show_runtime_protocol.py": 2.5,
+ "tests/test_show_session_events.py": 8.5,
+ "tests/test_skill_cli.py": 2.5,
+ "tests/test_skill_observability.py": 6.5,
"tests/test_skill_observability_backends.py": 2.0,
- "tests/test_skill_observability_migration.py": 3.0,
- "tests/test_skills_service.py": 7.0,
- "tests/test_slack_app_mention_empty.py": 2.0,
- "tests/test_slack_dm_mentions.py": 2.0,
- "tests/test_slack_markdown_footer.py": 2.0,
- "tests/test_sqlite_backup_expiry.py": 13.0,
- "tests/test_sqlite_sessions_store.py": 35.0,
- "tests/test_sqlite_settings_store.py": 28.0,
- "tests/test_sqlite_state_migration.py": 73.0,
- "tests/test_sqlite_state_startup.py": 3.0,
- "tests/test_sse_broker.py": 2.0,
- "tests/test_state_backups.py": 8.0,
- "tests/test_status_bubble_footer_render.py": 3.0,
- "tests/test_status_bubble_indicator.py": 3.0,
- "tests/test_status_bubble_settings.py": 2.0,
- "tests/test_subagent_router.py": 3.0,
- "tests/test_telegram_attachment_download.py": 2.0,
+ "tests/test_skill_observability_migration.py": 2.5,
+ "tests/test_skills_service.py": 8.5,
+ "tests/test_slack_app_mention_empty.py": 2.5,
+ "tests/test_slack_dm_mentions.py": 1.5,
+ "tests/test_slack_markdown_footer.py": 2.5,
+ "tests/test_sqlite_backup_expiry.py": 12.5,
+ "tests/test_sqlite_sessions_store.py": 39.0,
+ "tests/test_sqlite_settings_store.py": 18.5,
+ "tests/test_sqlite_state_migration.py": 81.5,
+ "tests/test_sqlite_state_startup.py": 2.0,
+ "tests/test_sse_broker.py": 2.5,
+ "tests/test_state_backups.py": 7.5,
+ "tests/test_status_bubble_footer_render.py": 2.5,
+ "tests/test_status_bubble_indicator.py": 2.0,
+ "tests/test_status_bubble_settings.py": 3.5,
+ "tests/test_subagent_router.py": 2.5,
+ "tests/test_telegram_attachment_download.py": 2.5,
"tests/test_telegram_bot.py": 15.0,
- "tests/test_telegram_formatter.py": 2.0,
- "tests/test_telegram_proxy.py": 3.0,
- "tests/test_terminal_backend.py": 4.0,
+ "tests/test_telegram_formatter.py": 2.5,
+ "tests/test_telegram_proxy.py": 2.5,
+ "tests/test_terminal_backend.py": 3.0,
"tests/test_test_failure_classifier.py": 2.0,
"tests/test_tmux_runtime.py": 3.0,
- "tests/test_transcript_store_contract.py": 6.0,
- "tests/test_tunnel_quality.py": 2.0,
- "tests/test_tunnel_recovery.py": 29.0,
- "tests/test_turn_terminal_reaction.py": 2.0,
- "tests/test_typing_keepalive.py": 3.0,
- "tests/test_ui_api.py": 98.0,
- "tests/test_ui_project_access.py": 8.0,
- "tests/test_ui_server_fastapi.py": 28.0,
+ "tests/test_transcript_store_contract.py": 5.5,
+ "tests/test_tunnel_quality.py": 1.5,
+ "tests/test_tunnel_recovery.py": 27.0,
+ "tests/test_turn_terminal_reaction.py": 3.0,
+ "tests/test_typing_keepalive.py": 2.5,
+ "tests/test_ui_api.py": 63.5,
+ "tests/test_ui_project_access.py": 5.0,
+ "tests/test_ui_server_fastapi.py": 23.0,
"tests/test_ui_server_install.py": 5.0,
- "tests/test_ui_server_logs.py": 3.0,
- "tests/test_ui_server_mutation_protection.py": 7.0,
- "tests/test_ui_server_reload.py": 4.0,
- "tests/test_ui_server_skills_routes.py": 3.0,
- "tests/test_ui_server_voice_telemetry.py": 4.0,
- "tests/test_ui_server_voice_transcription.py": 3.0,
- "tests/test_ui_session_stream.py": 10.0,
- "tests/test_ui_show_pages.py": 50.0,
- "tests/test_update_checker_platforms.py": 21.0,
- "tests/test_upgrade_flow.py": 3.0,
- "tests/test_upgrade_provider_metadata.py": 2.0,
- "tests/test_user_platform_scope.py": 6.0,
- "tests/test_v2_compat_platforms.py": 2.0,
- "tests/test_v2_config_platform_registry.py": 3.0,
- "tests/test_v2_paths.py": 2.0,
- "tests/test_v2_sessions.py": 12.0,
- "tests/test_vault_addresses.py": 2.0,
- "tests/test_vault_api.py": 20.0,
- "tests/test_vault_cli.py": 15.0,
- "tests/test_vault_crypto.py": 2.0,
+ "tests/test_ui_server_logs.py": 4.0,
+ "tests/test_ui_server_mutation_protection.py": 4.5,
+ "tests/test_ui_server_reload.py": 3.0,
+ "tests/test_ui_server_skills_routes.py": 2.5,
+ "tests/test_ui_server_voice_telemetry.py": 3.0,
+ "tests/test_ui_server_voice_transcription.py": 3.5,
+ "tests/test_ui_session_stream.py": 13.0,
+ "tests/test_ui_show_pages.py": 48.5,
+ "tests/test_update_checker_platforms.py": 7.0,
+ "tests/test_upgrade_flow.py": 4.0,
+ "tests/test_upgrade_provider_metadata.py": 3.0,
+ "tests/test_user_platform_scope.py": 6.5,
+ "tests/test_v2_compat_platforms.py": 2.5,
+ "tests/test_v2_config_platform_registry.py": 2.0,
+ "tests/test_v2_paths.py": 3.0,
+ "tests/test_v2_sessions.py": 9.0,
+ "tests/test_vault_addresses.py": 3.0,
+ "tests/test_vault_api.py": 17.5,
+ "tests/test_vault_cli.py": 10.5,
+ "tests/test_vault_crypto.py": 2.5,
"tests/test_vault_export_inject.py": 5.0,
- "tests/test_vault_fetch.py": 8.0,
+ "tests/test_vault_fetch.py": 7.5,
"tests/test_vault_protected_format.py": 2.0,
- "tests/test_vault_request_callbacks.py": 7.0,
+ "tests/test_vault_request_callbacks.py": 6.5,
"tests/test_vault_request_im_notifications.py": 3.0,
- "tests/test_vault_rest.py": 5.0,
+ "tests/test_vault_rest.py": 3.5,
"tests/test_vault_schema.py": 2.0,
- "tests/test_vault_service.py": 7.0,
+ "tests/test_vault_service.py": 6.5,
"tests/test_version_identity.py": 2.0,
- "tests/test_vibe_agent_archive.py": 8.0,
- "tests/test_vibe_agent_model_prefill.py": 9.0,
- "tests/test_vibe_cli.py": 9.0,
- "tests/test_vibey_agent.py": 24.0,
- "tests/test_vibey_agent_context.py": 9.0,
- "tests/test_vibey_backend_registration.py": 10.0,
- "tests/test_vibey_project_instructions.py": 3.0,
+ "tests/test_vibe_agent_archive.py": 7.5,
+ "tests/test_vibe_agent_model_prefill.py": 9.5,
+ "tests/test_vibe_cli.py": 7.0,
+ "tests/test_vibey_agent.py": 26.0,
+ "tests/test_vibey_agent_context.py": 10.0,
+ "tests/test_vibey_backend_registration.py": 6.5,
+ "tests/test_vibey_project_instructions.py": 3.5,
"tests/test_wait_for_github_action_runs.py": 2.0,
- "tests/test_wait_for_github_issue_activity.py": 2.0,
- "tests/test_wait_for_github_pr_activity.py": 20.0,
- "tests/test_watch_job_target.py": 21.0,
- "tests/test_watch_worker.py": 3.0,
- "tests/test_watches.py": 16.0,
+ "tests/test_wait_for_github_issue_activity.py": 2.5,
+ "tests/test_wait_for_github_pr_activity.py": 11.5,
+ "tests/test_watch_job_target.py": 23.0,
+ "tests/test_watch_worker.py": 4.0,
+ "tests/test_watches.py": 17.5,
"tests/test_web_oauth_flow.py": 4.0,
- "tests/test_web_push_notifications.py": 10.0,
- "tests/test_web_push_provider_invalidation_migration.py": 3.0,
- "tests/test_web_push_service.py": 15.0,
+ "tests/test_web_push_notifications.py": 9.5,
+ "tests/test_web_push_provider_invalidation_migration.py": 3.5,
+ "tests/test_web_push_service.py": 14.5,
"tests/test_web_ui_watchdog.py": 3.0,
- "tests/test_wechat_attachment_download.py": 2.0,
+ "tests/test_wechat_attachment_download.py": 3.5,
"tests/test_wechat_auth.py": 4.0,
- "tests/test_wechat_bot.py": 4.0,
- "tests/test_wechat_cdn.py": 2.0,
- "tests/test_workbench_media.py": 5.0,
+ "tests/test_wechat_bot.py": 5.5,
+ "tests/test_wechat_cdn.py": 2.5,
+ "tests/test_workbench_media.py": 4.5,
"tests/test_workbench_only_runtime.py": 6.0,
- "tests/test_workbench_prefs_api.py": 4.0,
- "tests/test_workbench_session_defaults.py": 4.0,
+ "tests/test_workbench_prefs_api.py": 3.5,
+ "tests/test_workbench_session_defaults.py": 5.0,
"tests/test_workspace_system_session.py": 5.0
}
}
diff --git a/tests/test_ci_docs_only.py b/tests/test_ci_docs_only.py
index 938375c73..3f92ca2ca 100644
--- a/tests/test_ci_docs_only.py
+++ b/tests/test_ci_docs_only.py
@@ -49,7 +49,7 @@ def repo(tmp_path: Path) -> Path:
return root
-def push(repo: Path, base: str, **overrides) -> tuple[bool, str]:
+def push(repo: Path, base: str, **overrides) -> tuple[bool, str, str]:
after = git(repo, "rev-parse", "HEAD")
event = {"before": base, "after": after, "created": False, "deleted": False, "forced": False}
event.update(overrides)
@@ -187,28 +187,69 @@ def test_empty_diff_and_unsupported_or_broken_events_are_not_docs(repo: Path) ->
assert not classify(name, payload, sha, repo)[0]
-def test_cli_exports_explicit_disposition_and_missing_event_defaults_full(repo: Path, tmp_path: Path) -> None:
- before = git(repo, "rev-parse", "HEAD")
- write(repo, "AGENTS.md")
- sha = commit(repo)
[email protected]("event_name,expected", [("pull_request", "true"), ("push", "false")])
+def test_cli_keeps_docs_pr_fast_but_master_replaces_full_coverage(
+ repo: Path, tmp_path: Path, event_name: str, expected: str,
+) -> None:
+ if event_name == "pull_request":
+ payload, sha = synthetic_pr(repo)
+ else:
+ # This code commit may still have a running (now superseded) full CI.
+ write(repo, "core.py", "print('code awaiting CI')\n")
+ before = commit(repo)
+ write(repo, "AGENTS.md")
+ sha = commit(repo)
+ payload = {"before": before, "after": sha, "created": False, "deleted": False, "forced": False}
event = tmp_path / "event.json"
output = tmp_path / "output"
summary = tmp_path / "summary"
- event.write_text(json.dumps({"before": before, "after": sha,
- "created": False, "deleted": False, "forced": False}))
- env = {**os.environ, "GITHUB_EVENT_NAME": "push", "GITHUB_SHA": sha,
+ event.write_text(json.dumps(payload))
+ env = {**os.environ, "GITHUB_EVENT_NAME": event_name, "GITHUB_SHA": sha,
"GITHUB_EVENT_PATH": str(event), "GITHUB_OUTPUT": str(output),
"GITHUB_STEP_SUMMARY": str(summary)}
result = subprocess.run([sys.executable, str(SCRIPT)], cwd=repo, env=env, capture_output=True, text=True)
assert result.returncode == 0, result.stderr
- assert output.read_text() == "docs_only=true\n"
+ assert output.read_text() == f"docs_only={expected}\n"
+ assert "Impact shadow: **docs-only**" in summary.read_text()
+ if event_name == "push":
+ assert "superseded code changes" in result.stdout
event.unlink()
result = subprocess.run([sys.executable, str(SCRIPT)], cwd=repo, env=env, capture_output=True, text=True)
assert result.returncode == 0, result.stderr
- assert output.read_text().splitlines() == ["docs_only=true", "docs_only=false"]
+ assert output.read_text().splitlines() == [f"docs_only={expected}", "docs_only=false"]
+ assert "Impact shadow: **unknown**" in summary.read_text()
assert "full" in summary.read_text()
[email protected]("paths,category", [
+ (["ui/src/pages/Page.tsx", "docs/guide.md"], "ui-source-only"),
+ (["ui/src/App.tsx", "ui/src/lib/ApiContext.tsx"], "ui-source-only"),
+ (["vibe/api.py", "storage/alembic/versions/new.py"], "python-source-only"),
+ (["ui/src/Page.tsx", "ui/package-lock.json"], "shared-or-mixed"),
+ (["core/controller.py", "ui/src/Page.tsx"], "shared-or-mixed"),
+ (["docs/plans/contract.md"], "shared-or-mixed"),
+])
+def test_impact_shadow_never_authorizes_skipping_code_tests(repo: Path, tmp_path: Path, paths, category) -> None:
+ before = git(repo, "rev-parse", "HEAD")
+ for path in paths:
+ write(repo, path)
+ sha = commit(repo)
+ result = push(repo, before)
+ assert result[0] is False and result[2] == category
+ event = tmp_path / "event.json"
+ output = tmp_path / "output"
+ summary = tmp_path / "summary"
+ event.write_text(json.dumps({"before": before, "after": sha,
+ "created": False, "deleted": False, "forced": False}))
+ result = subprocess.run([sys.executable, str(SCRIPT)], cwd=repo, capture_output=True, text=True,
+ env={**os.environ, "GITHUB_EVENT_NAME": "push", "GITHUB_SHA": sha,
+ "GITHUB_EVENT_PATH": str(event), "GITHUB_OUTPUT": str(output),
+ "GITHUB_STEP_SUMMARY": str(summary)})
+ assert result.returncode == 0, result.stderr
+ assert output.read_text() == "docs_only=false\n" # No impact output for jobs to consume.
+ assert f"Impact shadow: **{category}**" in summary.read_text()
+
+
def test_guidance_remains_enforced_when_an_agents_only_diff_skips_application_tests(repo: Path) -> None:
root = SCRIPT.parents[1]
paths = (
diff --git a/tests/test_ci_pipeline.py b/tests/test_ci_pipeline.py
index f62d139ba..b8962f281 100644
--- a/tests/test_ci_pipeline.py
+++ b/tests/test_ci_pipeline.py
@@ -525,6 +525,18 @@ def test_required_gates_accept_skips_only_for_proven_docs_and_fail_closed(tmp_pa
assert (result.returncode == 0) == passes, (results, result.stdout, result.stderr)
+def test_lint_replaces_only_the_same_pr_or_branch_and_runs_no_release_listener() -> None:
+ # A shared global group would cancel unrelated PRs; master must cancel its
+ # own obsolete full run. Trigger scope is part of that scheduling contract.
+ workflow = yaml.safe_load((ROOT / ".github/workflows/lint.yml").read_text())
+ assert workflow["concurrency"] == {
+ "group": "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}",
+ "cancel-in-progress": True,
+ }
+ assert set(workflow[True]) == {"pull_request", "push"}
+ assert workflow[True]["push"]["branches"] == ["master"]
+
+
def test_docs_scope_gates_all_work_without_filtering_away_required_checks() -> None:
workflow = yaml.safe_load((ROOT / ".github/workflows/lint.yml").read_text())
events = workflow[True] # PyYAML YAML 1.1 reads the Actions `on` key as True.
diff --git a/tests/test_ci_unit_test_shards.py b/tests/test_ci_unit_test_shards.py
index 0622ea290..990a7b8bd 100644
--- a/tests/test_ci_unit_test_shards.py
+++ b/tests/test_ci_unit_test_shards.py
@@ -65,7 +65,7 @@ def test_plan_shards_rejects_invalid_shard_total(tmp_path: Path, shard_total: in
plan_shards([_test_file(tmp_path, "test_one.py")], shard_total)
[email protected]("shard_total", [1, 9])
[email protected]("shard_total", [1, 8])
def test_measured_plan_runs_every_discovered_file_exactly_once(shard_total: int) -> None:
files = discover_unit_test_files()
shards = plan_shards(files, shard_total, load_timings())