Status: implemented shadow experiment; no test-skipping or integration authority
IDKMesh has many specialized CI workflows but no common planner that explains which checks a change affects, which checks are non-negotiable, and which additional experiments provide the most information within a bounded compute budget.
The CI Shadow Planner supplies that missing decision-support layer without changing execution:
exact base/head + changed paths + reviewed policy
-> risk classification
-> impacted check graph
-> mandatory dependency closure
-> optional value/cost ordering
-> deterministic exploration
-> CIPlan + planning-only CIReceipt
Every existing workflow continues to run. The planner only records what it would select.
The planner always emits:
mode = shadow
full_suite_baseline_required = true
execute = false
skip_required_checks = false
approve = false
merge = false
repository_write = false
project_spend_usd_max = 0
Hard gates are selected before optimization. A risk threshold may promote an optional check to mandatory, and dependency closure may add prerequisites. No score can remove a mandatory check.
For impacted non-mandatory check j, the current explicit prior is:
score(j) = P(failure | impact class)
* consequence impact
* expected information gain
/ (estimated runtime + queue cost)
The values in config/ci-policy-v0.1.json are labeled priors, not learned facts. Selection operates on dependency-closed bundles under optional_seconds. A SHA-derived ordering can use any remaining budget for bounded exploration, making replay deterministic.
The planner does not collapse correctness into this score. The score orders only already-eligible optional checks.
schemas/ci-plan-v0.1.schema.json binds the recommendation to an exact base SHA, head SHA, policy digest, changed-file set, risk classification, budget, and check decisions.schemas/ci-receipt-v0.1.schema.json proves only that planning occurred. Its check-execution list is empty; planner runtime/resource use remains explicitly unmeasured, and it makes no claim that externally borne CI cost is zero.tools/ci_shadow_planner.py is dependency-free and rejects unknown dependencies, dependency cycles, path escapes, malformed SHAs, non-Boolean controls, and any non-zero project-spend policy.Shadow mode should run for at least 50–100 representative PRs. Compare plans with the full CI baseline and measure:
The first promotion gate should require no missed high-impact failure in the evaluation cohort and a useful reduction in optional compute. Even then, protection, security, schema, governance, and planner-self changes remain mandatory, and a randomized audit slice must continue estimating selection error.
The next version should aggregate a durable evaluation cohort and learn calibrated optional-check usefulness in shadow mode. It must not learn authority or weaken hard gates.