Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/incidents/xc_owed_proof_runs_its_routes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# xc. `xc_owed_proof_runs_its_routes`

**What happened:** A run fixing a failing end-to-end test opened its pull request, and CoderHelm's own review asked for one thing: the test passing a set number of times in a row with retries off. The fix round ran the repeat in the sandbox against the team's staging site and against the pull request's preview. Every attempt failed before the page loaded, because the sandbox's network refused both hosts: its allowlist held only what the team had typed into its settings, though the repository's own end-to-end config and preview workflow named both. The round made no change and asked a person to widen CoderHelm's allowlist or run the command themselves, and it called a repeat on CI "a CI change outside this ticket". The findings had already had their round on that head, so nothing picked them up again, and the pull request waited on CoderHelm's own review.

**The guarantee:** Where the team's apps are served is read from the default branch only (its end-to-end config, env templates, workflow environments and deploys), never from a pull request's head, and each host is kept with its source. A host is allowed when it falls under a domain the team verified; a domain not verified yet is suggested once in Settings, and every host under it is automatic after an admin confirms it. A repeat proof is a plan with routes tried in order: the sandbox against the preview, against staging, against the app started from the repository's own dev or start script, then CI (the end-to-end workflow with its repeat input, started once per run needed, or its run re-run). A route that ran the test gives the result; the plan says it couldn't only after every route, each with its own reason. Neither the allowlist nor a CI repeat is ever a person's step. A pull request whose own review asks for a proof the sandbox couldn't reach is picked up by the sweep, including ones that were already waiting, and is proven or held on a real result with nobody commenting.

**Where it's enforced:** `agent_policy::repo_hosts::{from_files, from_deploys, sort}` and `agent::policy::{learn_repo_hosts, sandbox_egress}`, with the suggestions in the reviewer settings (`suggested_web_domains`). Also: `e2e::proof_routes::{Plan, outcome_of, local_app, ci_way, ci_step}`, `passes::proof_routes::advance`, `pr_watch::{proof_due, Act::ProveOwed}`, `own_review_ledger::{owed_proofs, proof_given, round_rules, instruction}`, and the test fix's ready check (`test_fix::ready_gate`).
1 change: 1 addition & 0 deletions services/common/src/agent_policy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub mod notify;
pub mod pause;
pub mod presets;
pub mod registry;
pub mod repo_hosts;
pub mod sandbox;
pub mod signin;
pub mod store;
Expand Down
Loading