diff --git a/docs/architecture/persisted-contracts.md b/docs/architecture/persisted-contracts.md index ee01d7e..c48bb61 100644 --- a/docs/architecture/persisted-contracts.md +++ b/docs/architecture/persisted-contracts.md @@ -58,7 +58,7 @@ A golden over the current writer does not protect these. A reader can stop accep | Board | the board database (`board.db`, with the WAL a killed run leaves): items in every state a release's `board add` / `run` / `update` / `import-review-candidates` leave them (gate evidence passing and failing, the agent's `done` and `review` blocks with handoff and outputs, an agent failure, a killed and a reclaimed claim, a SIGINT and an orchestration crash, manual evidence and sign-off, dependencies including a missing one, imported review candidates), their transitions, decisions including a superseded one, the run ledger, and from v0.2.0 the compaction rollups and counters (partly compacted: a count needs both the live audit and the rollups). No release wrote the lesson columns (`project_id`, `provenance_json`, `source_key`); `test_lessons.py::test_an_old_board_gains_the_lesson_columns` and `::test_a_damaged_provenance_reads_as_not_recorded` cover those readers, and the mixed-project tests there the project filter. Every release writes a claim's ledger row in the claim's transaction, so the ledger backfill's positive branch stays covered by the synthetic tests in `test_board.py`; no release writer produces damaged JSON or a malformed evidence entry either | HEAD's first open (columns and tables added, every released cell kept, a second open a no-op), `Board.get` / `list` / `transitions` (`_row_to_item`, `_load_list`, `_load_evidence`) compared field by field with what the release's own interpreter read from the same database and with the raw cells, `board list` / `show`, `active_decisions` and `_row_to_decision` on every row (retired ones included), `board decisions`, `project_lessons` (empty: no released decision is a lesson), `stats` at fixed clocks including both sides of the aging cutoff, and `board stats` at a fresh and an aged clock; the human path on released rows: `update --state done` counting stored evidence or refused without it, `--sign-off`, `--clear-human-required`, an annotate keeping a released lease, `decide --supersedes` in and out of scope, a re-import skipped, and refused when the stored provenance differs. HEAD operating a released board: `board run` dispatch (FIFO order, skipping human-required items and unmet or missing dependencies, `--goal`, `--id`) with the released handoff, inputs and active decisions in the prompt and the run's outcome added to the released row, an agent's `done` counted only with this run's gate; a released running lease reclaimed exactly at its timeout (the ledger's `reclaimed_at` stamped, on v0.1.2 in the column HEAD added), redispatch counted, `apply_update`, the crash block and `renew_claim` fenced by the released lease; the scratch GC over the released ledger (purged runs never collected, a live lease never, a reclaimed run after one lease timeout of grace, a failed purge scheduled and then cleared in the columns HEAD added); `board compact` of released history (stats unchanged, rollups and counters added to, a cutoff between two claims); the gateway `board_list` / `board_get` / `board_stats`, `dashboard.take_snapshot` and the TUI board tab; a lesson promoted onto a released board leaves the released decisions unbound, and cannot supersede one (scope refused before project). Not covered: a run v0.1.2 reclaimed but never purged (its `reclaimed_at` is NULL, so HEAD collects it with no grace; v0.1.2 had none either, and its own GC purged every such run in the fixtures); `room promote` onto a released board (needs a room; `test_lessons.py` covers the CLI); the memory a released board run wrote (outside `board.db`) | `test_frozen_board.py`, `test_frozen_board_ops.py` (v0.1.2, v0.2.0, v0.3.0) | | Memory backends | Mem0 and LangGraph stored payloads | the backends' read paths | not yet | | TUI jobs | job documents, `schema_version` 1 and 2 | `JobStore.list_jobs` | not yet | -| Run envelope | report run directories as a release's `run` and `board run` leave them with recording on: `envelope.json` (completed, no change, route failure, gate passed and failed, a compete team, a file trace, a Phoenix export error, a trace error, breaker and multiple degradations, a board block, the skeleton a SIGKILL leaves, a SIGINT's finalized crash), `result.json`, `trace.otlp.json`, and a trace-only run with no envelope; v0.1.2 wrote no `.syncmill-run-dir` sentinel. Preflight blocks only as `disabled` (the released preflight records are not frozen yet) | HEAD's `contracts/run-envelope.schema.json` (and the release's own, frozen beside it), `load_envelope` returning the stored document, `report show` and `report list` compared with what the release's own CLI printed, including the refusal for a run without an envelope, the TUI Reports tab and the dashboard REPORT pane; retention ownership (`_is_run_dir`) through `RunReporter.start` and the Supervisor's trace-only sweep: a sentinel or, for v0.1.2, an envelope with syncmill's `kind` naming its own directory makes a run dir removable, and a v0.1.2 trace-only run dir (neither) is never removed; a custom `trace.dir` is never swept. Not covered: `trace.otlp.json` semantics (tracegraph's reader); `report list` also lists a foreign directory holding any nonempty JSON-object `envelope.json` (observed, unchanged) | `test_frozen_envelope.py` (v0.1.2, v0.2.0, v0.3.0) | +| Run envelope | report run directories as a release's `run` and `board run` leave them with recording on: `envelope.json` (completed, no change, route failure, gate passed and failed, a compete team, a file trace, a Phoenix export error, a trace error, breaker and multiple degradations, a board block, the skeleton a SIGKILL leaves, a SIGINT's finalized crash), `result.json`, `trace.otlp.json`, and a trace-only run with no envelope; v0.1.2 wrote no `.syncmill-run-dir` sentinel. Under `/preflight/`, its own reports root: run dirs with a real preflight block from the release's `run` against a fake `toolgraph` answering with the release's vendored goldens (advisory ok, drift, unresolved, unmapped, error, timeout; strict allow, warn, block, timeout, unresolved, unavailable under both policies, two identities, a generation mismatch, an unmapped participant; from v0.2.0 control-plan allow, findings, error, timeout, both modes), the persistence failures reached by making the release's own writer fail one write (v0.1.2 and v0.2.0+ leave different files), and a SIGKILL after a strict preflight; `preflight.json`, `preflight/eval-NNN.json`, `control-plan.json`, `control-preflight.json`. A few producer replies are synthetic and named in its `index.json` | HEAD's `contracts/run-envelope.schema.json` (and the release's own, frozen beside it), `load_envelope` returning the stored document, `report show` and `report list` compared with what the release's own CLI printed, including the refusal for a run without an envelope, the TUI Reports tab and the dashboard REPORT pane; retention ownership (`_is_run_dir`) through `RunReporter.start` and the Supervisor's trace-only sweep: a sentinel or, for v0.1.2, an envelope with syncmill's `kind` naming its own directory makes a run dir removable, and a v0.1.2 trace-only run dir (neither) is never removed; a custom `trace.dir` is never swept; for the preflight runs, the same schema, loader, `report show` / `report list` and UI checks, and retention removing a released dir whole with its nested `preflight/` directory. Not covered: `trace.otlp.json` semantics (tracegraph's reader); `report list` also lists a foreign directory holding any nonempty JSON-object `envelope.json` (observed, unchanged); no HEAD code reads the preflight files back, so their checks are fixture integrity; `report show` prints `Preflight: ok` for a strict run that enforcement blocked (observed, unchanged) | `test_frozen_envelope.py`, `test_frozen_preflight_envelope.py` (v0.1.2, v0.2.0, v0.3.0) | ### How a family is frozen diff --git a/tests/fixtures/persisted/envelope/freeze.py b/tests/fixtures/persisted/envelope/freeze.py index 37cd174..8d2e83a 100644 --- a/tests/fixtures/persisted/envelope/freeze.py +++ b/tests/fixtures/persisted/envelope/freeze.py @@ -22,6 +22,18 @@ git blob id in `index.json`. No value in these files is bound to the generating machine except `report show`'s error for a run with no envelope, which names the reports root (recorded in `index.json` as `runs_dir`). + +Part 2 freezes run dirs with a real preflight block into its own reports root, +`/preflight/`, leaving part 1's bytes alone. Run it with an interpreter +that has `jsonschema` (the fake toolgraph validates what it writes): + + .venv/bin/python tests/fixtures/persisted/envelope/freeze.py --part preflight \\ + --release-root /tmp/wt-v0.3.0 --out tests/fixtures/persisted/envelope/v0.3.0/preflight + +`preflight_scenarios` lists each scenario with the block and preflight files +measured on the release CLIs; the run stops if a release writes anything else. +`index.json` there also names the golden blob ids, the scenarios whose producer +reply is synthetic, and the scenarios reached through an injected write failure. """ from __future__ import annotations @@ -90,7 +102,11 @@ def main() -> None: parser = argparse.ArgumentParser() parser.add_argument("--release-root", type=Path, required=True) parser.add_argument("--out", type=Path, required=True) + parser.add_argument("--part", choices=("runs", "preflight"), default="runs") args = parser.parse_args() + if args.part == "preflight": + freeze_preflight(args.release_root.resolve(), args.out.resolve()) + return release = args.release_root.resolve() out = args.out.resolve() if out.exists(): @@ -327,5 +343,524 @@ def interrupted(scenario: str, sig: int, expect: dict) -> None: (out / "index.json").write_text(json.dumps(index, indent=2, sort_keys=True) + "\n") +# --------------------------------------------------------------------------- +# Part 2 (`--part preflight`): run dirs whose envelope carries a real preflight +# block. The release's own `syncmill run` calls this fake `toolgraph`, which +# answers with the RELEASE tree's vendored golden (tests/fixtures/toolgraph) and +# changes only what the consumer binds to the request: +# - `toolgraph preflight --profile P --run-id R --out O`: +# `run_id`. The request's agent, profile and (when the agent is found) +# candidates must equal the golden's, or it exits 3. Two scenarios are +# synthetic and say so in index.json: an identity listed in +# FAKE_TG_SYNTHETIC_AGENTS gets the golden with `agent` replaced (no +# successful golden names a second identity), and FAKE_TG_GEN replaces an +# identity's `graph_generation`. +# - `toolgraph control-preflight --profile P --out O`: `run_id`, +# `plan_digest` (sha256 of the plan bytes) and one evaluation per plan +# principal with `eligible` = its `candidate_tools`; a principal outside +# FAKE_TG_PRINCIPALS exits 3. The `finding` behaviour adds one synthetic +# finding, which is not a claim that toolgraph would find it in that plan. +# Every document is validated against the release's vendored producer schema +# before it is written. FAKE_TG is one behaviour, or a JSON map by identity +# (control uses the key "*"): allow, drift, unknown, unresolved, fail, hang, +# finding. +FAKE_TOOLGRAPH = '''\ +import hashlib, json, os, sys, time +from pathlib import Path +import jsonschema + +kind, rest = sys.argv[1], sys.argv[2:] +opts, positional, i = {}, [], 0 +while i < len(rest): + if rest[i].startswith("--"): + opts[rest[i]] = rest[i + 1] + i += 2 + else: + positional.append(rest[i]) + i += 1 +golden = Path(os.environ["FAKE_TG_GOLDEN"]) +with open(os.environ["FAKE_TG_LOG"], "a") as log: + log.write(json.dumps({"kind": kind, "argv": sys.argv[1:]}) + "\\n") +plan = os.environ.get("FAKE_TG", "allow") +key = positional[0] if kind == "preflight" else "*" +if plan.startswith("{"): + plan = json.loads(plan)[key] +if plan == "fail": + sys.stderr.write("toolgraph (fake): graph store unavailable\\n") + sys.exit(2) +if plan == "hang": + time.sleep(60) + sys.exit(1) + +def refuse(why): + sys.stderr.write("fake toolgraph: " + why + "\\n") + sys.exit(3) + +if kind == "preflight": + agent, tools = positional[0], positional[1:] + name = {"allow": "preflight-allow", "drift": "preflight-drift", + "unknown": "preflight-unknown-tool", + "unresolved": "preflight-unresolved-identity"}[plan] + doc = json.loads((golden / (name + ".json")).read_text()) + if agent != doc["agent"]: + if agent not in json.loads(os.environ.get("FAKE_TG_SYNTHETIC_AGENTS", "[]")): + refuse("agent " + agent + " is not the golden's " + doc["agent"]) + doc["agent"] = agent + if opts["--profile"] != doc["profile"]: + refuse("profile differs from the golden") + covered = [*doc["eligible"], *(row["candidate"] for row in doc["rejected"])] + if doc["agent_found"] and sorted(covered) != sorted(tools): + refuse("candidates differ from the golden") + doc["run_id"] = opts["--run-id"] + generations = json.loads(os.environ.get("FAKE_TG_GEN", "{}")) + if agent in generations: + doc["graph_generation"] = generations[agent] + schema = "preflight.schema.json" +else: + raw = Path(positional[0]).read_bytes() + control = json.loads(raw) + doc = json.loads((golden / "control-preflight-v1.json").read_text()) + if opts["--profile"] != doc["profile"]: + refuse("profile differs from the golden") + allowed = json.loads(os.environ["FAKE_TG_PRINCIPALS"]) + if any(p["id"] not in allowed for p in control["principals"]): + refuse("unexpected principal") + doc["run_id"] = control["run_id"] + doc["plan_digest"] = "sha256:" + hashlib.sha256(raw).hexdigest() + doc["evaluations"] = [ + {"principal": p["id"], "agent_found": True, + "eligible": list(p["candidate_tools"]), "rejected": []} + for p in control["principals"] + ] + if plan == "finding": + doc["findings"] = [{"code": "UNREACHABLE_NODE", "node": "verify"}] + doc["decision"] = "advisory_warn" + elif plan != "allow": + refuse("no control behaviour " + plan) + schema = "control-preflight.schema.json" +contract = json.loads((golden / schema).read_text()) +try: + jsonschema.validators.validator_for(contract)(contract).validate(doc) +except jsonschema.ValidationError as exc: + refuse("reply fails " + schema + ": " + exc.message) +Path(opts["--out"]).write_text(json.dumps(doc, indent=2) + "\\n") +print(json.dumps(doc)) +''' + +# Persistence failures are released shapes only a failing write reaches: the +# release's own writer runs with `syncmill.preflight._atomic_write` raising for +# one destination name and delegating every other write. Nothing else is patched. +FAILING_WRITE_LAUNCHER = """\ +import os, sys +import syncmill.preflight as preflight +original = preflight._atomic_write +def failing(raw, dest): + if dest.name == os.environ["FAIL_WRITE"]: + raise OSError("injected write failure: " + dest.name) + return original(raw, dest) +preflight._atomic_write = failing +from syncmill.cli import cli +sys.argv = ["syncmill", *sys.argv[1:]] +cli() +""" +INJECTED_EXCEPTION = "OSError('injected write failure: ')" + +ANY = object() # present; its value is checked by the tests, not here +ALLOW_TOOLS = ["memtomem::mem_search", "syncmill::shared_read"] +DRIFT_TOOLS = ["legacy::old_tool"] +UNKNOWN_TOOLS = ["legacy::missing"] +CONTROL_TOOLS = ["workspace::read", "workspace::write"] +GRAPH_STATE = {"generation": 42, "instance_id": "test-instance"} +GOLDENS = ( + "preflight-allow.json", "preflight-drift.json", "preflight-unknown-tool.json", + "preflight-unresolved-identity.json", "preflight.schema.json", + "control-preflight-v1.json", "control-preflight.schema.json", +) + + +def _block(status: str, mode: str, **fields: object) -> dict: + return {"status": status, "mode": mode, "profile": "review", **fields} + + +def _advisory_ok(**fields: object) -> dict: + return _block("ok", "advisory", graph_generation=42, artifact="preflight.json", + digest=ANY, **fields) + + +def _strict(status: str, decision: str, evaluations: int, blocks: int, warnings: int, + **fields: object) -> dict: + return _block(status, "strict", enforcement_decision=decision, + evaluation_count=evaluations, block_count=blocks, + warning_count=warnings, **fields) + + +def _control(mode: str, producer: str, warnings: int, *, persisted: bool = True, + **fields: object) -> dict: + block = _block("ok" if persisted else "error", mode, graph_generation=42, + graph_state=GRAPH_STATE, warning_count=warnings, evaluation_count=1, + producer_decision=producer, **fields) + if persisted: + block.update(artifact="control-preflight.json", digest=ANY, + control_plan={"artifact": "control-plan.json", "digest": ANY}) + return block + + +def preflight_scenarios(version: tuple[int, ...]) -> list[dict]: + """Each scenario with its measured block and preflight files (#271 part 2).""" + strict = {"SYNCMILL_INTEGRATION__TOOLGRAPH__MODE": "strict"} + as_kimi = {"SYNCMILL_INTEGRATION__TOOLGRAPH__AGENT_MAP": json.dumps({"codex": "kimi-code"})} + both = {"SYNCMILL_INTEGRATION__TOOLGRAPH__AGENT_MAP": + json.dumps({"codex": "codex", "kimi-code": "kimi"}), + "FAKE_TG_SYNTHETIC_AGENTS": json.dumps(["kimi"])} + timeout = {"SYNCMILL_INTEGRATION__TOOLGRAPH__TIMEOUT_SECONDS": "1"} + warn = {"SYNCMILL_INTEGRATION__TOOLGRAPH__UNAVAILABLE_POLICY": "warn"} + control = {"SYNCMILL_INTEGRATION__TOOLGRAPH__CONTROL_PLAN_ENABLED": "true", + "FAKE_TG_PRINCIPALS": json.dumps(["codex"])} + + def tools(names: list[str]) -> dict: + return {"SYNCMILL_INTEGRATION__TOOLGRAPH__CANDIDATE_TOOLS": json.dumps(names)} + + strict_files = {"preflight.json", "preflight/eval-000.json"} + released_before_cleanup = version < (0, 2, 0) + rows = [ + ("advisory-allow", "allow", {}, _advisory_ok(warning_count=0), {"preflight.json"}), + ("advisory-drift", "drift", tools(DRIFT_TOOLS), _advisory_ok(warning_count=1), + {"preflight.json"}), + ("advisory-unresolved", "unresolved", as_kimi, + _block("unresolved_identity", "advisory", graph_generation=42, warning_count=0, + artifact="preflight.json", digest=ANY), {"preflight.json"}), + ("advisory-unmapped", "allow", {"SYNCMILL_INTEGRATION__TOOLGRAPH__AGENT_MAP": "{}"}, + _block("unresolved_identity", "advisory"), set()), + ("advisory-error", "fail", {}, _block("error", "advisory"), set()), + ("advisory-timeout", "hang", timeout, _block("timeout", "advisory"), set()), + ("strict-allow", "allow", strict, + _strict("ok", "allow", 1, 0, 0, graph_generation=42, artifact="preflight.json", + digest=ANY), strict_files), + ("strict-warn", "drift", {**strict, **tools(DRIFT_TOOLS)}, + _strict("ok", "allow", 1, 0, 1, graph_generation=42, artifact="preflight.json", + digest=ANY), strict_files), + ("strict-block", "unknown", {**strict, **tools(UNKNOWN_TOOLS)}, + _strict("ok", "block", 1, 1, 0, graph_generation=42, artifact="preflight.json", + digest=ANY), strict_files), + ("strict-timeout", "hang", {**strict, **timeout}, + _strict("timeout", "block", 1, 1, 0, artifact="preflight.json", digest=ANY), + {"preflight.json"}), + ("strict-unresolved", "unresolved", {**strict, **as_kimi}, + _strict("unresolved_identity", "block", 1, 1, 0, graph_generation=42, + artifact="preflight.json", digest=ANY), strict_files), + ("strict-unavailable", "fail", strict, + _strict("error", "block", 1, 1, 0, artifact="preflight.json", digest=ANY), + {"preflight.json"}), + ("strict-unavailable-warn", "fail", {**strict, **warn}, + _strict("error", "allow", 1, 0, 1, artifact="preflight.json", digest=ANY), + {"preflight.json"}), + ("strict-multi-allow", json.dumps({"codex": "allow", "kimi": "allow"}), + {**strict, **both}, + _strict("ok", "allow", 2, 0, 0, graph_generation=42, artifact="preflight.json", + digest=ANY), {*strict_files, "preflight/eval-001.json"}), + ("strict-multi-mixed", json.dumps({"codex": "allow", "kimi": "fail"}), + {**strict, **both}, + _strict("error", "block", 2, 1, 0, graph_generation=42, artifact="preflight.json", + digest=ANY), strict_files), + ("strict-gen-mismatch", json.dumps({"codex": "allow", "kimi": "allow"}), + {**strict, **both, "FAKE_TG_GEN": json.dumps({"kimi": 43})}, + _strict("error", "block", 2, 1, 0, artifact="preflight.json", digest=ANY), + {*strict_files, "preflight/eval-001.json"}), + ("strict-unmapped", "allow", + {**strict, "SYNCMILL_INTEGRATION__TOOLGRAPH__AGENT_MAP": + json.dumps({"kimi-code": "kimi"})}, + _strict("unresolved_identity", "block", 1, 1, 0, artifact="preflight.json", + digest=ANY), {"preflight.json"}), + ("strict-persist-eval", "allow", {**strict, "FAIL_WRITE": "eval-000.json"}, + _strict("error", "block", 1, 1, 0, graph_generation=42) + if released_before_cleanup else + _strict("error", "block", 1, 1, 0, graph_generation=42, artifact="preflight.json", + digest=ANY), + set() if released_before_cleanup else {"preflight.json"}), + ("strict-persist-aggregate", "allow", {**strict, "FAIL_WRITE": "preflight.json"}, + _strict("error", "block", 1, 1, 0, graph_generation=42), + {"preflight/eval-000.json"} if released_before_cleanup else set()), + ] + if version >= (0, 2, 0): + c = {**control, **tools(CONTROL_TOOLS)} + control_files = {"control-plan.json", "control-preflight.json"} + rows += [ + ("control-allow", "allow", c, _control("advisory", "advisory_allow", 0), + control_files), + ("control-strict-allow", "allow", {**c, **strict}, + _control("strict", "advisory_allow", 0, enforcement_decision="allow", + block_count=0), control_files), + ("control-finding", "finding", c, _control("advisory", "advisory_warn", 2), + control_files), + ("control-strict-finding", "finding", {**c, **strict}, + _control("strict", "advisory_warn", 1, enforcement_decision="block", + block_count=1), control_files), + ("control-error", "fail", c, _block("error", "advisory"), set()), + ("control-strict-error", "fail", {**c, **strict}, + _strict("error", "block", 0, 1, 0), set()), + ("control-strict-error-warn", "fail", {**c, **strict, **warn}, + _strict("error", "allow", 0, 0, 1), set()), + ("control-strict-timeout", "hang", {**c, **strict, **timeout}, + _strict("timeout", "block", 0, 1, 0), set()), + ("control-persist", "allow", {**c, "FAIL_WRITE": "control-preflight.json"}, + _control("advisory", "advisory_allow", 0, persisted=False), set()), + ("control-strict-persist", "allow", + {**c, **strict, "FAIL_WRITE": "control-preflight.json"}, + _control("strict", "advisory_allow", 0, persisted=False, + enforcement_decision="block", block_count=1), set()), + ] + multi = {"strict-multi-allow", "strict-multi-mixed", "strict-gen-mismatch"} + return [ + {"name": name, "plan": plan, "env": env, "block": block, "files": files, + "argv": ("--team", "pair") if name in multi else ("-a", "codex")} + for name, plan, env, block, files in rows + ] + + +SYNTHETIC = { + "strict-multi-allow": "identity kimi answered with the allow golden, agent replaced", + # Not strict-multi-mixed: its kimi call fails before any reply is written. + "strict-gen-mismatch": "identity kimi answered with the allow golden, agent replaced " + "and graph_generation 43", + "control-finding": "one UNREACHABLE_NODE finding added to the control golden", + "control-strict-finding": "one UNREACHABLE_NODE finding added to the control golden", +} + + +def _preflight_files(run_dir: Path) -> set[str]: + owned = {"envelope.json", "result.json", ".syncmill-run-dir"} + return { + str(p.relative_to(run_dir)) for p in run_dir.rglob("*") + if p.is_file() and str(p.relative_to(run_dir)) not in owned + } + + +def _matches(got: object, want: object) -> bool: + if want is ANY: + return True + if isinstance(want, dict): + return (isinstance(got, dict) and set(got) == set(want) + and all(_matches(got[key], value) for key, value in want.items())) + return got == want + + +def _check_block(scenario: str, got: object, want: dict) -> None: + if not _matches(got, want): + sys.exit(f"{scenario}: preflight block {got!r} does not match {want!r}") + + +def freeze_preflight(release: Path, out: Path) -> None: + if out.exists(): + sys.exit(f"{out} exists; frozen fixtures are never regenerated") + python = release / ".venv" / "bin" / "python" + syncmill = release / ".venv" / "bin" / "syncmill" + version_text = subprocess.run( + [str(python), "-c", "import importlib.metadata as m; print(m.version('syncmill'))"], + check=True, capture_output=True, text=True, + ).stdout.strip() + version = tuple(int(part) for part in version_text.split(".")) + goldens = release / "tests" / "fixtures" / "toolgraph" + golden_blobs = {} + for name in GOLDENS: + if (goldens / name).exists(): + golden_blobs[name] = subprocess.run( + ["git", "-C", str(release), "rev-parse", + f"HEAD:tests/fixtures/toolgraph/{name}"], + check=True, capture_output=True, text=True, + ).stdout.strip() + + with tempfile.TemporaryDirectory() as tmp: + box = Path(tmp).resolve() + repo, home, state, fakebin, started = ( + box / n for n in ("repo", "home", "state", "fakebin", "started") + ) + for folder in (repo, home, state, fakebin, started): + folder.mkdir() + for binary in ("codex", "kimi"): + (fakebin / binary).write_text(f"#!{sys.executable}\n" + FAKE_AGENT, encoding="utf-8") + (fakebin / binary).chmod(0o755) + (fakebin / "toolgraph").write_text(f"#!{sys.executable}\n" + FAKE_TOOLGRAPH, + encoding="utf-8") + (fakebin / "toolgraph").chmod(0o755) + reports = state / "reports" + calls = box / "toolgraph-calls.jsonl" + base_env = { + "HOME": str(home), + "PATH": os.pathsep.join([str(fakebin), "/usr/bin", "/bin"]), + "TMPDIR": str(box), + "GIT_CONFIG_NOSYSTEM": "1", + "FAKE_STARTED": str(started), + "FAKE_TG_GOLDEN": str(goldens), + "FAKE_TG_LOG": str(calls), + "SYNCMILL_PROJECT__ID": "frozen-envelope", + "SYNCMILL_AGENT_PRIORITY": json.dumps(["codex", "kimi-code"]), + "SYNCMILL_CLAUDE__ENABLED": "false", + "SYNCMILL_TEAMS": json.dumps(TEAMS), + "SYNCMILL_RUNS__ROOT": str(state / "runs"), + "SYNCMILL_WORKSPACE__ROOT": str(state / "workspaces"), + "SYNCMILL_MEMORY__DB_PATH": str(state / "memory" / "memtomem.db"), + "SYNCMILL_MEMORY__MEMORY_DIR": str(state / "memory" / "files"), + "SYNCMILL_BREAKER__STATE_PATH": str(state / "breaker.json"), + "SYNCMILL_INTEGRATION__REPORT__ENABLED": "true", + "SYNCMILL_INTEGRATION__REPORT__RUNS_DIR": str(reports), + "SYNCMILL_INTEGRATION__REPORT__KEEP_LAST": "1000", + "SYNCMILL_INTEGRATION__TOOLGRAPH__ENABLED": "true", + "SYNCMILL_INTEGRATION__TOOLGRAPH__AGENT_MAP": json.dumps({"codex": "codex"}), + "SYNCMILL_INTEGRATION__TOOLGRAPH__CANDIDATE_TOOLS": json.dumps(ALLOW_TOOLS), + **GIT_ENV, + } + + def git(*argv: str) -> None: + subprocess.run(["git", *argv], cwd=repo, env=base_env, check=True, capture_output=True) + + git("init", "-q", "-b", "main") + for name, text in TREE.items(): + (repo / name).write_text(text, encoding="utf-8") + git("add", "-A") + git("commit", "-q", "-m", "frozen tree") + + (out / "runs").mkdir(parents=True) + index: dict = { + "release": version_text, + "runs_dir": str(reports), + "goldens": golden_blobs, + "scenarios": {}, + } + + def dirs() -> set[str]: + return {p.name for p in reports.iterdir() if p.is_dir()} if reports.exists() else set() + + def new_dir(before: set[str], what: str) -> str: + new = sorted(dirs() - before) + if len(new) != 1: + sys.exit(f"{what}: expected one new run dir, got {new}") + return new[0] + + def toolgraph_calls() -> int: + return len(calls.read_text().splitlines()) if calls.exists() else 0 + + def freeze(scenario: dict, run_id: str, result: dict) -> None: + run_dir = reports / run_id + doc = json.loads((run_dir / "envelope.json").read_text()) + _check_block(scenario["name"], doc.get("preflight"), scenario["block"]) + for key, want in result.items(): + if (doc.get("result") or {}).get(key) != want: + sys.exit(f"{scenario['name']}: result.{key} is " + f"{(doc.get('result') or {}).get(key)!r}, expected {want!r}") + files = _preflight_files(run_dir) + if files != scenario["files"]: + sys.exit(f"{scenario['name']}: preflight files {sorted(files)}, " + f"expected {sorted(scenario['files'])}") + shutil.copytree(run_dir, out / "runs" / run_id) + entry: dict = {"run_id": run_id} + if scenario["name"] in SYNTHETIC: + entry["synthetic"] = SYNTHETIC[scenario["name"]] + if "FAIL_WRITE" in scenario["env"]: + entry["injected_write_failure"] = { + "destination": scenario["env"]["FAIL_WRITE"], + "exception": INJECTED_EXCEPTION, + } + index["scenarios"][scenario["name"]] = entry + git("checkout", "--", ".") + + blocked = {"status": "failed", "agent_id": "preflight", "exit_code": 1} + for scenario in preflight_scenarios(version): + env = {**base_env, **scenario["env"], "FAKE_TG": scenario["plan"], + "FAKE_PLAN": "{}"} + argv = ["run", "fix add", *scenario["argv"]] + command = ( + [str(python), "-c", FAILING_WRITE_LAUNCHER, *argv] + if "FAIL_WRITE" in scenario["env"] else [str(syncmill), *argv] + ) + calls.unlink(missing_ok=True) + before = dirs() + done = subprocess.run(command, cwd=repo, env=env, capture_output=True, text=True) + run_id = new_dir(before, f"{scenario['name']}: {done.stderr}") + if scenario["name"] in ("advisory-unmapped", "strict-unmapped") and toolgraph_calls(): + sys.exit(f"{scenario['name']}: toolgraph was called") + decision = scenario["block"].get("enforcement_decision") + expect_blocked = decision == "block" + if done.returncode != (1 if expect_blocked else 0): + sys.exit(f"{scenario['name']}: exit {done.returncode}: {done.stderr}") + freeze(scenario, run_id, + blocked if expect_blocked else {"status": "completed", "agent_id": "codex"}) + + # SIGKILL while the agent works, after a strict-allow preflight finished: + # the skeleton envelope (preflight `disabled`) beside the preflight evidence. + strict_allow = next(s for s in preflight_scenarios(version) if s["name"] == "strict-allow") + marker = started / "codex" + marker.unlink(missing_ok=True) + before = dirs() + proc = subprocess.Popen( + [str(syncmill), "run", "fix add", "-a", "codex"], cwd=repo, + env={**base_env, **strict_allow["env"], "FAKE_TG": "allow", + "FAKE_PLAN": json.dumps({"codex": "hang"})}, + stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, + ) + agent_pid = None + try: + deadline = time.monotonic() + 60 + while not (marker.exists() and any( + (reports / d / "envelope.json").exists() for d in dirs() - before + )): + if time.monotonic() > deadline or proc.poll() is not None: + sys.exit("killed-after-preflight: the fake agent never started") + time.sleep(0.1) + agent_pid = int(marker.read_text()) + proc.send_signal(signal.SIGKILL) + proc.wait(timeout=60) + finally: + if proc.poll() is None: + proc.kill() + proc.wait() + if agent_pid is not None: + try: + os.kill(agent_pid, signal.SIGKILL) + except ProcessLookupError: + pass + freeze({"name": "killed-after-preflight", "env": {}, "block": {"status": "disabled"}, + "files": {"preflight.json", "preflight/eval-000.json"}}, + new_dir(before, "killed-after-preflight"), + {"status": "failed", "agent_id": None, "exit_code": None}) + + # Newest-first must differ from directory-name order (see part 1). + def orders() -> tuple[list[str], list[str]]: + listed = sorted(dirs()) + newest = sorted( + listed, + key=lambda d: json.loads((reports / d / "envelope.json").read_text())["created_at"], + reverse=True, + ) + return listed, newest + + listed, newest = orders() + extra = 0 + while newest == listed or newest == listed[::-1]: + extra += 1 + if extra > 5: + sys.exit("could not make created_at order differ from name order") + scenario = {**preflight_scenarios(version)[0], "name": f"advisory-allow-{extra}"} + before = dirs() + done = subprocess.run([str(syncmill), "run", "fix add", "-a", "codex"], cwd=repo, + env={**base_env, "FAKE_TG": "allow", "FAKE_PLAN": "{}"}, + capture_output=True, text=True) + freeze(scenario, new_dir(before, f"{scenario['name']}: {done.stderr}"), + {"status": "completed", "agent_id": "codex"}) + listed, newest = orders() + + shown = subprocess.run([str(syncmill), "report", "list"], cwd=repo, env=base_env, + capture_output=True, text=True) + if shown.returncode != 0: + sys.exit(f"report list: {shown.stderr}") + index["report_list"] = shown.stdout + for entry in index["scenarios"].values(): + done = subprocess.run([str(syncmill), "report", "show", entry["run_id"]], cwd=repo, + env=base_env, capture_output=True, text=True) + entry["report_show"] = { + "returncode": done.returncode, "stdout": done.stdout, "stderr": done.stderr, + } + (out / "index.json").write_text(json.dumps(index, indent=2, sort_keys=True) + "\n") + + if __name__ == "__main__": main() diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/index.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/index.json new file mode 100644 index 0000000..1b3e89e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/index.json @@ -0,0 +1,184 @@ +{ + "goldens": { + "preflight-allow.json": "2d7a7efc42cc259ee218b96f88fe12b579101283", + "preflight-drift.json": "ab4495e6a9e7ef4264028242e5be2e11fe46901f", + "preflight-unknown-tool.json": "ae02acd9cca64a01bae32024b8f36f6814022eda", + "preflight-unresolved-identity.json": "fe52d653f7685bde35656088bc707a31cd6ee25d", + "preflight.schema.json": "f26a74cc9466d5c7b94ea6b0e17a023722716529" + }, + "release": "0.1.2", + "report_list": "Recorded runs (newest first):\n\n 472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c 2026-11-15T07:21:10.077830+00:00 route failed \u2014\n c7b68458-95c4-4343-b427-a98686121c09 2026-11-15T07:21:09.804556+00:00 route failed preflight\n a755ba8c-b901-47df-b9de-597bf342e184 2026-11-15T07:21:09.535879+00:00 route failed preflight\n a5ce2283-9770-46c0-a941-803af9122ffa 2026-11-15T07:21:09.337309+00:00 route failed preflight\n f9ef082e-2378-4a2d-9e5f-b806d3c2ec34 2026-11-15T07:21:09.017040+00:00 compete failed preflight\n 9146ff0c-2c19-49c0-ad96-10a9a7fc9b29 2026-11-15T07:21:08.704226+00:00 compete failed preflight\n 38844160-fa94-4225-9c64-07859a3b280f 2026-11-15T07:21:07.586018+00:00 compete completed codex\n b7134483-28a3-4ed9-95fd-055bf91e4b72 2026-11-15T07:21:06.652986+00:00 route completed codex\n ee74b93f-947a-4122-a42f-7977e6d8131c 2026-11-15T07:21:06.395198+00:00 route failed preflight\n e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2 2026-11-15T07:21:06.129384+00:00 route failed preflight\n 0d56bf34-fcc3-48ac-8230-3a5c2925b41d 2026-11-15T07:21:04.912397+00:00 route failed preflight\n c97c2812-3b55-4cc6-a12f-69b4a4cb0e07 2026-11-15T07:21:04.630322+00:00 route failed preflight\n d0552f65-057e-4a25-b70f-a71951338f6a 2026-11-15T07:21:03.689138+00:00 route completed codex\n a79dedbf-8520-4794-9887-9ae701869464 2026-11-15T07:21:02.744438+00:00 route completed codex\n 411503c2-9b6a-4a9d-8bfe-fc53fbfc7229 2026-11-15T07:21:00.847291+00:00 route completed codex\n ca0cb002-cf89-4e76-b85d-9aa056aceddb 2026-11-15T07:20:59.957764+00:00 route completed codex\n 46537e72-8bee-4f2b-8aee-2aba0d34f9bd 2026-11-15T07:20:59.110301+00:00 route completed codex\n 18d20b51-a8db-455d-9d36-2f177d3b4f4c 2026-11-15T07:20:58.210811+00:00 route completed codex\n 7b72c640-596b-4666-b5d2-442f1233a83c 2026-11-15T07:20:57.349960+00:00 route completed codex\n 050a3020-88be-4842-a09d-25860f221c97 2026-11-15T07:20:56.195253+00:00 route completed codex\n", + "runs_dir": "/private/var/folders/4n/mt3km5rs1bn_b0w_d6hvlmhc0000gn/T/tmprahi3jbb/state/reports", + "scenarios": { + "advisory-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 050a3020-88be-4842-a09d-25860f221c97\nCreated: 2026-11-15T07:20:56.195253+00:00\nFinished: 2026-11-15T07:20:57.083640+00:00\nStrategy: route\nTeam: \u2014\nTask: 9803d04b-da7d-46d0-84a2-3cb49f1b1fbd\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.08s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:0ba327f895a43644830c39bab9547db4d302481833bc02cd29c2e032d001236e\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "050a3020-88be-4842-a09d-25860f221c97" + }, + "advisory-drift": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 7b72c640-596b-4666-b5d2-442f1233a83c\nCreated: 2026-11-15T07:20:57.349960+00:00\nFinished: 2026-11-15T07:20:57.962760+00:00\nStrategy: route\nTeam: \u2014\nTask: da218cf7-5f05-42db-9bfd-37068c66ed5f\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "7b72c640-596b-4666-b5d2-442f1233a83c" + }, + "advisory-error": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: ca0cb002-cf89-4e76-b85d-9aa056aceddb\nCreated: 2026-11-15T07:20:59.957764+00:00\nFinished: 2026-11-15T07:21:00.597508+00:00\nStrategy: route\nTeam: \u2014\nTask: 68ace452-2b5a-413c-9045-458e1744de0d\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "ca0cb002-cf89-4e76-b85d-9aa056aceddb" + }, + "advisory-timeout": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 411503c2-9b6a-4a9d-8bfe-fc53fbfc7229\nCreated: 2026-11-15T07:21:00.847291+00:00\nFinished: 2026-11-15T07:21:02.477737+00:00\nStrategy: route\nTeam: \u2014\nTask: 1aa7c049-7ad3-4ca5-b8c3-2b13ffefce74\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: timeout\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "411503c2-9b6a-4a9d-8bfe-fc53fbfc7229" + }, + "advisory-unmapped": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 46537e72-8bee-4f2b-8aee-2aba0d34f9bd\nCreated: 2026-11-15T07:20:59.110301+00:00\nFinished: 2026-11-15T07:20:59.697107+00:00\nStrategy: route\nTeam: \u2014\nTask: 4a576e4d-7463-42f7-9118-a58adb89d1f1\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "46537e72-8bee-4f2b-8aee-2aba0d34f9bd" + }, + "advisory-unresolved": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 18d20b51-a8db-455d-9d36-2f177d3b4f4c\nCreated: 2026-11-15T07:20:58.210811+00:00\nFinished: 2026-11-15T07:20:58.833886+00:00\nStrategy: route\nTeam: \u2014\nTask: bba9e3fd-3a70-4d1a-81c6-955c9bf80c44\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "18d20b51-a8db-455d-9d36-2f177d3b4f4c" + }, + "killed-after-preflight": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c\nCreated: 2026-11-15T07:21:10.077830+00:00\nFinished: 2026-11-15T07:21:10.077830+00:00\nStrategy: route\nTeam: \u2014\nTask: f0068fcc-8c5f-42ce-ab77-abcbc807bfc3\nAgents: codex\nBoard: \u2014\nResult: failed\n winner: \u2014\n exit code: None\n duration: Nones\n gate passed: None\n files changed: None\n artifact: \u2014\n digest: \u2014\n patch digest: \u2014\nPreflight: disabled\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c" + }, + "strict-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: a79dedbf-8520-4794-9887-9ae701869464\nCreated: 2026-11-15T07:21:02.744438+00:00\nFinished: 2026-11-15T07:21:03.412208+00:00\nStrategy: route\nTeam: \u2014\nTask: 44900c90-1414-4324-8d7e-5488252cfabf\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "a79dedbf-8520-4794-9887-9ae701869464" + }, + "strict-block": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: c97c2812-3b55-4cc6-a12f-69b4a4cb0e07\nCreated: 2026-11-15T07:21:04.630322+00:00\nFinished: 2026-11-15T07:21:04.683109+00:00\nStrategy: route\nTeam: \u2014\nTask: 569c2f3d-f6ee-4f4d-98ba-38c11836cbf0\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f5ee2d1143d77bc76b4eeef3a53c8cd9dda4c465901ac42c76fa24e3c9a69a0\n patch digest: \u2014\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "c97c2812-3b55-4cc6-a12f-69b4a4cb0e07" + }, + "strict-gen-mismatch": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: f9ef082e-2378-4a2d-9e5f-b806d3c2ec34\nCreated: 2026-11-15T07:21:09.017040+00:00\nFinished: 2026-11-15T07:21:09.125152+00:00\nStrategy: compete\nTeam: pair\nTask: 23ca15c8-5b7c-4672-8f02-4103fadb835a\nAgents: codex, kimi-code\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:9c4d2beae8c1b098ed52a08aad1f7be6e49af813febf8fc745cce0563684c273\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "f9ef082e-2378-4a2d-9e5f-b806d3c2ec34", + "synthetic": "identity kimi answered with the allow golden, agent replaced and graph_generation 43" + }, + "strict-multi-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 38844160-fa94-4225-9c64-07859a3b280f\nCreated: 2026-11-15T07:21:07.586018+00:00\nFinished: 2026-11-15T07:21:08.409333+00:00\nStrategy: compete\nTeam: pair\nTask: 427d75d9-5124-41b0-8948-aa0c06baf980\nAgents: codex, kimi-code\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "38844160-fa94-4225-9c64-07859a3b280f", + "synthetic": "identity kimi answered with the allow golden, agent replaced" + }, + "strict-multi-mixed": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 9146ff0c-2c19-49c0-ad96-10a9a7fc9b29\nCreated: 2026-11-15T07:21:08.704226+00:00\nFinished: 2026-11-15T07:21:08.805708+00:00\nStrategy: compete\nTeam: pair\nTask: 75e26694-e345-4e33-8a33-1448e0e23bc0\nAgents: codex, kimi-code\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "9146ff0c-2c19-49c0-ad96-10a9a7fc9b29" + }, + "strict-persist-aggregate": { + "injected_write_failure": { + "destination": "preflight.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: c7b68458-95c4-4343-b427-a98686121c09\nCreated: 2026-11-15T07:21:09.804556+00:00\nFinished: 2026-11-15T07:21:09.860786+00:00\nStrategy: route\nTeam: \u2014\nTask: 119e8d29-062e-402e-812e-a47cf760124c\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "c7b68458-95c4-4343-b427-a98686121c09" + }, + "strict-persist-eval": { + "injected_write_failure": { + "destination": "eval-000.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: a755ba8c-b901-47df-b9de-597bf342e184\nCreated: 2026-11-15T07:21:09.535879+00:00\nFinished: 2026-11-15T07:21:09.586730+00:00\nStrategy: route\nTeam: \u2014\nTask: 913176b0-5f1f-49bf-b5b4-c81b47de5027\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "a755ba8c-b901-47df-b9de-597bf342e184" + }, + "strict-timeout": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 0d56bf34-fcc3-48ac-8230-3a5c2925b41d\nCreated: 2026-11-15T07:21:04.912397+00:00\nFinished: 2026-11-15T07:21:05.917152+00:00\nStrategy: route\nTeam: \u2014\nTask: b37eadd2-ed7a-4711-ac51-446fe6ae4e12\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: timeout\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "0d56bf34-fcc3-48ac-8230-3a5c2925b41d" + }, + "strict-unavailable": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: ee74b93f-947a-4122-a42f-7977e6d8131c\nCreated: 2026-11-15T07:21:06.395198+00:00\nFinished: 2026-11-15T07:21:06.446294+00:00\nStrategy: route\nTeam: \u2014\nTask: 8728919b-14cf-4711-9b2b-e8d4053f565a\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "ee74b93f-947a-4122-a42f-7977e6d8131c" + }, + "strict-unavailable-warn": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: b7134483-28a3-4ed9-95fd-055bf91e4b72\nCreated: 2026-11-15T07:21:06.652986+00:00\nFinished: 2026-11-15T07:21:07.318339+00:00\nStrategy: route\nTeam: \u2014\nTask: 59e241b2-d3cd-4421-aa41-2828796e1487\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "b7134483-28a3-4ed9-95fd-055bf91e4b72" + }, + "strict-unmapped": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: a5ce2283-9770-46c0-a941-803af9122ffa\nCreated: 2026-11-15T07:21:09.337309+00:00\nFinished: 2026-11-15T07:21:09.338527+00:00\nStrategy: route\nTeam: \u2014\nTask: 68ec4801-8e9b-4b51-98ff-e67ebec8c9c7\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:d2f4740ffec7937781b18b7e6db1783300042470e5fe33d05143fd87ef3e5a25\n patch digest: \u2014\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "a5ce2283-9770-46c0-a941-803af9122ffa" + }, + "strict-unresolved": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2\nCreated: 2026-11-15T07:21:06.129384+00:00\nFinished: 2026-11-15T07:21:06.185787+00:00\nStrategy: route\nTeam: \u2014\nTask: 5abbc5ca-113b-44ee-ae3e-9f227b598ea3\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:f4e074e8175c11148640c6cdb277c6591f7188add6528cab64ad39204620f51f\n patch digest: \u2014\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2" + }, + "strict-warn": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: d0552f65-057e-4a25-b70f-a71951338f6a\nCreated: 2026-11-15T07:21:03.689138+00:00\nFinished: 2026-11-15T07:21:04.362123+00:00\nStrategy: route\nTeam: \u2014\nTask: f86c2a6b-5fed-4c70-b8be-0874a5957ec3\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "d0552f65-057e-4a25-b70f-a71951338f6a" + } + } +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/050a3020-88be-4842-a09d-25860f221c97/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/050a3020-88be-4842-a09d-25860f221c97/envelope.json new file mode 100644 index 0000000..6dc61e7 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/050a3020-88be-4842-a09d-25860f221c97/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "050a3020-88be-4842-a09d-25860f221c97", "created_at": "2026-11-15T07:20:56.195253+00:00", "finished_at": "2026-11-15T07:20:57.083640+00:00", "strategy": "route", "team": null, "task_id": "9803d04b-da7d-46d0-84a2-3cb49f1b1fbd", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:6435d6c7dd4d5654f7d1fb4388d7239c86c7513d8be4c3ba9beec58a912861dd"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.08, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:0ba327f895a43644830c39bab9547db4d302481833bc02cd29c2e032d001236e", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/050a3020-88be-4842-a09d-25860f221c97/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/050a3020-88be-4842-a09d-25860f221c97/preflight.json new file mode 100644 index 0000000..e6a101d --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/050a3020-88be-4842-a09d-25860f221c97/preflight.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "050a3020-88be-4842-a09d-25860f221c97", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/050a3020-88be-4842-a09d-25860f221c97/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/050a3020-88be-4842-a09d-25860f221c97/result.json new file mode 100644 index 0000000..815aaf2 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/050a3020-88be-4842-a09d-25860f221c97/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.08, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/0d56bf34-fcc3-48ac-8230-3a5c2925b41d/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/0d56bf34-fcc3-48ac-8230-3a5c2925b41d/envelope.json new file mode 100644 index 0000000..ca41c39 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/0d56bf34-fcc3-48ac-8230-3a5c2925b41d/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "0d56bf34-fcc3-48ac-8230-3a5c2925b41d", "created_at": "2026-11-15T07:21:04.912397+00:00", "finished_at": "2026-11-15T07:21:05.917152+00:00", "strategy": "route", "team": null, "task_id": "b37eadd2-ed7a-4711-ac51-446fe6ae4e12", "agents": ["codex"], "board": null, "preflight": {"status": "timeout", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:2d7ced95f4d583f0f7b83b12aee87290e09d7e70a557247767a6b0dc105428e2"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/0d56bf34-fcc3-48ac-8230-3a5c2925b41d/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/0d56bf34-fcc3-48ac-8230-3a5c2925b41d/preflight.json new file mode 100644 index 0000000..76a7758 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/0d56bf34-fcc3-48ac-8230-3a5c2925b41d/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "status": "timeout", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "0d56bf34-fcc3-48ac-8230-3a5c2925b41d", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/0d56bf34-fcc3-48ac-8230-3a5c2925b41d/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/0d56bf34-fcc3-48ac-8230-3a5c2925b41d/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/0d56bf34-fcc3-48ac-8230-3a5c2925b41d/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/18d20b51-a8db-455d-9d36-2f177d3b4f4c/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/18d20b51-a8db-455d-9d36-2f177d3b4f4c/envelope.json new file mode 100644 index 0000000..c10f482 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/18d20b51-a8db-455d-9d36-2f177d3b4f4c/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "18d20b51-a8db-455d-9d36-2f177d3b4f4c", "created_at": "2026-11-15T07:20:58.210811+00:00", "finished_at": "2026-11-15T07:20:58.833886+00:00", "strategy": "route", "team": null, "task_id": "bba9e3fd-3a70-4d1a-81c6-955c9bf80c44", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "advisory", "profile": "review", "graph_generation": 42, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:7cf97f053aa41bb88845bff667ba2fbd5a6fe60d01c3cd40bb38fc9bde9c87fd"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/18d20b51-a8db-455d-9d36-2f177d3b4f4c/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/18d20b51-a8db-455d-9d36-2f177d3b4f4c/preflight.json new file mode 100644 index 0000000..a455151 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/18d20b51-a8db-455d-9d36-2f177d3b4f4c/preflight.json @@ -0,0 +1,15 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "18d20b51-a8db-455d-9d36-2f177d3b4f4c", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "kimi-code", + "agent_found": false, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [], + "features": [], + "decision": "unresolved_identity" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/18d20b51-a8db-455d-9d36-2f177d3b4f4c/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/18d20b51-a8db-455d-9d36-2f177d3b4f4c/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/18d20b51-a8db-455d-9d36-2f177d3b4f4c/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/envelope.json new file mode 100644 index 0000000..4c0944c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "38844160-fa94-4225-9c64-07859a3b280f", "created_at": "2026-11-15T07:21:07.586018+00:00", "finished_at": "2026-11-15T07:21:08.409333+00:00", "strategy": "compete", "team": "pair", "task_id": "427d75d9-5124-41b0-8948-aa0c06baf980", "agents": ["codex", "kimi-code"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 2, "block_count": 0, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:aa130fb523384a3fa8f03fc273fba9befe860ecce8f5f614040f16c909b83f9a"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/preflight.json new file mode 100644 index 0000000..5fe345a --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/preflight.json @@ -0,0 +1,42 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:32966bd88c305ec0a59a7a9e08c9b2ecb732e461d646928d4f148e5bb1ab623a", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + }, + { + "artifact": "preflight/eval-001.json", + "blocking_reasons": [], + "digest": "sha256:f2f8a63870b5cacb7848fd1944a899655ef7818ce667477e0f5ec35b6464fddf", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "kimi-code" + ], + "toolgraph_agent": "kimi", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "38844160-fa94-4225-9c64-07859a3b280f", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/preflight/eval-000.json new file mode 100644 index 0000000..9c22063 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "38844160-fa94-4225-9c64-07859a3b280f", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/preflight/eval-001.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/preflight/eval-001.json new file mode 100644 index 0000000..94977d5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/preflight/eval-001.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "38844160-fa94-4225-9c64-07859a3b280f", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "kimi", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/38844160-fa94-4225-9c64-07859a3b280f/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/411503c2-9b6a-4a9d-8bfe-fc53fbfc7229/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/411503c2-9b6a-4a9d-8bfe-fc53fbfc7229/envelope.json new file mode 100644 index 0000000..e6336e7 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/411503c2-9b6a-4a9d-8bfe-fc53fbfc7229/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "411503c2-9b6a-4a9d-8bfe-fc53fbfc7229", "created_at": "2026-11-15T07:21:00.847291+00:00", "finished_at": "2026-11-15T07:21:02.477737+00:00", "strategy": "route", "team": null, "task_id": "1aa7c049-7ad3-4ca5-b8c3-2b13ffefce74", "agents": ["codex"], "board": null, "preflight": {"status": "timeout", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/411503c2-9b6a-4a9d-8bfe-fc53fbfc7229/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/411503c2-9b6a-4a9d-8bfe-fc53fbfc7229/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/411503c2-9b6a-4a9d-8bfe-fc53fbfc7229/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/46537e72-8bee-4f2b-8aee-2aba0d34f9bd/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/46537e72-8bee-4f2b-8aee-2aba0d34f9bd/envelope.json new file mode 100644 index 0000000..2cd4fb7 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/46537e72-8bee-4f2b-8aee-2aba0d34f9bd/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "46537e72-8bee-4f2b-8aee-2aba0d34f9bd", "created_at": "2026-11-15T07:20:59.110301+00:00", "finished_at": "2026-11-15T07:20:59.697107+00:00", "strategy": "route", "team": null, "task_id": "4a576e4d-7463-42f7-9118-a58adb89d1f1", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/46537e72-8bee-4f2b-8aee-2aba0d34f9bd/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/46537e72-8bee-4f2b-8aee-2aba0d34f9bd/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/46537e72-8bee-4f2b-8aee-2aba0d34f9bd/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c/envelope.json new file mode 100644 index 0000000..19977c1 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c", "created_at": "2026-11-15T07:21:10.077830+00:00", "finished_at": "2026-11-15T07:21:10.077830+00:00", "strategy": "route", "team": null, "task_id": "f0068fcc-8c5f-42ce-ab77-abcbc807bfc3", "agents": ["codex"], "board": null, "preflight": {"status": "disabled"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": null, "winner": null, "exit_code": null, "duration_seconds": null, "gate_passed": null, "files_changed_count": null, "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c/preflight.json new file mode 100644 index 0000000..d298440 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:3fa237b141fc52f914ba2603c3d8619e6f43018e3e43ee8a6c67ab9838ff5681", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c/preflight/eval-000.json new file mode 100644 index 0000000..0610aff --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "472d0b17-2b49-4f4e-ac95-4ba2fd1b5f6c", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/7b72c640-596b-4666-b5d2-442f1233a83c/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/7b72c640-596b-4666-b5d2-442f1233a83c/envelope.json new file mode 100644 index 0000000..e99c676 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/7b72c640-596b-4666-b5d2-442f1233a83c/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "7b72c640-596b-4666-b5d2-442f1233a83c", "created_at": "2026-11-15T07:20:57.349960+00:00", "finished_at": "2026-11-15T07:20:57.962760+00:00", "strategy": "route", "team": null, "task_id": "da218cf7-5f05-42db-9bfd-37068c66ed5f", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "warning_count": 1, "artifact": "preflight.json", "digest": "sha256:41684ee61aa4dbf5e29cfa60291f0a07479e00bd10ecb6355cc3c6f70af61b12"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/7b72c640-596b-4666-b5d2-442f1233a83c/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/7b72c640-596b-4666-b5d2-442f1233a83c/preflight.json new file mode 100644 index 0000000..0361b80 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/7b72c640-596b-4666-b5d2-442f1233a83c/preflight.json @@ -0,0 +1,21 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "7b72c640-596b-4666-b5d2-442f1233a83c", + "created_at": "2026-07-12T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [ + { + "candidate": "legacy::old_tool", + "tool_key": "legacy::old_tool", + "reason": "DRIFTED" + } + ], + "features": [], + "decision": "advisory_warn" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/7b72c640-596b-4666-b5d2-442f1233a83c/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/7b72c640-596b-4666-b5d2-442f1233a83c/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/7b72c640-596b-4666-b5d2-442f1233a83c/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/envelope.json new file mode 100644 index 0000000..1024bc2 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "9146ff0c-2c19-49c0-ad96-10a9a7fc9b29", "created_at": "2026-11-15T07:21:08.704226+00:00", "finished_at": "2026-11-15T07:21:08.805708+00:00", "strategy": "compete", "team": "pair", "task_id": "75e26694-e345-4e33-8a33-1448e0e23bc0", "agents": ["codex", "kimi-code"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 2, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:60aa3e2e5f4670f11c68aac99a3fe90cb756989f69e6513dfa07ff6c7c0d0251"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/preflight.json new file mode 100644 index 0000000..626198e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/preflight.json @@ -0,0 +1,42 @@ +{ + "block_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:025406c85afb6d67083e46af91c0d12250b0b2bceee19b1a86af039174ef4409", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + }, + { + "blocking_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "status": "error", + "syncmill_agents": [ + "kimi-code" + ], + "toolgraph_agent": "kimi", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "9146ff0c-2c19-49c0-ad96-10a9a7fc9b29", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/preflight/eval-000.json new file mode 100644 index 0000000..9716e46 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "9146ff0c-2c19-49c0-ad96-10a9a7fc9b29", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/9146ff0c-2c19-49c0-ad96-10a9a7fc9b29/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a5ce2283-9770-46c0-a941-803af9122ffa/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a5ce2283-9770-46c0-a941-803af9122ffa/envelope.json new file mode 100644 index 0000000..96cd2d0 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a5ce2283-9770-46c0-a941-803af9122ffa/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "a5ce2283-9770-46c0-a941-803af9122ffa", "created_at": "2026-11-15T07:21:09.337309+00:00", "finished_at": "2026-11-15T07:21:09.338527+00:00", "strategy": "route", "team": null, "task_id": "68ec4801-8e9b-4b51-98ff-e67ebec8c9c7", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:8dc996ef9fc49777564ee3b876894a8b7611af8b3e1acab06738fee5f94c1074"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:d2f4740ffec7937781b18b7e6db1783300042470e5fe33d05143fd87ef3e5a25", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a5ce2283-9770-46c0-a941-803af9122ffa/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a5ce2283-9770-46c0-a941-803af9122ffa/preflight.json new file mode 100644 index 0000000..2a3ab42 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a5ce2283-9770-46c0-a941-803af9122ffa/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "AGENT_MAPPING_MISSING" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [ + "AGENT_MAPPING_MISSING" + ], + "status": "unresolved_identity", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": null, + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "a5ce2283-9770-46c0-a941-803af9122ffa", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a5ce2283-9770-46c0-a941-803af9122ffa/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a5ce2283-9770-46c0-a941-803af9122ffa/result.json new file mode 100644 index 0000000..d9cdf8c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a5ce2283-9770-46c0-a941-803af9122ffa/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: AGENT_MAPPING_MISSING", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a755ba8c-b901-47df-b9de-597bf342e184/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a755ba8c-b901-47df-b9de-597bf342e184/envelope.json new file mode 100644 index 0000000..dc8bb77 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a755ba8c-b901-47df-b9de-597bf342e184/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "a755ba8c-b901-47df-b9de-597bf342e184", "created_at": "2026-11-15T07:21:09.535879+00:00", "finished_at": "2026-11-15T07:21:09.586730+00:00", "strategy": "route", "team": null, "task_id": "913176b0-5f1f-49bf-b5b4-c81b47de5027", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a755ba8c-b901-47df-b9de-597bf342e184/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a755ba8c-b901-47df-b9de-597bf342e184/result.json new file mode 100644 index 0000000..75d3d2e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a755ba8c-b901-47df-b9de-597bf342e184/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: EVIDENCE_PERSIST_FAILED", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/envelope.json new file mode 100644 index 0000000..a55d9bf --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "a79dedbf-8520-4794-9887-9ae701869464", "created_at": "2026-11-15T07:21:02.744438+00:00", "finished_at": "2026-11-15T07:21:03.412208+00:00", "strategy": "route", "team": null, "task_id": "44900c90-1414-4324-8d7e-5488252cfabf", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 1, "block_count": 0, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:084bb1ce38e05b65315afb5d3100a03d6048b9def0a1c456d1f4d13a7ff232c5"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/preflight.json new file mode 100644 index 0000000..5e88d54 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:3207d4360e650f7a8cca80b2528096863dd6cc50eee34c95aad12f9241cccc6e", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "a79dedbf-8520-4794-9887-9ae701869464", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/preflight/eval-000.json new file mode 100644 index 0000000..7405802 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "a79dedbf-8520-4794-9887-9ae701869464", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/a79dedbf-8520-4794-9887-9ae701869464/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/b7134483-28a3-4ed9-95fd-055bf91e4b72/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/b7134483-28a3-4ed9-95fd-055bf91e4b72/envelope.json new file mode 100644 index 0000000..624b5eb --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/b7134483-28a3-4ed9-95fd-055bf91e4b72/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "b7134483-28a3-4ed9-95fd-055bf91e4b72", "created_at": "2026-11-15T07:21:06.652986+00:00", "finished_at": "2026-11-15T07:21:07.318339+00:00", "strategy": "route", "team": null, "task_id": "59e241b2-d3cd-4421-aa41-2828796e1487", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 1, "block_count": 0, "warning_count": 1, "artifact": "preflight.json", "digest": "sha256:e1cad97445030fa1c3987c3085ad7f5a65e0b13a2f10a22ae7c45cf14d60f485"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/b7134483-28a3-4ed9-95fd-055bf91e4b72/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/b7134483-28a3-4ed9-95fd-055bf91e4b72/preflight.json new file mode 100644 index 0000000..881827b --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/b7134483-28a3-4ed9-95fd-055bf91e4b72/preflight.json @@ -0,0 +1,27 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "blocking_reasons": [], + "status": "error", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "warn", + "unknown": "block" + }, + "profile": "review", + "run_id": "b7134483-28a3-4ed9-95fd-055bf91e4b72", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/b7134483-28a3-4ed9-95fd-055bf91e4b72/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/b7134483-28a3-4ed9-95fd-055bf91e4b72/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/b7134483-28a3-4ed9-95fd-055bf91e4b72/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c7b68458-95c4-4343-b427-a98686121c09/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c7b68458-95c4-4343-b427-a98686121c09/envelope.json new file mode 100644 index 0000000..37ca254 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c7b68458-95c4-4343-b427-a98686121c09/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "c7b68458-95c4-4343-b427-a98686121c09", "created_at": "2026-11-15T07:21:09.804556+00:00", "finished_at": "2026-11-15T07:21:09.860786+00:00", "strategy": "route", "team": null, "task_id": "119e8d29-062e-402e-812e-a47cf760124c", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c7b68458-95c4-4343-b427-a98686121c09/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c7b68458-95c4-4343-b427-a98686121c09/preflight/eval-000.json new file mode 100644 index 0000000..a46735b --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c7b68458-95c4-4343-b427-a98686121c09/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "c7b68458-95c4-4343-b427-a98686121c09", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c7b68458-95c4-4343-b427-a98686121c09/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c7b68458-95c4-4343-b427-a98686121c09/result.json new file mode 100644 index 0000000..75d3d2e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c7b68458-95c4-4343-b427-a98686121c09/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: EVIDENCE_PERSIST_FAILED", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/envelope.json new file mode 100644 index 0000000..8042314 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "c97c2812-3b55-4cc6-a12f-69b4a4cb0e07", "created_at": "2026-11-15T07:21:04.630322+00:00", "finished_at": "2026-11-15T07:21:04.683109+00:00", "strategy": "route", "team": null, "task_id": "569c2f3d-f6ee-4f4d-98ba-38c11836cbf0", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:c270d0e217e59a18031b1c09841598681950015c94f5bd1aa4b751ff836b007c"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f5ee2d1143d77bc76b4eeef3a53c8cd9dda4c465901ac42c76fa24e3c9a69a0", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/preflight.json new file mode 100644 index 0000000..c5d58c8 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/preflight.json @@ -0,0 +1,33 @@ +{ + "block_reasons": [ + "TOOL_NOT_FOUND" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [ + "TOOL_NOT_FOUND" + ], + "digest": "sha256:5a19fbfddb08574f4e8e2bfa044065ef25d8dffe4152c5b55e6ff24d2134dcb0", + "graph_generation": 42, + "producer_decision": "advisory_warn", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "c97c2812-3b55-4cc6-a12f-69b4a4cb0e07", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/preflight/eval-000.json new file mode 100644 index 0000000..3979244 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/preflight/eval-000.json @@ -0,0 +1,21 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "c97c2812-3b55-4cc6-a12f-69b4a4cb0e07", + "created_at": "2026-07-12T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [ + { + "candidate": "legacy::missing", + "tool_key": null, + "reason": "TOOL_NOT_FOUND" + } + ], + "features": [], + "decision": "advisory_warn" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/result.json new file mode 100644 index 0000000..c3e9508 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/c97c2812-3b55-4cc6-a12f-69b4a4cb0e07/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOL_NOT_FOUND", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ca0cb002-cf89-4e76-b85d-9aa056aceddb/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ca0cb002-cf89-4e76-b85d-9aa056aceddb/envelope.json new file mode 100644 index 0000000..b456430 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ca0cb002-cf89-4e76-b85d-9aa056aceddb/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "ca0cb002-cf89-4e76-b85d-9aa056aceddb", "created_at": "2026-11-15T07:20:59.957764+00:00", "finished_at": "2026-11-15T07:21:00.597508+00:00", "strategy": "route", "team": null, "task_id": "68ace452-2b5a-413c-9045-458e1744de0d", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ca0cb002-cf89-4e76-b85d-9aa056aceddb/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ca0cb002-cf89-4e76-b85d-9aa056aceddb/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ca0cb002-cf89-4e76-b85d-9aa056aceddb/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/envelope.json new file mode 100644 index 0000000..6c4fc06 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "d0552f65-057e-4a25-b70f-a71951338f6a", "created_at": "2026-11-15T07:21:03.689138+00:00", "finished_at": "2026-11-15T07:21:04.362123+00:00", "strategy": "route", "team": null, "task_id": "f86c2a6b-5fed-4c70-b8be-0874a5957ec3", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 1, "block_count": 0, "warning_count": 1, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:b2a1245339883fe1189dba471a10dba0a61455ec89655d97195d34167e1f292e"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/preflight.json new file mode 100644 index 0000000..c27ee5f --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/preflight.json @@ -0,0 +1,31 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:d8c50f2d62220d77a62ff4ac2d3cbf6cd6e3ff803ec1ed13a6a2692954368d01", + "graph_generation": 42, + "producer_decision": "advisory_warn", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [ + "DRIFTED" + ] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "d0552f65-057e-4a25-b70f-a71951338f6a", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/preflight/eval-000.json new file mode 100644 index 0000000..5c22b56 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/preflight/eval-000.json @@ -0,0 +1,21 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "d0552f65-057e-4a25-b70f-a71951338f6a", + "created_at": "2026-07-12T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [ + { + "candidate": "legacy::old_tool", + "tool_key": "legacy::old_tool", + "reason": "DRIFTED" + } + ], + "features": [], + "decision": "advisory_warn" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/d0552f65-057e-4a25-b70f-a71951338f6a/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/envelope.json new file mode 100644 index 0000000..41f7304 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2", "created_at": "2026-11-15T07:21:06.129384+00:00", "finished_at": "2026-11-15T07:21:06.185787+00:00", "strategy": "route", "team": null, "task_id": "5abbc5ca-113b-44ee-ae3e-9f227b598ea3", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:3dd406d63c38fcd3ccbed90a74678ed97c6e1e0a3b2117de641960455bd55b43"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:f4e074e8175c11148640c6cdb277c6591f7188add6528cab64ad39204620f51f", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/preflight.json new file mode 100644 index 0000000..cf9e085 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/preflight.json @@ -0,0 +1,33 @@ +{ + "block_reasons": [ + "AGENT_NOT_FOUND" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [ + "AGENT_NOT_FOUND" + ], + "digest": "sha256:bd961f42004da893f078e16f789cf02ed5a4a1380187f2abb72e9a4a06686fcf", + "graph_generation": 42, + "producer_decision": "unresolved_identity", + "status": "unresolved_identity", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "kimi-code", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/preflight/eval-000.json new file mode 100644 index 0000000..54c7559 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/preflight/eval-000.json @@ -0,0 +1,15 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "kimi-code", + "agent_found": false, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [], + "features": [], + "decision": "unresolved_identity" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/result.json new file mode 100644 index 0000000..2915208 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/e0ff9dc1-8ade-443d-a5c4-ab4400ff6ac2/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: AGENT_NOT_FOUND", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ee74b93f-947a-4122-a42f-7977e6d8131c/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ee74b93f-947a-4122-a42f-7977e6d8131c/envelope.json new file mode 100644 index 0000000..3e09e84 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ee74b93f-947a-4122-a42f-7977e6d8131c/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "ee74b93f-947a-4122-a42f-7977e6d8131c", "created_at": "2026-11-15T07:21:06.395198+00:00", "finished_at": "2026-11-15T07:21:06.446294+00:00", "strategy": "route", "team": null, "task_id": "8728919b-14cf-4711-9b2b-e8d4053f565a", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:fb2ddcd0e61fbbdc8f63d7c7246e80cc91ede543588825735105fab146260973"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ee74b93f-947a-4122-a42f-7977e6d8131c/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ee74b93f-947a-4122-a42f-7977e6d8131c/preflight.json new file mode 100644 index 0000000..5d9e610 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ee74b93f-947a-4122-a42f-7977e6d8131c/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "status": "error", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "ee74b93f-947a-4122-a42f-7977e6d8131c", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ee74b93f-947a-4122-a42f-7977e6d8131c/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ee74b93f-947a-4122-a42f-7977e6d8131c/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/ee74b93f-947a-4122-a42f-7977e6d8131c/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/envelope.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/envelope.json new file mode 100644 index 0000000..6983bdc --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "f9ef082e-2378-4a2d-9e5f-b806d3c2ec34", "created_at": "2026-11-15T07:21:09.017040+00:00", "finished_at": "2026-11-15T07:21:09.125152+00:00", "strategy": "compete", "team": "pair", "task_id": "23ca15c8-5b7c-4672-8f02-4103fadb835a", "agents": ["codex", "kimi-code"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 2, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:5d40633e9f93fed27ee82c370217f04897d6eeb8fda63b3f4b660bb3099084fe"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:9c4d2beae8c1b098ed52a08aad1f7be6e49af813febf8fc745cce0563684c273", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/preflight.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/preflight.json new file mode 100644 index 0000000..88da041 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/preflight.json @@ -0,0 +1,44 @@ +{ + "block_reasons": [ + "GRAPH_GENERATION_MISMATCH" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:16a3a4aa44c1ce707ec4b7aad4ec737cc4cf2241679675163bb65ffd9ece92a9", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + }, + { + "artifact": "preflight/eval-001.json", + "blocking_reasons": [], + "digest": "sha256:819fa80166e39aeca2bd9208c6d410c8247f92fa6230762ad7a2fc06e18d08fe", + "graph_generation": 43, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "kimi-code" + ], + "toolgraph_agent": "kimi", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "f9ef082e-2378-4a2d-9e5f-b806d3c2ec34", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/preflight/eval-000.json new file mode 100644 index 0000000..d670bbd --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "f9ef082e-2378-4a2d-9e5f-b806d3c2ec34", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/preflight/eval-001.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/preflight/eval-001.json new file mode 100644 index 0000000..6a9f056 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/preflight/eval-001.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "f9ef082e-2378-4a2d-9e5f-b806d3c2ec34", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 43, + "agent": "kimi", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/result.json b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/result.json new file mode 100644 index 0000000..0650d3e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.1.2/preflight/runs/f9ef082e-2378-4a2d-9e5f-b806d3c2ec34/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: GRAPH_GENERATION_MISMATCH", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/index.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/index.json new file mode 100644 index 0000000..def500b --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/index.json @@ -0,0 +1,276 @@ +{ + "goldens": { + "control-preflight-v1.json": "bd78ffbea50c27092f5806d06503f6ebc9256302", + "control-preflight.schema.json": "8ec71dcd6ff66ac3f74dd9930990383506fde6f9", + "preflight-allow.json": "2d7a7efc42cc259ee218b96f88fe12b579101283", + "preflight-drift.json": "ab4495e6a9e7ef4264028242e5be2e11fe46901f", + "preflight-unknown-tool.json": "ae02acd9cca64a01bae32024b8f36f6814022eda", + "preflight-unresolved-identity.json": "fe52d653f7685bde35656088bc707a31cd6ee25d", + "preflight.schema.json": "f26a74cc9466d5c7b94ea6b0e17a023722716529" + }, + "release": "0.2.0", + "report_list": "Recorded runs (newest first):\n\n 4f543e4b-2d01-41ae-9a0b-1e96a8213fb1 2026-11-15T07:20:49.489189+00:00 route failed \u2014\n 93876f8e-7b06-4a25-8182-f83c710df416 2026-11-15T07:20:49.184096+00:00 route failed preflight\n 3cbe3895-6200-4f53-a431-fbd39891ccb1 2026-11-15T07:20:48.505267+00:00 route completed codex\n 58357073-3dfa-4047-80a7-5867d3e9e671 2026-11-15T07:20:47.254432+00:00 route failed preflight\n 8b413cd0-0303-4e14-b8d4-f7f3128579d8 2026-11-15T07:20:46.543530+00:00 route completed codex\n 5ee6ddd0-a68a-495b-b419-30b6a8cab596 2026-11-15T07:20:46.246848+00:00 route failed preflight\n 4a5c6857-d2ae-4458-97c0-f1f8a92677e4 2026-11-15T07:20:45.540050+00:00 route completed codex\n fa8fbedb-5b43-423b-8cd8-0fca033430f5 2026-11-15T07:20:45.234649+00:00 route failed preflight\n eb103b1f-7a65-4de3-8f52-3f9bd06f4690 2026-11-15T07:20:44.530870+00:00 route completed codex\n 29c84008-e999-417c-8a8e-fed692735e0e 2026-11-15T07:20:43.832761+00:00 route completed codex\n 1af7a8f6-e02d-4f45-8e15-fedb898e8ddd 2026-11-15T07:20:43.105755+00:00 route completed codex\n e6176a97-cc8d-4255-a734-9aac793c4ac9 2026-11-15T07:20:42.806576+00:00 route failed preflight\n a30c274e-ad4a-44cc-a81e-2cdd734ea8d3 2026-11-15T07:20:42.504748+00:00 route failed preflight\n c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59 2026-11-15T07:20:42.257403+00:00 route failed preflight\n b33b7deb-71b5-433a-857f-f0de95642115 2026-11-15T07:20:41.904932+00:00 compete failed preflight\n 54a993d2-911d-4aad-bbca-19d4c2575298 2026-11-15T07:20:41.550721+00:00 compete failed preflight\n 5bdabae1-d0ce-4ddd-b651-9b590a10da35 2026-11-15T07:20:40.693879+00:00 compete completed codex\n 6f6db177-1e3a-435b-ab11-cfbf051c207e 2026-11-15T07:20:39.965088+00:00 route completed codex\n 1655ed4a-4400-4311-9956-a608db2890e5 2026-11-15T07:20:39.668443+00:00 route failed preflight\n d156fd0f-eb1d-4852-8ecb-2fa1189fb57e 2026-11-15T07:20:39.368114+00:00 route failed preflight\n 2621e0e0-3813-4994-9492-f2d83b0ca3b6 2026-11-15T07:20:38.069545+00:00 route failed preflight\n 6617e536-217c-48f0-8b8a-54774894f221 2026-11-15T07:20:37.768649+00:00 route failed preflight\n 6a66d9fa-a950-4205-9c45-1aff0c4bc961 2026-11-15T07:20:37.084146+00:00 route completed codex\n 23161d52-e1d6-4e2c-af9c-39ee873de113 2026-11-15T07:20:36.309154+00:00 route completed codex\n 1d8ff401-3131-43e7-ae98-9be75229d929 2026-11-15T07:20:34.570378+00:00 route completed codex\n a8fa32d8-bf21-4719-815a-48f3ed59a589 2026-11-15T07:20:33.843994+00:00 route completed codex\n 5ba6b96c-92c0-411d-8efc-64909893a38c 2026-11-15T07:20:33.181567+00:00 route completed codex\n 497e80fb-4050-4b40-8ab3-e5b88dd7bb8e 2026-11-15T07:20:32.510526+00:00 route completed codex\n e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58 2026-11-15T07:20:31.801217+00:00 route completed codex\n cfd9e8c8-aabf-47ed-95fa-a831d016f039 2026-11-15T07:20:30.884906+00:00 route completed codex\n", + "runs_dir": "/private/var/folders/4n/mt3km5rs1bn_b0w_d6hvlmhc0000gn/T/tmpi_cmgz2b/state/reports", + "scenarios": { + "advisory-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: cfd9e8c8-aabf-47ed-95fa-a831d016f039\nCreated: 2026-11-15T07:20:30.884906+00:00\nFinished: 2026-11-15T07:20:31.534834+00:00\nStrategy: route\nTeam: \u2014\nTask: dce435b7-a789-492e-84d2-f24ecdc34f74\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.08s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:0ba327f895a43644830c39bab9547db4d302481833bc02cd29c2e032d001236e\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "cfd9e8c8-aabf-47ed-95fa-a831d016f039" + }, + "advisory-drift": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58\nCreated: 2026-11-15T07:20:31.801217+00:00\nFinished: 2026-11-15T07:20:32.253659+00:00\nStrategy: route\nTeam: \u2014\nTask: 685b3d6b-240c-4f65-8464-17e4ea55d1a6\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58" + }, + "advisory-error": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: a8fa32d8-bf21-4719-815a-48f3ed59a589\nCreated: 2026-11-15T07:20:33.843994+00:00\nFinished: 2026-11-15T07:20:34.309222+00:00\nStrategy: route\nTeam: \u2014\nTask: 6f6f6679-ad0b-42dc-87c9-3bbc9f786c26\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "a8fa32d8-bf21-4719-815a-48f3ed59a589" + }, + "advisory-timeout": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 1d8ff401-3131-43e7-ae98-9be75229d929\nCreated: 2026-11-15T07:20:34.570378+00:00\nFinished: 2026-11-15T07:20:36.036898+00:00\nStrategy: route\nTeam: \u2014\nTask: 38be267a-ed92-4e32-ba4e-0114d59debc4\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: timeout\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "1d8ff401-3131-43e7-ae98-9be75229d929" + }, + "advisory-unmapped": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 5ba6b96c-92c0-411d-8efc-64909893a38c\nCreated: 2026-11-15T07:20:33.181567+00:00\nFinished: 2026-11-15T07:20:33.584102+00:00\nStrategy: route\nTeam: \u2014\nTask: 72645939-edff-4525-bfdd-d9a906ec0e79\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "5ba6b96c-92c0-411d-8efc-64909893a38c" + }, + "advisory-unresolved": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 497e80fb-4050-4b40-8ab3-e5b88dd7bb8e\nCreated: 2026-11-15T07:20:32.510526+00:00\nFinished: 2026-11-15T07:20:32.929592+00:00\nStrategy: route\nTeam: \u2014\nTask: 2c2c7600-1f6d-4307-89af-a8c0c27be768\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "497e80fb-4050-4b40-8ab3-e5b88dd7bb8e" + }, + "control-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 1af7a8f6-e02d-4f45-8e15-fedb898e8ddd\nCreated: 2026-11-15T07:20:43.105755+00:00\nFinished: 2026-11-15T07:20:43.570038+00:00\nStrategy: route\nTeam: \u2014\nTask: a67f4a0d-9875-4107-8557-f6b78f52ed8a\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "1af7a8f6-e02d-4f45-8e15-fedb898e8ddd" + }, + "control-error": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 4a5c6857-d2ae-4458-97c0-f1f8a92677e4\nCreated: 2026-11-15T07:20:45.540050+00:00\nFinished: 2026-11-15T07:20:45.992262+00:00\nStrategy: route\nTeam: \u2014\nTask: fbcd1770-afea-4052-91cf-96a82a4932af\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "4a5c6857-d2ae-4458-97c0-f1f8a92677e4" + }, + "control-finding": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: eb103b1f-7a65-4de3-8f52-3f9bd06f4690\nCreated: 2026-11-15T07:20:44.530870+00:00\nFinished: 2026-11-15T07:20:44.979771+00:00\nStrategy: route\nTeam: \u2014\nTask: be781895-18e9-4331-82f8-4d26fb9f6fc2\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "eb103b1f-7a65-4de3-8f52-3f9bd06f4690", + "synthetic": "one UNREACHABLE_NODE finding added to the control golden" + }, + "control-persist": { + "injected_write_failure": { + "destination": "control-preflight.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 3cbe3895-6200-4f53-a431-fbd39891ccb1\nCreated: 2026-11-15T07:20:48.505267+00:00\nFinished: 2026-11-15T07:20:48.928732+00:00\nStrategy: route\nTeam: \u2014\nTask: bac50e04-b9e1-4a95-90bb-7bb1c121b1e8\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "3cbe3895-6200-4f53-a431-fbd39891ccb1" + }, + "control-strict-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 29c84008-e999-417c-8a8e-fed692735e0e\nCreated: 2026-11-15T07:20:43.832761+00:00\nFinished: 2026-11-15T07:20:44.271057+00:00\nStrategy: route\nTeam: \u2014\nTask: 5a04f016-67be-47fd-8e2c-f5470d1cc5c1\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "29c84008-e999-417c-8a8e-fed692735e0e" + }, + "control-strict-error": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 5ee6ddd0-a68a-495b-b419-30b6a8cab596\nCreated: 2026-11-15T07:20:46.246848+00:00\nFinished: 2026-11-15T07:20:46.298470+00:00\nStrategy: route\nTeam: \u2014\nTask: 55636b72-d896-40da-8cf3-b873621aa1e1\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "5ee6ddd0-a68a-495b-b419-30b6a8cab596" + }, + "control-strict-error-warn": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 8b413cd0-0303-4e14-b8d4-f7f3128579d8\nCreated: 2026-11-15T07:20:46.543530+00:00\nFinished: 2026-11-15T07:20:46.996306+00:00\nStrategy: route\nTeam: \u2014\nTask: eb6b7495-dba8-466c-bc92-041055ae0fcd\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "8b413cd0-0303-4e14-b8d4-f7f3128579d8" + }, + "control-strict-finding": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: fa8fbedb-5b43-423b-8cd8-0fca033430f5\nCreated: 2026-11-15T07:20:45.234649+00:00\nFinished: 2026-11-15T07:20:45.293869+00:00\nStrategy: route\nTeam: \u2014\nTask: 74720b18-02bc-4457-8136-7be94f5b8d77\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:b19a0942a18499cbea567a88e6026fde0db409c9e2b9004fcc14cb21c1ad7d91\n patch digest: \u2014\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "fa8fbedb-5b43-423b-8cd8-0fca033430f5", + "synthetic": "one UNREACHABLE_NODE finding added to the control golden" + }, + "control-strict-persist": { + "injected_write_failure": { + "destination": "control-preflight.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 93876f8e-7b06-4a25-8182-f83c710df416\nCreated: 2026-11-15T07:20:49.184096+00:00\nFinished: 2026-11-15T07:20:49.238542+00:00\nStrategy: route\nTeam: \u2014\nTask: 23c3d35f-5293-498f-aa41-cc74809931d5\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "93876f8e-7b06-4a25-8182-f83c710df416" + }, + "control-strict-timeout": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 58357073-3dfa-4047-80a7-5867d3e9e671\nCreated: 2026-11-15T07:20:47.254432+00:00\nFinished: 2026-11-15T07:20:48.260678+00:00\nStrategy: route\nTeam: \u2014\nTask: 0a96c5c8-ca13-48aa-baee-8a85e807c2d2\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: timeout\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "58357073-3dfa-4047-80a7-5867d3e9e671" + }, + "killed-after-preflight": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 4f543e4b-2d01-41ae-9a0b-1e96a8213fb1\nCreated: 2026-11-15T07:20:49.489189+00:00\nFinished: 2026-11-15T07:20:49.489189+00:00\nStrategy: route\nTeam: \u2014\nTask: 96f5f132-2d19-47a7-a3ff-99ce962dd18c\nAgents: codex\nBoard: \u2014\nResult: failed\n winner: \u2014\n exit code: None\n duration: Nones\n gate passed: None\n files changed: None\n artifact: \u2014\n digest: \u2014\n patch digest: \u2014\nPreflight: disabled\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "4f543e4b-2d01-41ae-9a0b-1e96a8213fb1" + }, + "strict-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 23161d52-e1d6-4e2c-af9c-39ee873de113\nCreated: 2026-11-15T07:20:36.309154+00:00\nFinished: 2026-11-15T07:20:36.829537+00:00\nStrategy: route\nTeam: \u2014\nTask: bff23181-4816-48fd-9e1e-9069c0e8969d\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "23161d52-e1d6-4e2c-af9c-39ee873de113" + }, + "strict-block": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 6617e536-217c-48f0-8b8a-54774894f221\nCreated: 2026-11-15T07:20:37.768649+00:00\nFinished: 2026-11-15T07:20:37.822485+00:00\nStrategy: route\nTeam: \u2014\nTask: f1d1b4a6-b95c-40a9-aadd-3f17a1bf444c\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f5ee2d1143d77bc76b4eeef3a53c8cd9dda4c465901ac42c76fa24e3c9a69a0\n patch digest: \u2014\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "6617e536-217c-48f0-8b8a-54774894f221" + }, + "strict-gen-mismatch": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: b33b7deb-71b5-433a-857f-f0de95642115\nCreated: 2026-11-15T07:20:41.904932+00:00\nFinished: 2026-11-15T07:20:42.008013+00:00\nStrategy: compete\nTeam: pair\nTask: 7890aadc-b328-436c-8514-d206ccfa3584\nAgents: codex, kimi-code\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:9c4d2beae8c1b098ed52a08aad1f7be6e49af813febf8fc745cce0563684c273\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "b33b7deb-71b5-433a-857f-f0de95642115", + "synthetic": "identity kimi answered with the allow golden, agent replaced and graph_generation 43" + }, + "strict-multi-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 5bdabae1-d0ce-4ddd-b651-9b590a10da35\nCreated: 2026-11-15T07:20:40.693879+00:00\nFinished: 2026-11-15T07:20:41.278849+00:00\nStrategy: compete\nTeam: pair\nTask: 87ddea66-885c-4665-9e82-cc5d40941e0d\nAgents: codex, kimi-code\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "5bdabae1-d0ce-4ddd-b651-9b590a10da35", + "synthetic": "identity kimi answered with the allow golden, agent replaced" + }, + "strict-multi-mixed": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 54a993d2-911d-4aad-bbca-19d4c2575298\nCreated: 2026-11-15T07:20:41.550721+00:00\nFinished: 2026-11-15T07:20:41.655972+00:00\nStrategy: compete\nTeam: pair\nTask: 37d70685-ebdd-4fe3-ac22-fca16ecca70e\nAgents: codex, kimi-code\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "54a993d2-911d-4aad-bbca-19d4c2575298" + }, + "strict-persist-aggregate": { + "injected_write_failure": { + "destination": "preflight.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: e6176a97-cc8d-4255-a734-9aac793c4ac9\nCreated: 2026-11-15T07:20:42.806576+00:00\nFinished: 2026-11-15T07:20:42.859398+00:00\nStrategy: route\nTeam: \u2014\nTask: ad03a2a4-7d08-41ae-9de0-687a80895b0b\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "e6176a97-cc8d-4255-a734-9aac793c4ac9" + }, + "strict-persist-eval": { + "injected_write_failure": { + "destination": "eval-000.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: a30c274e-ad4a-44cc-a81e-2cdd734ea8d3\nCreated: 2026-11-15T07:20:42.504748+00:00\nFinished: 2026-11-15T07:20:42.556960+00:00\nStrategy: route\nTeam: \u2014\nTask: ee35d370-aa85-4ddc-83c2-03dfa9035eca\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "a30c274e-ad4a-44cc-a81e-2cdd734ea8d3" + }, + "strict-timeout": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 2621e0e0-3813-4994-9492-f2d83b0ca3b6\nCreated: 2026-11-15T07:20:38.069545+00:00\nFinished: 2026-11-15T07:20:39.080846+00:00\nStrategy: route\nTeam: \u2014\nTask: 0ef848f5-d01d-47a6-aefe-4a54f21132d5\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: timeout\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "2621e0e0-3813-4994-9492-f2d83b0ca3b6" + }, + "strict-unavailable": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 1655ed4a-4400-4311-9956-a608db2890e5\nCreated: 2026-11-15T07:20:39.668443+00:00\nFinished: 2026-11-15T07:20:39.724751+00:00\nStrategy: route\nTeam: \u2014\nTask: 39594512-5b5e-4bee-913a-8204f6a2b813\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "1655ed4a-4400-4311-9956-a608db2890e5" + }, + "strict-unavailable-warn": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 6f6db177-1e3a-435b-ab11-cfbf051c207e\nCreated: 2026-11-15T07:20:39.965088+00:00\nFinished: 2026-11-15T07:20:40.428192+00:00\nStrategy: route\nTeam: \u2014\nTask: 70873871-2ec9-4563-bc64-daf9e022c68d\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "6f6db177-1e3a-435b-ab11-cfbf051c207e" + }, + "strict-unmapped": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59\nCreated: 2026-11-15T07:20:42.257403+00:00\nFinished: 2026-11-15T07:20:42.258966+00:00\nStrategy: route\nTeam: \u2014\nTask: e74436ab-01d5-452b-8233-1d6c1d60f44f\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:d2f4740ffec7937781b18b7e6db1783300042470e5fe33d05143fd87ef3e5a25\n patch digest: \u2014\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59" + }, + "strict-unresolved": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: d156fd0f-eb1d-4852-8ecb-2fa1189fb57e\nCreated: 2026-11-15T07:20:39.368114+00:00\nFinished: 2026-11-15T07:20:39.424377+00:00\nStrategy: route\nTeam: \u2014\nTask: 5d56f008-1092-4c1b-a9dd-80d7e9c65a40\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:f4e074e8175c11148640c6cdb277c6591f7188add6528cab64ad39204620f51f\n patch digest: \u2014\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "d156fd0f-eb1d-4852-8ecb-2fa1189fb57e" + }, + "strict-warn": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 6a66d9fa-a950-4205-9c45-1aff0c4bc961\nCreated: 2026-11-15T07:20:37.084146+00:00\nFinished: 2026-11-15T07:20:37.513077+00:00\nStrategy: route\nTeam: \u2014\nTask: a90cc101-e73c-498f-b3b0-9c375093b7c5\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "6a66d9fa-a950-4205-9c45-1aff0c4bc961" + } + } +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/envelope.json new file mode 100644 index 0000000..4f755bf --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "1655ed4a-4400-4311-9956-a608db2890e5", "created_at": "2026-11-15T07:20:39.668443+00:00", "finished_at": "2026-11-15T07:20:39.724751+00:00", "strategy": "route", "team": null, "task_id": "39594512-5b5e-4bee-913a-8204f6a2b813", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:fb470e1316886aa18289c2151c0d268577299f692cb78cce456909ecf43d6126"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/preflight.json new file mode 100644 index 0000000..cebbb87 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "status": "error", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "1655ed4a-4400-4311-9956-a608db2890e5", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1655ed4a-4400-4311-9956-a608db2890e5/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/control-plan.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/control-plan.json new file mode 100644 index 0000000..e9a7348 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/control-plan.json @@ -0,0 +1 @@ +{"edges":[{"decided_by":"code","from":"start","kind":"always","to":"route"},{"decided_by":"code","from":"route","kind":"success","to":"end"}],"kind":"toolgraph.control-plan","limits":{"maximum_agent_calls":1,"maximum_cycles":0,"maximum_parallelism":1},"nodes":[{"agent_call":false,"id":"start","kind":"start","principals":[]},{"agent_call":true,"id":"route","kind":"agent","max_invocations":1,"max_parallelism":1,"principals":["codex"],"timeout_seconds":300},{"agent_call":false,"id":"end","kind":"end","principals":[]}],"principals":[{"candidate_tools":["workspace::read","workspace::write"],"id":"codex"}],"producer":{"name":"syncmill","version":"0.2.0"},"run_id":"1af7a8f6-e02d-4f45-8e15-fedb898e8ddd","schema_version":1} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/control-preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/control-preflight.json new file mode 100644 index 0000000..948efad --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/control-preflight.json @@ -0,0 +1,26 @@ +{ + "schema_version": 1, + "kind": "toolgraph.control-preflight", + "run_id": "1af7a8f6-e02d-4f45-8e15-fedb898e8ddd", + "created_at": "2026-08-11T00:00:00+00:00", + "mode": "advisory", + "profile": "review", + "plan_digest": "sha256:2ccb336e3b0c53fd7c97a37300fda718294ed2b7e74744aa3755a8e241a6eef1", + "graph_state": { + "instance_id": "test-instance", + "generation": 42 + }, + "decision": "advisory_allow", + "evaluations": [ + { + "principal": "codex", + "agent_found": true, + "eligible": [ + "workspace::read", + "workspace::write" + ], + "rejected": [] + } + ], + "findings": [] +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/envelope.json new file mode 100644 index 0000000..4f66850 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "1af7a8f6-e02d-4f45-8e15-fedb898e8ddd", "created_at": "2026-11-15T07:20:43.105755+00:00", "finished_at": "2026-11-15T07:20:43.570038+00:00", "strategy": "route", "team": null, "task_id": "a67f4a0d-9875-4107-8557-f6b78f52ed8a", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 0, "evaluation_count": 1, "producer_decision": "advisory_allow", "artifact": "control-preflight.json", "digest": "sha256:c6427cdad89ff6c5195efc0338f109b39107e828f2da3aa803905c933f975cdd", "control_plan": {"artifact": "control-plan.json", "digest": "sha256:2ccb336e3b0c53fd7c97a37300fda718294ed2b7e74744aa3755a8e241a6eef1"}}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1af7a8f6-e02d-4f45-8e15-fedb898e8ddd/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1d8ff401-3131-43e7-ae98-9be75229d929/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1d8ff401-3131-43e7-ae98-9be75229d929/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1d8ff401-3131-43e7-ae98-9be75229d929/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1d8ff401-3131-43e7-ae98-9be75229d929/envelope.json new file mode 100644 index 0000000..79b2fad --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1d8ff401-3131-43e7-ae98-9be75229d929/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "1d8ff401-3131-43e7-ae98-9be75229d929", "created_at": "2026-11-15T07:20:34.570378+00:00", "finished_at": "2026-11-15T07:20:36.036898+00:00", "strategy": "route", "team": null, "task_id": "38be267a-ed92-4e32-ba4e-0114d59debc4", "agents": ["codex"], "board": null, "preflight": {"status": "timeout", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1d8ff401-3131-43e7-ae98-9be75229d929/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1d8ff401-3131-43e7-ae98-9be75229d929/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/1d8ff401-3131-43e7-ae98-9be75229d929/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/envelope.json new file mode 100644 index 0000000..7806709 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "23161d52-e1d6-4e2c-af9c-39ee873de113", "created_at": "2026-11-15T07:20:36.309154+00:00", "finished_at": "2026-11-15T07:20:36.829537+00:00", "strategy": "route", "team": null, "task_id": "bff23181-4816-48fd-9e1e-9069c0e8969d", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 1, "block_count": 0, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:d43ade22da5208d7a7b925a3afd4ef5675b93eebeec32b6a9aa79dc27804d211"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/preflight.json new file mode 100644 index 0000000..913b027 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:851691b8810ce139f1e782bcb80a7995e62fbeeb65eeb10ae348a33cd826a964", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "23161d52-e1d6-4e2c-af9c-39ee873de113", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/preflight/eval-000.json new file mode 100644 index 0000000..7f83366 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "23161d52-e1d6-4e2c-af9c-39ee873de113", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/23161d52-e1d6-4e2c-af9c-39ee873de113/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/envelope.json new file mode 100644 index 0000000..4dd2b52 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "2621e0e0-3813-4994-9492-f2d83b0ca3b6", "created_at": "2026-11-15T07:20:38.069545+00:00", "finished_at": "2026-11-15T07:20:39.080846+00:00", "strategy": "route", "team": null, "task_id": "0ef848f5-d01d-47a6-aefe-4a54f21132d5", "agents": ["codex"], "board": null, "preflight": {"status": "timeout", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:4ee4eb76ad178dc6d4f200c68ddb537535c70a79c5e51ddee3721e6c11c135b0"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/preflight.json new file mode 100644 index 0000000..958822c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "status": "timeout", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "2621e0e0-3813-4994-9492-f2d83b0ca3b6", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/2621e0e0-3813-4994-9492-f2d83b0ca3b6/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/control-plan.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/control-plan.json new file mode 100644 index 0000000..3410586 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/control-plan.json @@ -0,0 +1 @@ +{"edges":[{"decided_by":"code","from":"start","kind":"always","to":"route"},{"decided_by":"code","from":"route","kind":"success","to":"end"}],"kind":"toolgraph.control-plan","limits":{"maximum_agent_calls":1,"maximum_cycles":0,"maximum_parallelism":1},"nodes":[{"agent_call":false,"id":"start","kind":"start","principals":[]},{"agent_call":true,"id":"route","kind":"agent","max_invocations":1,"max_parallelism":1,"principals":["codex"],"timeout_seconds":300},{"agent_call":false,"id":"end","kind":"end","principals":[]}],"principals":[{"candidate_tools":["workspace::read","workspace::write"],"id":"codex"}],"producer":{"name":"syncmill","version":"0.2.0"},"run_id":"29c84008-e999-417c-8a8e-fed692735e0e","schema_version":1} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/control-preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/control-preflight.json new file mode 100644 index 0000000..6b1aa60 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/control-preflight.json @@ -0,0 +1,26 @@ +{ + "schema_version": 1, + "kind": "toolgraph.control-preflight", + "run_id": "29c84008-e999-417c-8a8e-fed692735e0e", + "created_at": "2026-08-11T00:00:00+00:00", + "mode": "advisory", + "profile": "review", + "plan_digest": "sha256:d1f404350a8f28f088f679613b1f5c6e71e8b4a566c0c094b736d0bccbb30a89", + "graph_state": { + "instance_id": "test-instance", + "generation": 42 + }, + "decision": "advisory_allow", + "evaluations": [ + { + "principal": "codex", + "agent_found": true, + "eligible": [ + "workspace::read", + "workspace::write" + ], + "rejected": [] + } + ], + "findings": [] +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/envelope.json new file mode 100644 index 0000000..2b64e09 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "29c84008-e999-417c-8a8e-fed692735e0e", "created_at": "2026-11-15T07:20:43.832761+00:00", "finished_at": "2026-11-15T07:20:44.271057+00:00", "strategy": "route", "team": null, "task_id": "5a04f016-67be-47fd-8e2c-f5470d1cc5c1", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 0, "evaluation_count": 1, "producer_decision": "advisory_allow", "artifact": "control-preflight.json", "digest": "sha256:3df36d6524bb065d56ae2ec87bf53c3183d052ea4fa3f6bbb959578150da97b7", "control_plan": {"artifact": "control-plan.json", "digest": "sha256:d1f404350a8f28f088f679613b1f5c6e71e8b4a566c0c094b736d0bccbb30a89"}, "enforcement_decision": "allow", "block_count": 0}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/29c84008-e999-417c-8a8e-fed692735e0e/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/3cbe3895-6200-4f53-a431-fbd39891ccb1/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/3cbe3895-6200-4f53-a431-fbd39891ccb1/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/3cbe3895-6200-4f53-a431-fbd39891ccb1/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/3cbe3895-6200-4f53-a431-fbd39891ccb1/envelope.json new file mode 100644 index 0000000..508a44c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/3cbe3895-6200-4f53-a431-fbd39891ccb1/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "3cbe3895-6200-4f53-a431-fbd39891ccb1", "created_at": "2026-11-15T07:20:48.505267+00:00", "finished_at": "2026-11-15T07:20:48.928732+00:00", "strategy": "route", "team": null, "task_id": "bac50e04-b9e1-4a95-90bb-7bb1c121b1e8", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "advisory", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 0, "evaluation_count": 1, "producer_decision": "advisory_allow"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/3cbe3895-6200-4f53-a431-fbd39891ccb1/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/3cbe3895-6200-4f53-a431-fbd39891ccb1/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/3cbe3895-6200-4f53-a431-fbd39891ccb1/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/envelope.json new file mode 100644 index 0000000..e4829ed --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "497e80fb-4050-4b40-8ab3-e5b88dd7bb8e", "created_at": "2026-11-15T07:20:32.510526+00:00", "finished_at": "2026-11-15T07:20:32.929592+00:00", "strategy": "route", "team": null, "task_id": "2c2c7600-1f6d-4307-89af-a8c0c27be768", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "advisory", "profile": "review", "graph_generation": 42, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:a2bcc80f55bedffa66464eb66c8b1e911686e8d444e4b10936e8b8a42d662e20"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/preflight.json new file mode 100644 index 0000000..7d851c6 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/preflight.json @@ -0,0 +1,15 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "497e80fb-4050-4b40-8ab3-e5b88dd7bb8e", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "kimi-code", + "agent_found": false, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [], + "features": [], + "decision": "unresolved_identity" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/497e80fb-4050-4b40-8ab3-e5b88dd7bb8e/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4a5c6857-d2ae-4458-97c0-f1f8a92677e4/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4a5c6857-d2ae-4458-97c0-f1f8a92677e4/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4a5c6857-d2ae-4458-97c0-f1f8a92677e4/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4a5c6857-d2ae-4458-97c0-f1f8a92677e4/envelope.json new file mode 100644 index 0000000..4ff2ea0 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4a5c6857-d2ae-4458-97c0-f1f8a92677e4/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "4a5c6857-d2ae-4458-97c0-f1f8a92677e4", "created_at": "2026-11-15T07:20:45.540050+00:00", "finished_at": "2026-11-15T07:20:45.992262+00:00", "strategy": "route", "team": null, "task_id": "fbcd1770-afea-4052-91cf-96a82a4932af", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4a5c6857-d2ae-4458-97c0-f1f8a92677e4/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4a5c6857-d2ae-4458-97c0-f1f8a92677e4/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4a5c6857-d2ae-4458-97c0-f1f8a92677e4/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/envelope.json new file mode 100644 index 0000000..dabb3d5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "4f543e4b-2d01-41ae-9a0b-1e96a8213fb1", "created_at": "2026-11-15T07:20:49.489189+00:00", "finished_at": "2026-11-15T07:20:49.489189+00:00", "strategy": "route", "team": null, "task_id": "96f5f132-2d19-47a7-a3ff-99ce962dd18c", "agents": ["codex"], "board": null, "preflight": {"status": "disabled"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": null, "winner": null, "exit_code": null, "duration_seconds": null, "gate_passed": null, "files_changed_count": null, "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/preflight.json new file mode 100644 index 0000000..dad464b --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:38a384adbb7da51965277b5904aaecc7fc942aa5fcae41dfb9a7f2a6db9c3031", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "4f543e4b-2d01-41ae-9a0b-1e96a8213fb1", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/preflight/eval-000.json new file mode 100644 index 0000000..4b73173 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/4f543e4b-2d01-41ae-9a0b-1e96a8213fb1/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "4f543e4b-2d01-41ae-9a0b-1e96a8213fb1", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/envelope.json new file mode 100644 index 0000000..c6b5024 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "54a993d2-911d-4aad-bbca-19d4c2575298", "created_at": "2026-11-15T07:20:41.550721+00:00", "finished_at": "2026-11-15T07:20:41.655972+00:00", "strategy": "compete", "team": "pair", "task_id": "37d70685-ebdd-4fe3-ac22-fca16ecca70e", "agents": ["codex", "kimi-code"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 2, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:61b8e0ea2374e01c033c4fe8a2f5e123ce0d6f88d8059cf73831abbe242fc2f8"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/preflight.json new file mode 100644 index 0000000..c22079d --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/preflight.json @@ -0,0 +1,42 @@ +{ + "block_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:359f22319b486e8e3409a1b9c1663a3162164ca9a46a30ea5f8af5b184eae3ed", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + }, + { + "blocking_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "status": "error", + "syncmill_agents": [ + "kimi-code" + ], + "toolgraph_agent": "kimi", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "54a993d2-911d-4aad-bbca-19d4c2575298", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/preflight/eval-000.json new file mode 100644 index 0000000..ab1a61b --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "54a993d2-911d-4aad-bbca-19d4c2575298", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/54a993d2-911d-4aad-bbca-19d4c2575298/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/58357073-3dfa-4047-80a7-5867d3e9e671/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/58357073-3dfa-4047-80a7-5867d3e9e671/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/58357073-3dfa-4047-80a7-5867d3e9e671/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/58357073-3dfa-4047-80a7-5867d3e9e671/envelope.json new file mode 100644 index 0000000..a5784cc --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/58357073-3dfa-4047-80a7-5867d3e9e671/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "58357073-3dfa-4047-80a7-5867d3e9e671", "created_at": "2026-11-15T07:20:47.254432+00:00", "finished_at": "2026-11-15T07:20:48.260678+00:00", "strategy": "route", "team": null, "task_id": "0a96c5c8-ca13-48aa-baee-8a85e807c2d2", "agents": ["codex"], "board": null, "preflight": {"status": "timeout", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 0, "block_count": 1, "warning_count": 0}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/58357073-3dfa-4047-80a7-5867d3e9e671/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/58357073-3dfa-4047-80a7-5867d3e9e671/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/58357073-3dfa-4047-80a7-5867d3e9e671/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ba6b96c-92c0-411d-8efc-64909893a38c/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ba6b96c-92c0-411d-8efc-64909893a38c/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ba6b96c-92c0-411d-8efc-64909893a38c/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ba6b96c-92c0-411d-8efc-64909893a38c/envelope.json new file mode 100644 index 0000000..2c7dca2 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ba6b96c-92c0-411d-8efc-64909893a38c/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "5ba6b96c-92c0-411d-8efc-64909893a38c", "created_at": "2026-11-15T07:20:33.181567+00:00", "finished_at": "2026-11-15T07:20:33.584102+00:00", "strategy": "route", "team": null, "task_id": "72645939-edff-4525-bfdd-d9a906ec0e79", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ba6b96c-92c0-411d-8efc-64909893a38c/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ba6b96c-92c0-411d-8efc-64909893a38c/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ba6b96c-92c0-411d-8efc-64909893a38c/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/envelope.json new file mode 100644 index 0000000..2fd695d --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "5bdabae1-d0ce-4ddd-b651-9b590a10da35", "created_at": "2026-11-15T07:20:40.693879+00:00", "finished_at": "2026-11-15T07:20:41.278849+00:00", "strategy": "compete", "team": "pair", "task_id": "87ddea66-885c-4665-9e82-cc5d40941e0d", "agents": ["codex", "kimi-code"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 2, "block_count": 0, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:ffb11a2cc86e109fbaa546dd85ee1c24c471b6fe82ac168f3f3925db1c7d5aba"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/preflight.json new file mode 100644 index 0000000..6cd5505 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/preflight.json @@ -0,0 +1,42 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:e161279e7ce3c186e19864a0ff1dc7b94ab3f6caeea295c5d62245047aff75c9", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + }, + { + "artifact": "preflight/eval-001.json", + "blocking_reasons": [], + "digest": "sha256:5665d14b5c8520ac62c657f2c4904abca0837d0c99643c8341b5008ae3a4e7c2", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "kimi-code" + ], + "toolgraph_agent": "kimi", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "5bdabae1-d0ce-4ddd-b651-9b590a10da35", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/preflight/eval-000.json new file mode 100644 index 0000000..de44f33 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "5bdabae1-d0ce-4ddd-b651-9b590a10da35", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/preflight/eval-001.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/preflight/eval-001.json new file mode 100644 index 0000000..d920f34 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/preflight/eval-001.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "5bdabae1-d0ce-4ddd-b651-9b590a10da35", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "kimi", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5bdabae1-d0ce-4ddd-b651-9b590a10da35/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ee6ddd0-a68a-495b-b419-30b6a8cab596/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ee6ddd0-a68a-495b-b419-30b6a8cab596/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ee6ddd0-a68a-495b-b419-30b6a8cab596/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ee6ddd0-a68a-495b-b419-30b6a8cab596/envelope.json new file mode 100644 index 0000000..b408260 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ee6ddd0-a68a-495b-b419-30b6a8cab596/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "5ee6ddd0-a68a-495b-b419-30b6a8cab596", "created_at": "2026-11-15T07:20:46.246848+00:00", "finished_at": "2026-11-15T07:20:46.298470+00:00", "strategy": "route", "team": null, "task_id": "55636b72-d896-40da-8cf3-b873621aa1e1", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 0, "block_count": 1, "warning_count": 0}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ee6ddd0-a68a-495b-b419-30b6a8cab596/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ee6ddd0-a68a-495b-b419-30b6a8cab596/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/5ee6ddd0-a68a-495b-b419-30b6a8cab596/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/envelope.json new file mode 100644 index 0000000..52c71c2 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "6617e536-217c-48f0-8b8a-54774894f221", "created_at": "2026-11-15T07:20:37.768649+00:00", "finished_at": "2026-11-15T07:20:37.822485+00:00", "strategy": "route", "team": null, "task_id": "f1d1b4a6-b95c-40a9-aadd-3f17a1bf444c", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:e3a59536eb110ce631bb1bbb06c7157dae767100223e16d9472d63cd9671b809"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f5ee2d1143d77bc76b4eeef3a53c8cd9dda4c465901ac42c76fa24e3c9a69a0", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/preflight.json new file mode 100644 index 0000000..0422015 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/preflight.json @@ -0,0 +1,33 @@ +{ + "block_reasons": [ + "TOOL_NOT_FOUND" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [ + "TOOL_NOT_FOUND" + ], + "digest": "sha256:0722b72bbe85e0f78b2a78df125e0372194e1e674b6f1f55a51aa0d29a046551", + "graph_generation": 42, + "producer_decision": "advisory_warn", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "6617e536-217c-48f0-8b8a-54774894f221", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/preflight/eval-000.json new file mode 100644 index 0000000..f1af3ad --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/preflight/eval-000.json @@ -0,0 +1,21 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "6617e536-217c-48f0-8b8a-54774894f221", + "created_at": "2026-07-12T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [ + { + "candidate": "legacy::missing", + "tool_key": null, + "reason": "TOOL_NOT_FOUND" + } + ], + "features": [], + "decision": "advisory_warn" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/result.json new file mode 100644 index 0000000..c3e9508 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6617e536-217c-48f0-8b8a-54774894f221/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOL_NOT_FOUND", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/envelope.json new file mode 100644 index 0000000..39528c1 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "6a66d9fa-a950-4205-9c45-1aff0c4bc961", "created_at": "2026-11-15T07:20:37.084146+00:00", "finished_at": "2026-11-15T07:20:37.513077+00:00", "strategy": "route", "team": null, "task_id": "a90cc101-e73c-498f-b3b0-9c375093b7c5", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 1, "block_count": 0, "warning_count": 1, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:5ae72744c3bda9bf327050b26a62d229e202afb80cf9be351e69fae39b6f14d0"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/preflight.json new file mode 100644 index 0000000..1ca032d --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/preflight.json @@ -0,0 +1,31 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:108e35c53c9a34b3206a0fcc50aadc250f49be2d1098cb17da28fbd549c836ba", + "graph_generation": 42, + "producer_decision": "advisory_warn", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [ + "DRIFTED" + ] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "6a66d9fa-a950-4205-9c45-1aff0c4bc961", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/preflight/eval-000.json new file mode 100644 index 0000000..bed49f9 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/preflight/eval-000.json @@ -0,0 +1,21 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "6a66d9fa-a950-4205-9c45-1aff0c4bc961", + "created_at": "2026-07-12T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [ + { + "candidate": "legacy::old_tool", + "tool_key": "legacy::old_tool", + "reason": "DRIFTED" + } + ], + "features": [], + "decision": "advisory_warn" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6a66d9fa-a950-4205-9c45-1aff0c4bc961/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/envelope.json new file mode 100644 index 0000000..cd80a56 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "6f6db177-1e3a-435b-ab11-cfbf051c207e", "created_at": "2026-11-15T07:20:39.965088+00:00", "finished_at": "2026-11-15T07:20:40.428192+00:00", "strategy": "route", "team": null, "task_id": "70873871-2ec9-4563-bc64-daf9e022c68d", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 1, "block_count": 0, "warning_count": 1, "artifact": "preflight.json", "digest": "sha256:26c5802f3a155eda69858048281454aaa6e4abfeb2ad772bb1c01d8fe4378006"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/preflight.json new file mode 100644 index 0000000..aac08ce --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/preflight.json @@ -0,0 +1,27 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "blocking_reasons": [], + "status": "error", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "warn", + "unknown": "block" + }, + "profile": "review", + "run_id": "6f6db177-1e3a-435b-ab11-cfbf051c207e", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/6f6db177-1e3a-435b-ab11-cfbf051c207e/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/8b413cd0-0303-4e14-b8d4-f7f3128579d8/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/8b413cd0-0303-4e14-b8d4-f7f3128579d8/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/8b413cd0-0303-4e14-b8d4-f7f3128579d8/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/8b413cd0-0303-4e14-b8d4-f7f3128579d8/envelope.json new file mode 100644 index 0000000..4b20235 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/8b413cd0-0303-4e14-b8d4-f7f3128579d8/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "8b413cd0-0303-4e14-b8d4-f7f3128579d8", "created_at": "2026-11-15T07:20:46.543530+00:00", "finished_at": "2026-11-15T07:20:46.996306+00:00", "strategy": "route", "team": null, "task_id": "eb6b7495-dba8-466c-bc92-041055ae0fcd", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 0, "block_count": 0, "warning_count": 1}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/8b413cd0-0303-4e14-b8d4-f7f3128579d8/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/8b413cd0-0303-4e14-b8d4-f7f3128579d8/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/8b413cd0-0303-4e14-b8d4-f7f3128579d8/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/93876f8e-7b06-4a25-8182-f83c710df416/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/93876f8e-7b06-4a25-8182-f83c710df416/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/93876f8e-7b06-4a25-8182-f83c710df416/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/93876f8e-7b06-4a25-8182-f83c710df416/envelope.json new file mode 100644 index 0000000..41dc618 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/93876f8e-7b06-4a25-8182-f83c710df416/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "93876f8e-7b06-4a25-8182-f83c710df416", "created_at": "2026-11-15T07:20:49.184096+00:00", "finished_at": "2026-11-15T07:20:49.238542+00:00", "strategy": "route", "team": null, "task_id": "23c3d35f-5293-498f-aa41-cc74809931d5", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 0, "evaluation_count": 1, "producer_decision": "advisory_allow", "enforcement_decision": "block", "block_count": 1}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/93876f8e-7b06-4a25-8182-f83c710df416/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/93876f8e-7b06-4a25-8182-f83c710df416/result.json new file mode 100644 index 0000000..75d3d2e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/93876f8e-7b06-4a25-8182-f83c710df416/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: EVIDENCE_PERSIST_FAILED", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/envelope.json new file mode 100644 index 0000000..081991a --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "a30c274e-ad4a-44cc-a81e-2cdd734ea8d3", "created_at": "2026-11-15T07:20:42.504748+00:00", "finished_at": "2026-11-15T07:20:42.556960+00:00", "strategy": "route", "team": null, "task_id": "ee35d370-aa85-4ddc-83c2-03dfa9035eca", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:6308f39f9d1cc21c6a9dd3a883a118321ca3bfaeb6e91af3039a5a58b4c06e76"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/preflight.json new file mode 100644 index 0000000..4fd679e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "EVIDENCE_PERSIST_FAILED" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [], + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "a30c274e-ad4a-44cc-a81e-2cdd734ea8d3", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/result.json new file mode 100644 index 0000000..75d3d2e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a30c274e-ad4a-44cc-a81e-2cdd734ea8d3/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: EVIDENCE_PERSIST_FAILED", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a8fa32d8-bf21-4719-815a-48f3ed59a589/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a8fa32d8-bf21-4719-815a-48f3ed59a589/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a8fa32d8-bf21-4719-815a-48f3ed59a589/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a8fa32d8-bf21-4719-815a-48f3ed59a589/envelope.json new file mode 100644 index 0000000..4aec734 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a8fa32d8-bf21-4719-815a-48f3ed59a589/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "a8fa32d8-bf21-4719-815a-48f3ed59a589", "created_at": "2026-11-15T07:20:33.843994+00:00", "finished_at": "2026-11-15T07:20:34.309222+00:00", "strategy": "route", "team": null, "task_id": "6f6f6679-ad0b-42dc-87c9-3bbc9f786c26", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a8fa32d8-bf21-4719-815a-48f3ed59a589/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a8fa32d8-bf21-4719-815a-48f3ed59a589/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/a8fa32d8-bf21-4719-815a-48f3ed59a589/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/envelope.json new file mode 100644 index 0000000..b7e45e8 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "b33b7deb-71b5-433a-857f-f0de95642115", "created_at": "2026-11-15T07:20:41.904932+00:00", "finished_at": "2026-11-15T07:20:42.008013+00:00", "strategy": "compete", "team": "pair", "task_id": "7890aadc-b328-436c-8514-d206ccfa3584", "agents": ["codex", "kimi-code"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 2, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:dec89a8ea1b4f2c689c8b5b9243f7a73e620031f530a01e99f9e1c6f23ab43b9"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:9c4d2beae8c1b098ed52a08aad1f7be6e49af813febf8fc745cce0563684c273", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/preflight.json new file mode 100644 index 0000000..9289b14 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/preflight.json @@ -0,0 +1,44 @@ +{ + "block_reasons": [ + "GRAPH_GENERATION_MISMATCH" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:7c654de27aa4e26e698ff3ed8b02c0a5d864075b0fd8c9ee89f12545b9d711ca", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + }, + { + "artifact": "preflight/eval-001.json", + "blocking_reasons": [], + "digest": "sha256:fb31ff6320c69185765b07ceb406eaa35ccabe4c237bafd42f9fd6bab8d0653e", + "graph_generation": 43, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "kimi-code" + ], + "toolgraph_agent": "kimi", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "b33b7deb-71b5-433a-857f-f0de95642115", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/preflight/eval-000.json new file mode 100644 index 0000000..0db2d95 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "b33b7deb-71b5-433a-857f-f0de95642115", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/preflight/eval-001.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/preflight/eval-001.json new file mode 100644 index 0000000..a686bc2 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/preflight/eval-001.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "b33b7deb-71b5-433a-857f-f0de95642115", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 43, + "agent": "kimi", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/result.json new file mode 100644 index 0000000..0650d3e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/b33b7deb-71b5-433a-857f-f0de95642115/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: GRAPH_GENERATION_MISMATCH", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/envelope.json new file mode 100644 index 0000000..37cf14c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59", "created_at": "2026-11-15T07:20:42.257403+00:00", "finished_at": "2026-11-15T07:20:42.258966+00:00", "strategy": "route", "team": null, "task_id": "e74436ab-01d5-452b-8233-1d6c1d60f44f", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:86782ef851aa9dddd88f5e3a10f52127a070bda11bc634d5a97b5d730726ec8d"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:d2f4740ffec7937781b18b7e6db1783300042470e5fe33d05143fd87ef3e5a25", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/preflight.json new file mode 100644 index 0000000..7bd4b4b --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "AGENT_MAPPING_MISSING" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [ + "AGENT_MAPPING_MISSING" + ], + "status": "unresolved_identity", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": null, + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/result.json new file mode 100644 index 0000000..d9cdf8c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/c6ae2418-5aa7-4ae9-b57d-6f6ef709bc59/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: AGENT_MAPPING_MISSING", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/envelope.json new file mode 100644 index 0000000..6bab5c7 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "cfd9e8c8-aabf-47ed-95fa-a831d016f039", "created_at": "2026-11-15T07:20:30.884906+00:00", "finished_at": "2026-11-15T07:20:31.534834+00:00", "strategy": "route", "team": null, "task_id": "dce435b7-a789-492e-84d2-f24ecdc34f74", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:835e6f23e0814cf09145722e0185fdcb2a0d60057ba8f01218c350cc8d5ea63a"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.08, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:0ba327f895a43644830c39bab9547db4d302481833bc02cd29c2e032d001236e", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/preflight.json new file mode 100644 index 0000000..3d6e9dd --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/preflight.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "cfd9e8c8-aabf-47ed-95fa-a831d016f039", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/result.json new file mode 100644 index 0000000..815aaf2 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/cfd9e8c8-aabf-47ed-95fa-a831d016f039/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.08, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/envelope.json new file mode 100644 index 0000000..947834a --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "d156fd0f-eb1d-4852-8ecb-2fa1189fb57e", "created_at": "2026-11-15T07:20:39.368114+00:00", "finished_at": "2026-11-15T07:20:39.424377+00:00", "strategy": "route", "team": null, "task_id": "5d56f008-1092-4c1b-a9dd-80d7e9c65a40", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:50734d9a0eeff1cd66c2eb2e48b74fc0f1750dcd0a0098deb5606745ca2b4d2f"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:f4e074e8175c11148640c6cdb277c6591f7188add6528cab64ad39204620f51f", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/preflight.json new file mode 100644 index 0000000..139b5c1 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/preflight.json @@ -0,0 +1,33 @@ +{ + "block_reasons": [ + "AGENT_NOT_FOUND" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [ + "AGENT_NOT_FOUND" + ], + "digest": "sha256:d6008176a15f665f9f3a447c54ec9790b3e4bd78651464cb50dcded6d87a1019", + "graph_generation": 42, + "producer_decision": "unresolved_identity", + "status": "unresolved_identity", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "kimi-code", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "d156fd0f-eb1d-4852-8ecb-2fa1189fb57e", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/preflight/eval-000.json new file mode 100644 index 0000000..706812c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/preflight/eval-000.json @@ -0,0 +1,15 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "d156fd0f-eb1d-4852-8ecb-2fa1189fb57e", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "kimi-code", + "agent_found": false, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [], + "features": [], + "decision": "unresolved_identity" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/result.json new file mode 100644 index 0000000..2915208 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/d156fd0f-eb1d-4852-8ecb-2fa1189fb57e/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: AGENT_NOT_FOUND", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/envelope.json new file mode 100644 index 0000000..fea98ef --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58", "created_at": "2026-11-15T07:20:31.801217+00:00", "finished_at": "2026-11-15T07:20:32.253659+00:00", "strategy": "route", "team": null, "task_id": "685b3d6b-240c-4f65-8464-17e4ea55d1a6", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "warning_count": 1, "artifact": "preflight.json", "digest": "sha256:29c7c2a857d1492b84763f30e8c09ccdc56e0f18bba157e0c648312bc50d5f27"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/preflight.json new file mode 100644 index 0000000..199461d --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/preflight.json @@ -0,0 +1,21 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58", + "created_at": "2026-07-12T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [ + { + "candidate": "legacy::old_tool", + "tool_key": "legacy::old_tool", + "reason": "DRIFTED" + } + ], + "features": [], + "decision": "advisory_warn" +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e1bb23e2-78ab-4f8e-b6f8-2b8226d60e58/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e6176a97-cc8d-4255-a734-9aac793c4ac9/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e6176a97-cc8d-4255-a734-9aac793c4ac9/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e6176a97-cc8d-4255-a734-9aac793c4ac9/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e6176a97-cc8d-4255-a734-9aac793c4ac9/envelope.json new file mode 100644 index 0000000..bc3e93c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e6176a97-cc8d-4255-a734-9aac793c4ac9/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "e6176a97-cc8d-4255-a734-9aac793c4ac9", "created_at": "2026-11-15T07:20:42.806576+00:00", "finished_at": "2026-11-15T07:20:42.859398+00:00", "strategy": "route", "team": null, "task_id": "ad03a2a4-7d08-41ae-9de0-687a80895b0b", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e6176a97-cc8d-4255-a734-9aac793c4ac9/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e6176a97-cc8d-4255-a734-9aac793c4ac9/result.json new file mode 100644 index 0000000..75d3d2e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/e6176a97-cc8d-4255-a734-9aac793c4ac9/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: EVIDENCE_PERSIST_FAILED", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/control-plan.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/control-plan.json new file mode 100644 index 0000000..1b70a59 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/control-plan.json @@ -0,0 +1 @@ +{"edges":[{"decided_by":"code","from":"start","kind":"always","to":"route"},{"decided_by":"code","from":"route","kind":"success","to":"end"}],"kind":"toolgraph.control-plan","limits":{"maximum_agent_calls":1,"maximum_cycles":0,"maximum_parallelism":1},"nodes":[{"agent_call":false,"id":"start","kind":"start","principals":[]},{"agent_call":true,"id":"route","kind":"agent","max_invocations":1,"max_parallelism":1,"principals":["codex"],"timeout_seconds":300},{"agent_call":false,"id":"end","kind":"end","principals":[]}],"principals":[{"candidate_tools":["workspace::read","workspace::write"],"id":"codex"}],"producer":{"name":"syncmill","version":"0.2.0"},"run_id":"eb103b1f-7a65-4de3-8f52-3f9bd06f4690","schema_version":1} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/control-preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/control-preflight.json new file mode 100644 index 0000000..15e318b --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/control-preflight.json @@ -0,0 +1,31 @@ +{ + "schema_version": 1, + "kind": "toolgraph.control-preflight", + "run_id": "eb103b1f-7a65-4de3-8f52-3f9bd06f4690", + "created_at": "2026-08-11T00:00:00+00:00", + "mode": "advisory", + "profile": "review", + "plan_digest": "sha256:0cc95ff9a2ba84e25dc867ff6779d00b8ea57dc190d06a14fa65016e70ec6baf", + "graph_state": { + "instance_id": "test-instance", + "generation": 42 + }, + "decision": "advisory_warn", + "evaluations": [ + { + "principal": "codex", + "agent_found": true, + "eligible": [ + "workspace::read", + "workspace::write" + ], + "rejected": [] + } + ], + "findings": [ + { + "code": "UNREACHABLE_NODE", + "node": "verify" + } + ] +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/envelope.json new file mode 100644 index 0000000..00b3e29 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "eb103b1f-7a65-4de3-8f52-3f9bd06f4690", "created_at": "2026-11-15T07:20:44.530870+00:00", "finished_at": "2026-11-15T07:20:44.979771+00:00", "strategy": "route", "team": null, "task_id": "be781895-18e9-4331-82f8-4d26fb9f6fc2", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 2, "evaluation_count": 1, "producer_decision": "advisory_warn", "artifact": "control-preflight.json", "digest": "sha256:9268de139cd762f3b8ede75894eefd8e89d47adc452e9e06743142d95f37aea0", "control_plan": {"artifact": "control-plan.json", "digest": "sha256:0cc95ff9a2ba84e25dc867ff6779d00b8ea57dc190d06a14fa65016e70ec6baf"}}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/eb103b1f-7a65-4de3-8f52-3f9bd06f4690/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/control-plan.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/control-plan.json new file mode 100644 index 0000000..ebb0763 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/control-plan.json @@ -0,0 +1 @@ +{"edges":[{"decided_by":"code","from":"start","kind":"always","to":"route"},{"decided_by":"code","from":"route","kind":"success","to":"end"}],"kind":"toolgraph.control-plan","limits":{"maximum_agent_calls":1,"maximum_cycles":0,"maximum_parallelism":1},"nodes":[{"agent_call":false,"id":"start","kind":"start","principals":[]},{"agent_call":true,"id":"route","kind":"agent","max_invocations":1,"max_parallelism":1,"principals":["codex"],"timeout_seconds":300},{"agent_call":false,"id":"end","kind":"end","principals":[]}],"principals":[{"candidate_tools":["workspace::read","workspace::write"],"id":"codex"}],"producer":{"name":"syncmill","version":"0.2.0"},"run_id":"fa8fbedb-5b43-423b-8cd8-0fca033430f5","schema_version":1} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/control-preflight.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/control-preflight.json new file mode 100644 index 0000000..17bffc8 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/control-preflight.json @@ -0,0 +1,31 @@ +{ + "schema_version": 1, + "kind": "toolgraph.control-preflight", + "run_id": "fa8fbedb-5b43-423b-8cd8-0fca033430f5", + "created_at": "2026-08-11T00:00:00+00:00", + "mode": "advisory", + "profile": "review", + "plan_digest": "sha256:c5b3eb6801958172e0960c0bcf16bcc604ee35157680229c9c57248c4aca2d74", + "graph_state": { + "instance_id": "test-instance", + "generation": 42 + }, + "decision": "advisory_warn", + "evaluations": [ + { + "principal": "codex", + "agent_found": true, + "eligible": [ + "workspace::read", + "workspace::write" + ], + "rejected": [] + } + ], + "findings": [ + { + "code": "UNREACHABLE_NODE", + "node": "verify" + } + ] +} diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/envelope.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/envelope.json new file mode 100644 index 0000000..d0a05b9 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "fa8fbedb-5b43-423b-8cd8-0fca033430f5", "created_at": "2026-11-15T07:20:45.234649+00:00", "finished_at": "2026-11-15T07:20:45.293869+00:00", "strategy": "route", "team": null, "task_id": "74720b18-02bc-4457-8136-7be94f5b8d77", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 1, "evaluation_count": 1, "producer_decision": "advisory_warn", "artifact": "control-preflight.json", "digest": "sha256:43c93740cb30d5bd5de5eebec3b0385596958597a902c034e746e1cc787b250c", "control_plan": {"artifact": "control-plan.json", "digest": "sha256:c5b3eb6801958172e0960c0bcf16bcc604ee35157680229c9c57248c4aca2d74"}, "enforcement_decision": "block", "block_count": 1}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:b19a0942a18499cbea567a88e6026fde0db409c9e2b9004fcc14cb21c1ad7d91", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/result.json b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/result.json new file mode 100644 index 0000000..8b126e3 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.2.0/preflight/runs/fa8fbedb-5b43-423b-8cd8-0fca033430f5/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: CONTROL_PLAN_FINDING", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/index.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/index.json new file mode 100644 index 0000000..6d752a1 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/index.json @@ -0,0 +1,276 @@ +{ + "goldens": { + "control-preflight-v1.json": "bd78ffbea50c27092f5806d06503f6ebc9256302", + "control-preflight.schema.json": "8ec71dcd6ff66ac3f74dd9930990383506fde6f9", + "preflight-allow.json": "2d7a7efc42cc259ee218b96f88fe12b579101283", + "preflight-drift.json": "ab4495e6a9e7ef4264028242e5be2e11fe46901f", + "preflight-unknown-tool.json": "ae02acd9cca64a01bae32024b8f36f6814022eda", + "preflight-unresolved-identity.json": "fe52d653f7685bde35656088bc707a31cd6ee25d", + "preflight.schema.json": "f26a74cc9466d5c7b94ea6b0e17a023722716529" + }, + "release": "0.3.0", + "report_list": "Recorded runs (newest first):\n\n ed5ab0dd-c613-4b66-93c0-5aa0fd576d71 2026-11-15T07:20:15.089191+00:00 route failed \u2014\n f6960c9f-e604-4496-96ac-7a2561544b11 2026-11-15T07:20:14.781504+00:00 route failed preflight\n 99e88ceb-ec6f-4d0c-b562-be209b65fdb1 2026-11-15T07:20:14.045261+00:00 route completed codex\n b8402983-7895-459f-95fc-f5832d93dc8b 2026-11-15T07:20:12.786190+00:00 route failed preflight\n d8191809-6217-4a1b-8f01-fa4117cdb266 2026-11-15T07:20:12.015069+00:00 route completed codex\n bfc9485f-1911-4544-a3a3-7e0f2aa97a5a 2026-11-15T07:20:11.708320+00:00 route failed preflight\n 70067402-b92b-46a7-9b39-c06e6b6af4e4 2026-11-15T07:20:10.957207+00:00 route completed codex\n 5dc5548b-1a4e-4409-956b-047263b0db29 2026-11-15T07:20:10.665511+00:00 route failed preflight\n db191781-f4b4-4119-8419-5cf785b62403 2026-11-15T07:20:09.952873+00:00 route completed codex\n 6e5fc801-c065-44c7-8e99-1cd787a7ffc5 2026-11-15T07:20:09.233874+00:00 route completed codex\n 83351e88-b2c2-47f5-8953-097bd9e12526 2026-11-15T07:20:08.523382+00:00 route completed codex\n 7e4e9d46-17e1-4eaf-b14f-fe4929017bf4 2026-11-15T07:20:08.222044+00:00 route failed preflight\n 3bc0c261-57aa-4791-b483-2f2c231c84de 2026-11-15T07:20:07.924930+00:00 route failed preflight\n 46252f90-0fd2-4bdf-974d-5502f91d6863 2026-11-15T07:20:07.681688+00:00 route failed preflight\n 0e1706fc-eb0a-48f9-806c-e3151b39a9af 2026-11-15T07:20:07.335353+00:00 compete failed preflight\n 06744151-6a99-4fca-bf00-0cf11c45a92d 2026-11-15T07:20:06.981778+00:00 compete failed preflight\n 0898e608-fa29-40c6-b69c-a04a1aa4e3b1 2026-11-15T07:20:06.128412+00:00 compete completed codex\n 9787fb8c-6d00-4d29-80ba-1d87aee6e9e7 2026-11-15T07:20:05.470714+00:00 route completed codex\n 0fa7243a-5f3f-4cfe-a9af-ff6be22c8209 2026-11-15T07:20:05.190004+00:00 route failed preflight\n 43a88d52-fa7b-4e60-91e1-1483f839f3ef 2026-11-15T07:20:04.906576+00:00 route failed preflight\n cf9757a2-3890-49e4-97e5-2af046b0b182 2026-11-15T07:20:03.623709+00:00 route failed preflight\n f571e545-f754-4a85-be59-97a5c78ba20e 2026-11-15T07:20:03.329574+00:00 route failed preflight\n 73338303-8892-45f9-8680-f5c93c8646ce 2026-11-15T07:20:02.672317+00:00 route completed codex\n 07dc57ea-a4b8-46c2-bd14-e81f054f9d62 2026-11-15T07:20:02.020258+00:00 route completed codex\n e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a 2026-11-15T07:20:00.364623+00:00 route completed codex\n c0cfdad5-94ce-479d-b858-fd8f4d67cf8f 2026-11-15T07:19:59.652534+00:00 route completed codex\n a17dd99f-17e1-4d09-8d9f-5bde61a55850 2026-11-15T07:19:58.932221+00:00 route completed codex\n 53ec3add-7e8b-4115-987e-33801d93fe63 2026-11-15T07:19:58.210307+00:00 route completed codex\n 80687ec7-8d3c-402a-a0de-71f0a80bcc0a 2026-11-15T07:19:57.500301+00:00 route completed codex\n 42caac1c-465c-4a23-82b1-61f5628022dc 2026-11-15T07:19:56.653940+00:00 route completed codex\n", + "runs_dir": "/private/var/folders/4n/mt3km5rs1bn_b0w_d6hvlmhc0000gn/T/tmp7lj5l1ex/state/reports", + "scenarios": { + "advisory-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 42caac1c-465c-4a23-82b1-61f5628022dc\nCreated: 2026-11-15T07:19:56.653940+00:00\nFinished: 2026-11-15T07:19:57.226664+00:00\nStrategy: route\nTeam: \u2014\nTask: 65d6ec06-5cfd-4d86-93ec-77e37f6abb2c\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.08s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:0ba327f895a43644830c39bab9547db4d302481833bc02cd29c2e032d001236e\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "42caac1c-465c-4a23-82b1-61f5628022dc" + }, + "advisory-drift": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 80687ec7-8d3c-402a-a0de-71f0a80bcc0a\nCreated: 2026-11-15T07:19:57.500301+00:00\nFinished: 2026-11-15T07:19:57.949769+00:00\nStrategy: route\nTeam: \u2014\nTask: b978287a-52ec-49c8-913a-b81d49ad78b4\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "80687ec7-8d3c-402a-a0de-71f0a80bcc0a" + }, + "advisory-error": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: c0cfdad5-94ce-479d-b858-fd8f4d67cf8f\nCreated: 2026-11-15T07:19:59.652534+00:00\nFinished: 2026-11-15T07:20:00.097388+00:00\nStrategy: route\nTeam: \u2014\nTask: c26fddee-2cca-4472-9338-18b356929060\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "c0cfdad5-94ce-479d-b858-fd8f4d67cf8f" + }, + "advisory-timeout": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a\nCreated: 2026-11-15T07:20:00.364623+00:00\nFinished: 2026-11-15T07:20:01.770108+00:00\nStrategy: route\nTeam: \u2014\nTask: 96402f9c-95fc-4010-a412-6f05780f9c1c\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: timeout\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a" + }, + "advisory-unmapped": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: a17dd99f-17e1-4d09-8d9f-5bde61a55850\nCreated: 2026-11-15T07:19:58.932221+00:00\nFinished: 2026-11-15T07:19:59.378506+00:00\nStrategy: route\nTeam: \u2014\nTask: 54e1b3bd-c1d8-4a58-8f7e-812eedf734cd\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "a17dd99f-17e1-4d09-8d9f-5bde61a55850" + }, + "advisory-unresolved": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 53ec3add-7e8b-4115-987e-33801d93fe63\nCreated: 2026-11-15T07:19:58.210307+00:00\nFinished: 2026-11-15T07:19:58.660445+00:00\nStrategy: route\nTeam: \u2014\nTask: eb706d61-7c34-4f78-86b7-a59614617b20\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "53ec3add-7e8b-4115-987e-33801d93fe63" + }, + "control-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 83351e88-b2c2-47f5-8953-097bd9e12526\nCreated: 2026-11-15T07:20:08.523382+00:00\nFinished: 2026-11-15T07:20:08.977139+00:00\nStrategy: route\nTeam: \u2014\nTask: dcbed9d8-0a12-44d5-b639-1e1b85324456\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "83351e88-b2c2-47f5-8953-097bd9e12526" + }, + "control-error": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 70067402-b92b-46a7-9b39-c06e6b6af4e4\nCreated: 2026-11-15T07:20:10.957207+00:00\nFinished: 2026-11-15T07:20:11.458198+00:00\nStrategy: route\nTeam: \u2014\nTask: 564cdb1d-9702-4228-8ac3-e0c5a40c5456\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "70067402-b92b-46a7-9b39-c06e6b6af4e4" + }, + "control-finding": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: db191781-f4b4-4119-8419-5cf785b62403\nCreated: 2026-11-15T07:20:09.952873+00:00\nFinished: 2026-11-15T07:20:10.410244+00:00\nStrategy: route\nTeam: \u2014\nTask: 0c878ecb-60a9-4119-9c0d-6c99f093a090\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "db191781-f4b4-4119-8419-5cf785b62403", + "synthetic": "one UNREACHABLE_NODE finding added to the control golden" + }, + "control-persist": { + "injected_write_failure": { + "destination": "control-preflight.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 99e88ceb-ec6f-4d0c-b562-be209b65fdb1\nCreated: 2026-11-15T07:20:14.045261+00:00\nFinished: 2026-11-15T07:20:14.519529+00:00\nStrategy: route\nTeam: \u2014\nTask: 25d67be2-1d4a-4ba5-ae9e-84e4aabbac38\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "99e88ceb-ec6f-4d0c-b562-be209b65fdb1" + }, + "control-strict-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 6e5fc801-c065-44c7-8e99-1cd787a7ffc5\nCreated: 2026-11-15T07:20:09.233874+00:00\nFinished: 2026-11-15T07:20:09.694899+00:00\nStrategy: route\nTeam: \u2014\nTask: e64e1ed2-03f4-45f8-9f8e-fdc87ed1a665\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "6e5fc801-c065-44c7-8e99-1cd787a7ffc5" + }, + "control-strict-error": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: bfc9485f-1911-4544-a3a3-7e0f2aa97a5a\nCreated: 2026-11-15T07:20:11.708320+00:00\nFinished: 2026-11-15T07:20:11.762115+00:00\nStrategy: route\nTeam: \u2014\nTask: 6e43433c-e912-4632-9839-1f34cc50b9ee\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "bfc9485f-1911-4544-a3a3-7e0f2aa97a5a" + }, + "control-strict-error-warn": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: d8191809-6217-4a1b-8f01-fa4117cdb266\nCreated: 2026-11-15T07:20:12.015069+00:00\nFinished: 2026-11-15T07:20:12.510677+00:00\nStrategy: route\nTeam: \u2014\nTask: 8f819ebe-4797-48fa-b099-31f48140fecd\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "d8191809-6217-4a1b-8f01-fa4117cdb266" + }, + "control-strict-finding": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 5dc5548b-1a4e-4409-956b-047263b0db29\nCreated: 2026-11-15T07:20:10.665511+00:00\nFinished: 2026-11-15T07:20:10.715155+00:00\nStrategy: route\nTeam: \u2014\nTask: ad578654-e767-48e7-86d7-bb0baafd610e\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:b19a0942a18499cbea567a88e6026fde0db409c9e2b9004fcc14cb21c1ad7d91\n patch digest: \u2014\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "5dc5548b-1a4e-4409-956b-047263b0db29", + "synthetic": "one UNREACHABLE_NODE finding added to the control golden" + }, + "control-strict-persist": { + "injected_write_failure": { + "destination": "control-preflight.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: f6960c9f-e604-4496-96ac-7a2561544b11\nCreated: 2026-11-15T07:20:14.781504+00:00\nFinished: 2026-11-15T07:20:14.836848+00:00\nStrategy: route\nTeam: \u2014\nTask: 3aea6e1f-b850-4216-b7f1-4c7b69450e99\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "f6960c9f-e604-4496-96ac-7a2561544b11" + }, + "control-strict-timeout": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: b8402983-7895-459f-95fc-f5832d93dc8b\nCreated: 2026-11-15T07:20:12.786190+00:00\nFinished: 2026-11-15T07:20:13.792183+00:00\nStrategy: route\nTeam: \u2014\nTask: 2c97ace0-c121-44d6-a310-a0e926afdb09\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: timeout\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "b8402983-7895-459f-95fc-f5832d93dc8b" + }, + "killed-after-preflight": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: ed5ab0dd-c613-4b66-93c0-5aa0fd576d71\nCreated: 2026-11-15T07:20:15.089191+00:00\nFinished: 2026-11-15T07:20:15.089191+00:00\nStrategy: route\nTeam: \u2014\nTask: 332266dd-0284-49c7-a0f1-ae0a632b51b2\nAgents: codex\nBoard: \u2014\nResult: failed\n winner: \u2014\n exit code: None\n duration: Nones\n gate passed: None\n files changed: None\n artifact: \u2014\n digest: \u2014\n patch digest: \u2014\nPreflight: disabled\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "ed5ab0dd-c613-4b66-93c0-5aa0fd576d71" + }, + "strict-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 07dc57ea-a4b8-46c2-bd14-e81f054f9d62\nCreated: 2026-11-15T07:20:02.020258+00:00\nFinished: 2026-11-15T07:20:02.429329+00:00\nStrategy: route\nTeam: \u2014\nTask: fd074332-7fc2-4e26-840f-a8a24ca33647\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "07dc57ea-a4b8-46c2-bd14-e81f054f9d62" + }, + "strict-block": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: f571e545-f754-4a85-be59-97a5c78ba20e\nCreated: 2026-11-15T07:20:03.329574+00:00\nFinished: 2026-11-15T07:20:03.384743+00:00\nStrategy: route\nTeam: \u2014\nTask: f2796dae-ae95-4900-92d7-a6d77345a536\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f5ee2d1143d77bc76b4eeef3a53c8cd9dda4c465901ac42c76fa24e3c9a69a0\n patch digest: \u2014\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "f571e545-f754-4a85-be59-97a5c78ba20e" + }, + "strict-gen-mismatch": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 0e1706fc-eb0a-48f9-806c-e3151b39a9af\nCreated: 2026-11-15T07:20:07.335353+00:00\nFinished: 2026-11-15T07:20:07.435941+00:00\nStrategy: compete\nTeam: pair\nTask: 93052f73-7f3b-466c-a066-c8ca45f6f92b\nAgents: codex, kimi-code\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:9c4d2beae8c1b098ed52a08aad1f7be6e49af813febf8fc745cce0563684c273\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "0e1706fc-eb0a-48f9-806c-e3151b39a9af", + "synthetic": "identity kimi answered with the allow golden, agent replaced and graph_generation 43" + }, + "strict-multi-allow": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 0898e608-fa29-40c6-b69c-a04a1aa4e3b1\nCreated: 2026-11-15T07:20:06.128412+00:00\nFinished: 2026-11-15T07:20:06.701148+00:00\nStrategy: compete\nTeam: pair\nTask: b6b486b6-ddcd-4e64-8d61-c4e3d67444d4\nAgents: codex, kimi-code\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "0898e608-fa29-40c6-b69c-a04a1aa4e3b1", + "synthetic": "identity kimi answered with the allow golden, agent replaced" + }, + "strict-multi-mixed": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 06744151-6a99-4fca-bf00-0cf11c45a92d\nCreated: 2026-11-15T07:20:06.981778+00:00\nFinished: 2026-11-15T07:20:07.084542+00:00\nStrategy: compete\nTeam: pair\nTask: 54087b7a-5ebd-4f75-9b37-3f66924b47b7\nAgents: codex, kimi-code\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "06744151-6a99-4fca-bf00-0cf11c45a92d" + }, + "strict-persist-aggregate": { + "injected_write_failure": { + "destination": "preflight.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 7e4e9d46-17e1-4eaf-b14f-fe4929017bf4\nCreated: 2026-11-15T07:20:08.222044+00:00\nFinished: 2026-11-15T07:20:08.275097+00:00\nStrategy: route\nTeam: \u2014\nTask: f52c2d0e-f806-4fbd-92c3-f4255b48ea6f\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "7e4e9d46-17e1-4eaf-b14f-fe4929017bf4" + }, + "strict-persist-eval": { + "injected_write_failure": { + "destination": "eval-000.json", + "exception": "OSError('injected write failure: ')" + }, + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 3bc0c261-57aa-4791-b483-2f2c231c84de\nCreated: 2026-11-15T07:20:07.924930+00:00\nFinished: 2026-11-15T07:20:07.976244+00:00\nStrategy: route\nTeam: \u2014\nTask: 072cdf15-b726-4aaa-8463-8d5b433d698b\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "3bc0c261-57aa-4791-b483-2f2c231c84de" + }, + "strict-timeout": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: cf9757a2-3890-49e4-97e5-2af046b0b182\nCreated: 2026-11-15T07:20:03.623709+00:00\nFinished: 2026-11-15T07:20:04.636589+00:00\nStrategy: route\nTeam: \u2014\nTask: 95bcf006-d8c8-49b3-b084-3a548eff70ef\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: timeout\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "cf9757a2-3890-49e4-97e5-2af046b0b182" + }, + "strict-unavailable": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 0fa7243a-5f3f-4cfe-a9af-ff6be22c8209\nCreated: 2026-11-15T07:20:05.190004+00:00\nFinished: 2026-11-15T07:20:05.237371+00:00\nStrategy: route\nTeam: \u2014\nTask: 2e95656f-e0c0-46c0-bebf-1b159cd2075b\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012\n patch digest: \u2014\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "0fa7243a-5f3f-4cfe-a9af-ff6be22c8209" + }, + "strict-unavailable-warn": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 9787fb8c-6d00-4d29-80ba-1d87aee6e9e7\nCreated: 2026-11-15T07:20:05.470714+00:00\nFinished: 2026-11-15T07:20:05.878940+00:00\nStrategy: route\nTeam: \u2014\nTask: edd8d98d-f404-4cd9-aeb6-b514316989e2\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: error\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "9787fb8c-6d00-4d29-80ba-1d87aee6e9e7" + }, + "strict-unmapped": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 46252f90-0fd2-4bdf-974d-5502f91d6863\nCreated: 2026-11-15T07:20:07.681688+00:00\nFinished: 2026-11-15T07:20:07.683293+00:00\nStrategy: route\nTeam: \u2014\nTask: 032dc0c7-21e6-42c5-977b-783e387cd3a4\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:d2f4740ffec7937781b18b7e6db1783300042470e5fe33d05143fd87ef3e5a25\n patch digest: \u2014\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "46252f90-0fd2-4bdf-974d-5502f91d6863" + }, + "strict-unresolved": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 43a88d52-fa7b-4e60-91e1-1483f839f3ef\nCreated: 2026-11-15T07:20:04.906576+00:00\nFinished: 2026-11-15T07:20:04.954769+00:00\nStrategy: route\nTeam: \u2014\nTask: d83e71eb-e3ca-4970-b483-2292633e8adf\nAgents: codex\nBoard: \u2014\nResult: failed (preflight)\n winner: \u2014\n exit code: 1\n duration: 0.0s\n gate passed: None\n files changed: 0\n artifact: result.json\n digest: sha256:f4e074e8175c11148640c6cdb277c6591f7188add6528cab64ad39204620f51f\n patch digest: \u2014\nPreflight: unresolved_identity\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "43a88d52-fa7b-4e60-91e1-1483f839f3ef" + }, + "strict-warn": { + "report_show": { + "returncode": 0, + "stderr": "", + "stdout": "Run: 73338303-8892-45f9-8680-f5c93c8646ce\nCreated: 2026-11-15T07:20:02.672317+00:00\nFinished: 2026-11-15T07:20:03.080110+00:00\nStrategy: route\nTeam: \u2014\nTask: 7a931208-6aa3-4486-b3f2-d11422f35978\nAgents: codex\nBoard: \u2014\nResult: completed (codex)\n winner: codex\n exit code: 0\n duration: 0.02s\n gate passed: None\n files changed: 1\n artifact: result.json\n digest: sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7\n patch digest: sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba\nPreflight: ok\nTrace: disabled\nDegraded: \u2014\n" + }, + "run_id": "73338303-8892-45f9-8680-f5c93c8646ce" + } + } +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/envelope.json new file mode 100644 index 0000000..b3546b0 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "06744151-6a99-4fca-bf00-0cf11c45a92d", "created_at": "2026-11-15T07:20:06.981778+00:00", "finished_at": "2026-11-15T07:20:07.084542+00:00", "strategy": "compete", "team": "pair", "task_id": "54087b7a-5ebd-4f75-9b37-3f66924b47b7", "agents": ["codex", "kimi-code"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 2, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:502122e6a450b66c01814a0a3c04ed0eaa86fe4c62b2f55f23e85264386c39ae"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/preflight.json new file mode 100644 index 0000000..98c731d --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/preflight.json @@ -0,0 +1,42 @@ +{ + "block_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:53e9b792ef6332bca8f858e12f705d1c0d37abce12089d432ccfcf636a98e811", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + }, + { + "blocking_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "status": "error", + "syncmill_agents": [ + "kimi-code" + ], + "toolgraph_agent": "kimi", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "06744151-6a99-4fca-bf00-0cf11c45a92d", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/preflight/eval-000.json new file mode 100644 index 0000000..dcd98fd --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "06744151-6a99-4fca-bf00-0cf11c45a92d", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/06744151-6a99-4fca-bf00-0cf11c45a92d/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/envelope.json new file mode 100644 index 0000000..3526c41 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "07dc57ea-a4b8-46c2-bd14-e81f054f9d62", "created_at": "2026-11-15T07:20:02.020258+00:00", "finished_at": "2026-11-15T07:20:02.429329+00:00", "strategy": "route", "team": null, "task_id": "fd074332-7fc2-4e26-840f-a8a24ca33647", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 1, "block_count": 0, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:8654a9bcb0971ac104a0cc5f2d951c5a4023a6ede3c5ff419f0171853e6b26c7"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/preflight.json new file mode 100644 index 0000000..0b5916d --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:42ea024049469ff2286cb3eeb84f595fcb80e0a927f0c4efdbe79a26782b9f45", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "07dc57ea-a4b8-46c2-bd14-e81f054f9d62", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/preflight/eval-000.json new file mode 100644 index 0000000..9478c1e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "07dc57ea-a4b8-46c2-bd14-e81f054f9d62", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/07dc57ea-a4b8-46c2-bd14-e81f054f9d62/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/envelope.json new file mode 100644 index 0000000..48ff680 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "0898e608-fa29-40c6-b69c-a04a1aa4e3b1", "created_at": "2026-11-15T07:20:06.128412+00:00", "finished_at": "2026-11-15T07:20:06.701148+00:00", "strategy": "compete", "team": "pair", "task_id": "b6b486b6-ddcd-4e64-8d61-c4e3d67444d4", "agents": ["codex", "kimi-code"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 2, "block_count": 0, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:e8d8e6f47607bb342c70f460a97a14b1c388aa54ec562903927830d64f8520cb"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/preflight.json new file mode 100644 index 0000000..ef4b3b6 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/preflight.json @@ -0,0 +1,42 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:0d03a0f5504351a7bdd4fec22a41ae7f6f930ab65c84413ab1d353edc94563b2", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + }, + { + "artifact": "preflight/eval-001.json", + "blocking_reasons": [], + "digest": "sha256:c288416a6d2e835c3b9fa9b4955bd90187ad68646993598ad780bcf6d10bd477", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "kimi-code" + ], + "toolgraph_agent": "kimi", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "0898e608-fa29-40c6-b69c-a04a1aa4e3b1", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/preflight/eval-000.json new file mode 100644 index 0000000..d5be1a7 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "0898e608-fa29-40c6-b69c-a04a1aa4e3b1", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/preflight/eval-001.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/preflight/eval-001.json new file mode 100644 index 0000000..fac3936 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/preflight/eval-001.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "0898e608-fa29-40c6-b69c-a04a1aa4e3b1", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "kimi", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0898e608-fa29-40c6-b69c-a04a1aa4e3b1/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/envelope.json new file mode 100644 index 0000000..259b12a --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "0e1706fc-eb0a-48f9-806c-e3151b39a9af", "created_at": "2026-11-15T07:20:07.335353+00:00", "finished_at": "2026-11-15T07:20:07.435941+00:00", "strategy": "compete", "team": "pair", "task_id": "93052f73-7f3b-466c-a066-c8ca45f6f92b", "agents": ["codex", "kimi-code"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 2, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:378a6fe1c1889b58520e9dcd02fce8a6eb1f0878f31841f528d2e8dee72626b7"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:9c4d2beae8c1b098ed52a08aad1f7be6e49af813febf8fc745cce0563684c273", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/preflight.json new file mode 100644 index 0000000..f607e93 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/preflight.json @@ -0,0 +1,44 @@ +{ + "block_reasons": [ + "GRAPH_GENERATION_MISMATCH" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:3f959e9ba7d5c18f3a388f9e34cacd550f9ed803e40a95ac17a991e4c8b808f1", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + }, + { + "artifact": "preflight/eval-001.json", + "blocking_reasons": [], + "digest": "sha256:cd13c312d1df77089c5a1c4d1566eb3fd4b0fa49041664d14918443cd3d6e16f", + "graph_generation": 43, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "kimi-code" + ], + "toolgraph_agent": "kimi", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "0e1706fc-eb0a-48f9-806c-e3151b39a9af", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/preflight/eval-000.json new file mode 100644 index 0000000..588a369 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "0e1706fc-eb0a-48f9-806c-e3151b39a9af", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/preflight/eval-001.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/preflight/eval-001.json new file mode 100644 index 0000000..8bebf47 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/preflight/eval-001.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "0e1706fc-eb0a-48f9-806c-e3151b39a9af", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 43, + "agent": "kimi", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/result.json new file mode 100644 index 0000000..0650d3e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0e1706fc-eb0a-48f9-806c-e3151b39a9af/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: GRAPH_GENERATION_MISMATCH", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/envelope.json new file mode 100644 index 0000000..716ee66 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "0fa7243a-5f3f-4cfe-a9af-ff6be22c8209", "created_at": "2026-11-15T07:20:05.190004+00:00", "finished_at": "2026-11-15T07:20:05.237371+00:00", "strategy": "route", "team": null, "task_id": "2e95656f-e0c0-46c0-bebf-1b159cd2075b", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:c4c1a997a115ae222f12f3903be088b5e0035dd8f466ddf18790dc750add381b"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/preflight.json new file mode 100644 index 0000000..97db3f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "status": "error", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "0fa7243a-5f3f-4cfe-a9af-ff6be22c8209", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/0fa7243a-5f3f-4cfe-a9af-ff6be22c8209/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/envelope.json new file mode 100644 index 0000000..498fe78 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "3bc0c261-57aa-4791-b483-2f2c231c84de", "created_at": "2026-11-15T07:20:07.924930+00:00", "finished_at": "2026-11-15T07:20:07.976244+00:00", "strategy": "route", "team": null, "task_id": "072cdf15-b726-4aaa-8463-8d5b433d698b", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:c93be4829615e5eda509556fd2f18564cb233f9b75ee540733b95db09a1b2865"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/preflight.json new file mode 100644 index 0000000..0e3c983 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "EVIDENCE_PERSIST_FAILED" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [], + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "3bc0c261-57aa-4791-b483-2f2c231c84de", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/result.json new file mode 100644 index 0000000..75d3d2e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/3bc0c261-57aa-4791-b483-2f2c231c84de/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: EVIDENCE_PERSIST_FAILED", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/envelope.json new file mode 100644 index 0000000..4c6d1c1 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "42caac1c-465c-4a23-82b1-61f5628022dc", "created_at": "2026-11-15T07:19:56.653940+00:00", "finished_at": "2026-11-15T07:19:57.226664+00:00", "strategy": "route", "team": null, "task_id": "65d6ec06-5cfd-4d86-93ec-77e37f6abb2c", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:36f6b907a56e4376df02766c102a3d4796a7a5b035836b661ba95d90a2c4b7c0"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.08, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:0ba327f895a43644830c39bab9547db4d302481833bc02cd29c2e032d001236e", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/preflight.json new file mode 100644 index 0000000..b0cf431 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/preflight.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "42caac1c-465c-4a23-82b1-61f5628022dc", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/result.json new file mode 100644 index 0000000..815aaf2 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/42caac1c-465c-4a23-82b1-61f5628022dc/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.08, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/envelope.json new file mode 100644 index 0000000..2734f22 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "43a88d52-fa7b-4e60-91e1-1483f839f3ef", "created_at": "2026-11-15T07:20:04.906576+00:00", "finished_at": "2026-11-15T07:20:04.954769+00:00", "strategy": "route", "team": null, "task_id": "d83e71eb-e3ca-4970-b483-2292633e8adf", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:86b71719287296bcf44bf13a799f0f540cbc26d91571c937351416d606895eee"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:f4e074e8175c11148640c6cdb277c6591f7188add6528cab64ad39204620f51f", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/preflight.json new file mode 100644 index 0000000..ed22998 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/preflight.json @@ -0,0 +1,33 @@ +{ + "block_reasons": [ + "AGENT_NOT_FOUND" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [ + "AGENT_NOT_FOUND" + ], + "digest": "sha256:5566bc8ecefe29d37b900daf15cb55403f7d199bfaf8761473bec5802bc8be18", + "graph_generation": 42, + "producer_decision": "unresolved_identity", + "status": "unresolved_identity", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "kimi-code", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "43a88d52-fa7b-4e60-91e1-1483f839f3ef", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/preflight/eval-000.json new file mode 100644 index 0000000..f925bcd --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/preflight/eval-000.json @@ -0,0 +1,15 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "43a88d52-fa7b-4e60-91e1-1483f839f3ef", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "kimi-code", + "agent_found": false, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [], + "features": [], + "decision": "unresolved_identity" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/result.json new file mode 100644 index 0000000..2915208 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/43a88d52-fa7b-4e60-91e1-1483f839f3ef/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: AGENT_NOT_FOUND", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/envelope.json new file mode 100644 index 0000000..faeb15c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "46252f90-0fd2-4bdf-974d-5502f91d6863", "created_at": "2026-11-15T07:20:07.681688+00:00", "finished_at": "2026-11-15T07:20:07.683293+00:00", "strategy": "route", "team": null, "task_id": "032dc0c7-21e6-42c5-977b-783e387cd3a4", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:d5a4d20b7de83d8b741fda11f3d71747aa169f6954bfd6b30b7f5218f67c16c8"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:d2f4740ffec7937781b18b7e6db1783300042470e5fe33d05143fd87ef3e5a25", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/preflight.json new file mode 100644 index 0000000..5a3dc21 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "AGENT_MAPPING_MISSING" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [ + "AGENT_MAPPING_MISSING" + ], + "status": "unresolved_identity", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": null, + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "46252f90-0fd2-4bdf-974d-5502f91d6863", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/result.json new file mode 100644 index 0000000..d9cdf8c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/46252f90-0fd2-4bdf-974d-5502f91d6863/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: AGENT_MAPPING_MISSING", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/envelope.json new file mode 100644 index 0000000..4cff739 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "53ec3add-7e8b-4115-987e-33801d93fe63", "created_at": "2026-11-15T07:19:58.210307+00:00", "finished_at": "2026-11-15T07:19:58.660445+00:00", "strategy": "route", "team": null, "task_id": "eb706d61-7c34-4f78-86b7-a59614617b20", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "advisory", "profile": "review", "graph_generation": 42, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:fd98fe16f64fab8ffec849d82ca9e859a43be563b04dd71b524019191425d1e3"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/preflight.json new file mode 100644 index 0000000..7102750 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/preflight.json @@ -0,0 +1,15 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "53ec3add-7e8b-4115-987e-33801d93fe63", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "kimi-code", + "agent_found": false, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [], + "features": [], + "decision": "unresolved_identity" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/53ec3add-7e8b-4115-987e-33801d93fe63/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/control-plan.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/control-plan.json new file mode 100644 index 0000000..cbc395c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/control-plan.json @@ -0,0 +1 @@ +{"edges":[{"decided_by":"code","from":"start","kind":"always","to":"route"},{"decided_by":"code","from":"route","kind":"success","to":"end"}],"kind":"toolgraph.control-plan","limits":{"maximum_agent_calls":1,"maximum_cycles":0,"maximum_parallelism":1},"nodes":[{"agent_call":false,"id":"start","kind":"start","principals":[]},{"agent_call":true,"id":"route","kind":"agent","max_invocations":1,"max_parallelism":1,"principals":["codex"],"timeout_seconds":300},{"agent_call":false,"id":"end","kind":"end","principals":[]}],"principals":[{"candidate_tools":["workspace::read","workspace::write"],"id":"codex"}],"producer":{"name":"syncmill","version":"0.3.0"},"run_id":"5dc5548b-1a4e-4409-956b-047263b0db29","schema_version":1} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/control-preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/control-preflight.json new file mode 100644 index 0000000..0842410 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/control-preflight.json @@ -0,0 +1,31 @@ +{ + "schema_version": 1, + "kind": "toolgraph.control-preflight", + "run_id": "5dc5548b-1a4e-4409-956b-047263b0db29", + "created_at": "2026-08-11T00:00:00+00:00", + "mode": "advisory", + "profile": "review", + "plan_digest": "sha256:056d419ae239c8054b29b4b02eb398eec19d9c9bc7a8efeae500b4c31c60bdd9", + "graph_state": { + "instance_id": "test-instance", + "generation": 42 + }, + "decision": "advisory_warn", + "evaluations": [ + { + "principal": "codex", + "agent_found": true, + "eligible": [ + "workspace::read", + "workspace::write" + ], + "rejected": [] + } + ], + "findings": [ + { + "code": "UNREACHABLE_NODE", + "node": "verify" + } + ] +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/envelope.json new file mode 100644 index 0000000..b2ffa82 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "5dc5548b-1a4e-4409-956b-047263b0db29", "created_at": "2026-11-15T07:20:10.665511+00:00", "finished_at": "2026-11-15T07:20:10.715155+00:00", "strategy": "route", "team": null, "task_id": "ad578654-e767-48e7-86d7-bb0baafd610e", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 1, "evaluation_count": 1, "producer_decision": "advisory_warn", "artifact": "control-preflight.json", "digest": "sha256:db2bcd89918a8d52463a00f42fb49daeb20234e0c4bbe78ae1b07e5d04987f83", "control_plan": {"artifact": "control-plan.json", "digest": "sha256:056d419ae239c8054b29b4b02eb398eec19d9c9bc7a8efeae500b4c31c60bdd9"}, "enforcement_decision": "block", "block_count": 1}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:b19a0942a18499cbea567a88e6026fde0db409c9e2b9004fcc14cb21c1ad7d91", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/result.json new file mode 100644 index 0000000..8b126e3 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/5dc5548b-1a4e-4409-956b-047263b0db29/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: CONTROL_PLAN_FINDING", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/control-plan.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/control-plan.json new file mode 100644 index 0000000..3b3cddd --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/control-plan.json @@ -0,0 +1 @@ +{"edges":[{"decided_by":"code","from":"start","kind":"always","to":"route"},{"decided_by":"code","from":"route","kind":"success","to":"end"}],"kind":"toolgraph.control-plan","limits":{"maximum_agent_calls":1,"maximum_cycles":0,"maximum_parallelism":1},"nodes":[{"agent_call":false,"id":"start","kind":"start","principals":[]},{"agent_call":true,"id":"route","kind":"agent","max_invocations":1,"max_parallelism":1,"principals":["codex"],"timeout_seconds":300},{"agent_call":false,"id":"end","kind":"end","principals":[]}],"principals":[{"candidate_tools":["workspace::read","workspace::write"],"id":"codex"}],"producer":{"name":"syncmill","version":"0.3.0"},"run_id":"6e5fc801-c065-44c7-8e99-1cd787a7ffc5","schema_version":1} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/control-preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/control-preflight.json new file mode 100644 index 0000000..ceeba66 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/control-preflight.json @@ -0,0 +1,26 @@ +{ + "schema_version": 1, + "kind": "toolgraph.control-preflight", + "run_id": "6e5fc801-c065-44c7-8e99-1cd787a7ffc5", + "created_at": "2026-08-11T00:00:00+00:00", + "mode": "advisory", + "profile": "review", + "plan_digest": "sha256:54fafb232a2a9e607479dd99cbf25d62e167b7bad89fc513153c2658206cda85", + "graph_state": { + "instance_id": "test-instance", + "generation": 42 + }, + "decision": "advisory_allow", + "evaluations": [ + { + "principal": "codex", + "agent_found": true, + "eligible": [ + "workspace::read", + "workspace::write" + ], + "rejected": [] + } + ], + "findings": [] +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/envelope.json new file mode 100644 index 0000000..ae71033 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "6e5fc801-c065-44c7-8e99-1cd787a7ffc5", "created_at": "2026-11-15T07:20:09.233874+00:00", "finished_at": "2026-11-15T07:20:09.694899+00:00", "strategy": "route", "team": null, "task_id": "e64e1ed2-03f4-45f8-9f8e-fdc87ed1a665", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 0, "evaluation_count": 1, "producer_decision": "advisory_allow", "artifact": "control-preflight.json", "digest": "sha256:a94b8e806fb540e05cbaedfbb003685ce79e0f0826967fbf533accf01f36f8e5", "control_plan": {"artifact": "control-plan.json", "digest": "sha256:54fafb232a2a9e607479dd99cbf25d62e167b7bad89fc513153c2658206cda85"}, "enforcement_decision": "allow", "block_count": 0}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/6e5fc801-c065-44c7-8e99-1cd787a7ffc5/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/70067402-b92b-46a7-9b39-c06e6b6af4e4/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/70067402-b92b-46a7-9b39-c06e6b6af4e4/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/70067402-b92b-46a7-9b39-c06e6b6af4e4/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/70067402-b92b-46a7-9b39-c06e6b6af4e4/envelope.json new file mode 100644 index 0000000..5da009b --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/70067402-b92b-46a7-9b39-c06e6b6af4e4/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "70067402-b92b-46a7-9b39-c06e6b6af4e4", "created_at": "2026-11-15T07:20:10.957207+00:00", "finished_at": "2026-11-15T07:20:11.458198+00:00", "strategy": "route", "team": null, "task_id": "564cdb1d-9702-4228-8ac3-e0c5a40c5456", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/70067402-b92b-46a7-9b39-c06e6b6af4e4/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/70067402-b92b-46a7-9b39-c06e6b6af4e4/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/70067402-b92b-46a7-9b39-c06e6b6af4e4/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/envelope.json new file mode 100644 index 0000000..bd0df30 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "73338303-8892-45f9-8680-f5c93c8646ce", "created_at": "2026-11-15T07:20:02.672317+00:00", "finished_at": "2026-11-15T07:20:03.080110+00:00", "strategy": "route", "team": null, "task_id": "7a931208-6aa3-4486-b3f2-d11422f35978", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 1, "block_count": 0, "warning_count": 1, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:7291680c7422a2934237db344c67b012ad634bc29377253be6ca9145d39a3335"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/preflight.json new file mode 100644 index 0000000..c512e6a --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/preflight.json @@ -0,0 +1,31 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:9b6b61a3304cd97383476a656bfbd3c2093b6c1fe615b6b7a8ef154d4b5efe53", + "graph_generation": 42, + "producer_decision": "advisory_warn", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [ + "DRIFTED" + ] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "73338303-8892-45f9-8680-f5c93c8646ce", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/preflight/eval-000.json new file mode 100644 index 0000000..bd97994 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/preflight/eval-000.json @@ -0,0 +1,21 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "73338303-8892-45f9-8680-f5c93c8646ce", + "created_at": "2026-07-12T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [ + { + "candidate": "legacy::old_tool", + "tool_key": "legacy::old_tool", + "reason": "DRIFTED" + } + ], + "features": [], + "decision": "advisory_warn" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/73338303-8892-45f9-8680-f5c93c8646ce/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/7e4e9d46-17e1-4eaf-b14f-fe4929017bf4/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/7e4e9d46-17e1-4eaf-b14f-fe4929017bf4/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/7e4e9d46-17e1-4eaf-b14f-fe4929017bf4/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/7e4e9d46-17e1-4eaf-b14f-fe4929017bf4/envelope.json new file mode 100644 index 0000000..d66548d --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/7e4e9d46-17e1-4eaf-b14f-fe4929017bf4/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "7e4e9d46-17e1-4eaf-b14f-fe4929017bf4", "created_at": "2026-11-15T07:20:08.222044+00:00", "finished_at": "2026-11-15T07:20:08.275097+00:00", "strategy": "route", "team": null, "task_id": "f52c2d0e-f806-4fbd-92c3-f4255b48ea6f", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/7e4e9d46-17e1-4eaf-b14f-fe4929017bf4/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/7e4e9d46-17e1-4eaf-b14f-fe4929017bf4/result.json new file mode 100644 index 0000000..75d3d2e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/7e4e9d46-17e1-4eaf-b14f-fe4929017bf4/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: EVIDENCE_PERSIST_FAILED", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/envelope.json new file mode 100644 index 0000000..cd84910 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "80687ec7-8d3c-402a-a0de-71f0a80bcc0a", "created_at": "2026-11-15T07:19:57.500301+00:00", "finished_at": "2026-11-15T07:19:57.949769+00:00", "strategy": "route", "team": null, "task_id": "b978287a-52ec-49c8-913a-b81d49ad78b4", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "warning_count": 1, "artifact": "preflight.json", "digest": "sha256:7d74b6658dc9c5b3589e360672aacec2e8b584f557c89ed4efeb7b21906cd38d"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/preflight.json new file mode 100644 index 0000000..398d49f --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/preflight.json @@ -0,0 +1,21 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "80687ec7-8d3c-402a-a0de-71f0a80bcc0a", + "created_at": "2026-07-12T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [ + { + "candidate": "legacy::old_tool", + "tool_key": "legacy::old_tool", + "reason": "DRIFTED" + } + ], + "features": [], + "decision": "advisory_warn" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/80687ec7-8d3c-402a-a0de-71f0a80bcc0a/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/control-plan.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/control-plan.json new file mode 100644 index 0000000..676218d --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/control-plan.json @@ -0,0 +1 @@ +{"edges":[{"decided_by":"code","from":"start","kind":"always","to":"route"},{"decided_by":"code","from":"route","kind":"success","to":"end"}],"kind":"toolgraph.control-plan","limits":{"maximum_agent_calls":1,"maximum_cycles":0,"maximum_parallelism":1},"nodes":[{"agent_call":false,"id":"start","kind":"start","principals":[]},{"agent_call":true,"id":"route","kind":"agent","max_invocations":1,"max_parallelism":1,"principals":["codex"],"timeout_seconds":300},{"agent_call":false,"id":"end","kind":"end","principals":[]}],"principals":[{"candidate_tools":["workspace::read","workspace::write"],"id":"codex"}],"producer":{"name":"syncmill","version":"0.3.0"},"run_id":"83351e88-b2c2-47f5-8953-097bd9e12526","schema_version":1} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/control-preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/control-preflight.json new file mode 100644 index 0000000..7a70e50 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/control-preflight.json @@ -0,0 +1,26 @@ +{ + "schema_version": 1, + "kind": "toolgraph.control-preflight", + "run_id": "83351e88-b2c2-47f5-8953-097bd9e12526", + "created_at": "2026-08-11T00:00:00+00:00", + "mode": "advisory", + "profile": "review", + "plan_digest": "sha256:fad6a3bf5018bd5a2210b4edf1841f563414ca320ebd06f580b296a9e97896f1", + "graph_state": { + "instance_id": "test-instance", + "generation": 42 + }, + "decision": "advisory_allow", + "evaluations": [ + { + "principal": "codex", + "agent_found": true, + "eligible": [ + "workspace::read", + "workspace::write" + ], + "rejected": [] + } + ], + "findings": [] +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/envelope.json new file mode 100644 index 0000000..a475238 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "83351e88-b2c2-47f5-8953-097bd9e12526", "created_at": "2026-11-15T07:20:08.523382+00:00", "finished_at": "2026-11-15T07:20:08.977139+00:00", "strategy": "route", "team": null, "task_id": "dcbed9d8-0a12-44d5-b639-1e1b85324456", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 0, "evaluation_count": 1, "producer_decision": "advisory_allow", "artifact": "control-preflight.json", "digest": "sha256:f3f3ad5cfee572149d32526ccf19a29fdb02cff261f87bc908c0dc855f14d6fc", "control_plan": {"artifact": "control-plan.json", "digest": "sha256:fad6a3bf5018bd5a2210b4edf1841f563414ca320ebd06f580b296a9e97896f1"}}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/83351e88-b2c2-47f5-8953-097bd9e12526/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/envelope.json new file mode 100644 index 0000000..d7607e4 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "9787fb8c-6d00-4d29-80ba-1d87aee6e9e7", "created_at": "2026-11-15T07:20:05.470714+00:00", "finished_at": "2026-11-15T07:20:05.878940+00:00", "strategy": "route", "team": null, "task_id": "edd8d98d-f404-4cd9-aeb6-b514316989e2", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 1, "block_count": 0, "warning_count": 1, "artifact": "preflight.json", "digest": "sha256:ecf17ed024f4aea0d50791883869a65d791373ecf52200375318c437245ec139"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/preflight.json new file mode 100644 index 0000000..fdad14e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/preflight.json @@ -0,0 +1,27 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "blocking_reasons": [], + "status": "error", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "warn", + "unknown": "block" + }, + "profile": "review", + "run_id": "9787fb8c-6d00-4d29-80ba-1d87aee6e9e7", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/9787fb8c-6d00-4d29-80ba-1d87aee6e9e7/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/99e88ceb-ec6f-4d0c-b562-be209b65fdb1/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/99e88ceb-ec6f-4d0c-b562-be209b65fdb1/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/99e88ceb-ec6f-4d0c-b562-be209b65fdb1/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/99e88ceb-ec6f-4d0c-b562-be209b65fdb1/envelope.json new file mode 100644 index 0000000..33dcd93 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/99e88ceb-ec6f-4d0c-b562-be209b65fdb1/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "99e88ceb-ec6f-4d0c-b562-be209b65fdb1", "created_at": "2026-11-15T07:20:14.045261+00:00", "finished_at": "2026-11-15T07:20:14.519529+00:00", "strategy": "route", "team": null, "task_id": "25d67be2-1d4a-4ba5-ae9e-84e4aabbac38", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "advisory", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 0, "evaluation_count": 1, "producer_decision": "advisory_allow"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/99e88ceb-ec6f-4d0c-b562-be209b65fdb1/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/99e88ceb-ec6f-4d0c-b562-be209b65fdb1/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/99e88ceb-ec6f-4d0c-b562-be209b65fdb1/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/a17dd99f-17e1-4d09-8d9f-5bde61a55850/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/a17dd99f-17e1-4d09-8d9f-5bde61a55850/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/a17dd99f-17e1-4d09-8d9f-5bde61a55850/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/a17dd99f-17e1-4d09-8d9f-5bde61a55850/envelope.json new file mode 100644 index 0000000..208f085 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/a17dd99f-17e1-4d09-8d9f-5bde61a55850/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "a17dd99f-17e1-4d09-8d9f-5bde61a55850", "created_at": "2026-11-15T07:19:58.932221+00:00", "finished_at": "2026-11-15T07:19:59.378506+00:00", "strategy": "route", "team": null, "task_id": "54e1b3bd-c1d8-4a58-8f7e-812eedf734cd", "agents": ["codex"], "board": null, "preflight": {"status": "unresolved_identity", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/a17dd99f-17e1-4d09-8d9f-5bde61a55850/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/a17dd99f-17e1-4d09-8d9f-5bde61a55850/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/a17dd99f-17e1-4d09-8d9f-5bde61a55850/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/b8402983-7895-459f-95fc-f5832d93dc8b/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/b8402983-7895-459f-95fc-f5832d93dc8b/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/b8402983-7895-459f-95fc-f5832d93dc8b/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/b8402983-7895-459f-95fc-f5832d93dc8b/envelope.json new file mode 100644 index 0000000..252feab --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/b8402983-7895-459f-95fc-f5832d93dc8b/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "b8402983-7895-459f-95fc-f5832d93dc8b", "created_at": "2026-11-15T07:20:12.786190+00:00", "finished_at": "2026-11-15T07:20:13.792183+00:00", "strategy": "route", "team": null, "task_id": "2c97ace0-c121-44d6-a310-a0e926afdb09", "agents": ["codex"], "board": null, "preflight": {"status": "timeout", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 0, "block_count": 1, "warning_count": 0}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/b8402983-7895-459f-95fc-f5832d93dc8b/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/b8402983-7895-459f-95fc-f5832d93dc8b/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/b8402983-7895-459f-95fc-f5832d93dc8b/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/bfc9485f-1911-4544-a3a3-7e0f2aa97a5a/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/bfc9485f-1911-4544-a3a3-7e0f2aa97a5a/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/bfc9485f-1911-4544-a3a3-7e0f2aa97a5a/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/bfc9485f-1911-4544-a3a3-7e0f2aa97a5a/envelope.json new file mode 100644 index 0000000..66797ec --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/bfc9485f-1911-4544-a3a3-7e0f2aa97a5a/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "bfc9485f-1911-4544-a3a3-7e0f2aa97a5a", "created_at": "2026-11-15T07:20:11.708320+00:00", "finished_at": "2026-11-15T07:20:11.762115+00:00", "strategy": "route", "team": null, "task_id": "6e43433c-e912-4632-9839-1f34cc50b9ee", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 0, "block_count": 1, "warning_count": 0}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/bfc9485f-1911-4544-a3a3-7e0f2aa97a5a/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/bfc9485f-1911-4544-a3a3-7e0f2aa97a5a/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/bfc9485f-1911-4544-a3a3-7e0f2aa97a5a/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/c0cfdad5-94ce-479d-b858-fd8f4d67cf8f/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/c0cfdad5-94ce-479d-b858-fd8f4d67cf8f/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/c0cfdad5-94ce-479d-b858-fd8f4d67cf8f/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/c0cfdad5-94ce-479d-b858-fd8f4d67cf8f/envelope.json new file mode 100644 index 0000000..fa739f6 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/c0cfdad5-94ce-479d-b858-fd8f4d67cf8f/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "c0cfdad5-94ce-479d-b858-fd8f4d67cf8f", "created_at": "2026-11-15T07:19:59.652534+00:00", "finished_at": "2026-11-15T07:20:00.097388+00:00", "strategy": "route", "team": null, "task_id": "c26fddee-2cca-4472-9338-18b356929060", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/c0cfdad5-94ce-479d-b858-fd8f4d67cf8f/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/c0cfdad5-94ce-479d-b858-fd8f4d67cf8f/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/c0cfdad5-94ce-479d-b858-fd8f4d67cf8f/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/envelope.json new file mode 100644 index 0000000..d96a291 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "cf9757a2-3890-49e4-97e5-2af046b0b182", "created_at": "2026-11-15T07:20:03.623709+00:00", "finished_at": "2026-11-15T07:20:04.636589+00:00", "strategy": "route", "team": null, "task_id": "95bcf006-d8c8-49b3-b084-3a548eff70ef", "agents": ["codex"], "board": null, "preflight": {"status": "timeout", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "artifact": "preflight.json", "digest": "sha256:98f391a1d1cd28fe290069dbdd9cc43f98ec17678882e4170f9021e2dbe2a075"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f998b2ddfdf81c3b9d292c225060b39eb57e050fa398d87a5d99c1862399012", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/preflight.json new file mode 100644 index 0000000..869cd94 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "decision": "block", + "evaluations": [ + { + "blocking_reasons": [ + "TOOLGRAPH_UNAVAILABLE" + ], + "status": "timeout", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "cf9757a2-3890-49e4-97e5-2af046b0b182", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/result.json new file mode 100644 index 0000000..ae4e481 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/cf9757a2-3890-49e4-97e5-2af046b0b182/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOLGRAPH_UNAVAILABLE", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/d8191809-6217-4a1b-8f01-fa4117cdb266/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/d8191809-6217-4a1b-8f01-fa4117cdb266/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/d8191809-6217-4a1b-8f01-fa4117cdb266/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/d8191809-6217-4a1b-8f01-fa4117cdb266/envelope.json new file mode 100644 index 0000000..e863b43 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/d8191809-6217-4a1b-8f01-fa4117cdb266/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "d8191809-6217-4a1b-8f01-fa4117cdb266", "created_at": "2026-11-15T07:20:12.015069+00:00", "finished_at": "2026-11-15T07:20:12.510677+00:00", "strategy": "route", "team": null, "task_id": "8f819ebe-4797-48fa-b099-31f48140fecd", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "enforcement_decision": "allow", "evaluation_count": 0, "block_count": 0, "warning_count": 1}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/d8191809-6217-4a1b-8f01-fa4117cdb266/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/d8191809-6217-4a1b-8f01-fa4117cdb266/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/d8191809-6217-4a1b-8f01-fa4117cdb266/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/control-plan.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/control-plan.json new file mode 100644 index 0000000..d242caf --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/control-plan.json @@ -0,0 +1 @@ +{"edges":[{"decided_by":"code","from":"start","kind":"always","to":"route"},{"decided_by":"code","from":"route","kind":"success","to":"end"}],"kind":"toolgraph.control-plan","limits":{"maximum_agent_calls":1,"maximum_cycles":0,"maximum_parallelism":1},"nodes":[{"agent_call":false,"id":"start","kind":"start","principals":[]},{"agent_call":true,"id":"route","kind":"agent","max_invocations":1,"max_parallelism":1,"principals":["codex"],"timeout_seconds":300},{"agent_call":false,"id":"end","kind":"end","principals":[]}],"principals":[{"candidate_tools":["workspace::read","workspace::write"],"id":"codex"}],"producer":{"name":"syncmill","version":"0.3.0"},"run_id":"db191781-f4b4-4119-8419-5cf785b62403","schema_version":1} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/control-preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/control-preflight.json new file mode 100644 index 0000000..39c0f59 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/control-preflight.json @@ -0,0 +1,31 @@ +{ + "schema_version": 1, + "kind": "toolgraph.control-preflight", + "run_id": "db191781-f4b4-4119-8419-5cf785b62403", + "created_at": "2026-08-11T00:00:00+00:00", + "mode": "advisory", + "profile": "review", + "plan_digest": "sha256:fc77d471b6891c640d732500c9287b55472697ae400602f11e5385d3667c1225", + "graph_state": { + "instance_id": "test-instance", + "generation": 42 + }, + "decision": "advisory_warn", + "evaluations": [ + { + "principal": "codex", + "agent_found": true, + "eligible": [ + "workspace::read", + "workspace::write" + ], + "rejected": [] + } + ], + "findings": [ + { + "code": "UNREACHABLE_NODE", + "node": "verify" + } + ] +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/envelope.json new file mode 100644 index 0000000..e6093af --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "db191781-f4b4-4119-8419-5cf785b62403", "created_at": "2026-11-15T07:20:09.952873+00:00", "finished_at": "2026-11-15T07:20:10.410244+00:00", "strategy": "route", "team": null, "task_id": "0c878ecb-60a9-4119-9c0d-6c99f093a090", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "advisory", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 2, "evaluation_count": 1, "producer_decision": "advisory_warn", "artifact": "control-preflight.json", "digest": "sha256:ad2a2962de4431ff59d66933e1fd2d46d597908bf021b01ab1f6afba2623d3ae", "control_plan": {"artifact": "control-plan.json", "digest": "sha256:fc77d471b6891c640d732500c9287b55472697ae400602f11e5385d3667c1225"}}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/db191781-f4b4-4119-8419-5cf785b62403/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a/envelope.json new file mode 100644 index 0000000..f2db5c5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a", "created_at": "2026-11-15T07:20:00.364623+00:00", "finished_at": "2026-11-15T07:20:01.770108+00:00", "strategy": "route", "team": null, "task_id": "96402f9c-95fc-4010-a412-6f05780f9c1c", "agents": ["codex"], "board": null, "preflight": {"status": "timeout", "mode": "advisory", "profile": "review"}, "trace": {"status": "disabled"}, "result": {"status": "completed", "agent_id": "codex", "winner": "codex", "exit_code": 0, "duration_seconds": 0.02, "gate_passed": null, "files_changed_count": 1, "artifact": "result.json", "digest": "sha256:ed6406ef70e8e2654213147460991afa8be83eefc62ff0ca2febbcbcf3baaed7", "patch_digest": "sha256:35dc711418e60edc7974186bd853c7ab08db843f16e43066417b07a53d8566ba"}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a/result.json new file mode 100644 index 0000000..39965f5 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/e1b685eb-3c5b-4f75-8e36-a05ff89e5e4a/result.json @@ -0,0 +1 @@ +{"status": "completed", "agent_id": "codex", "output": "codex (fake) fix.", "exit_code": 0, "duration_seconds": 0.02, "files_changed": ["calc.py"], "error": null, "gate_summary": null, "gate_passed": null, "patch": "diff --git a/calc.py b/calc.py\nindex 12ee743..4693ad3 100644\n--- a/calc.py\n+++ b/calc.py\n@@ -1,2 +1,2 @@\n def add(a, b):\n- return a - b\n+ return a + b\n"} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/envelope.json new file mode 100644 index 0000000..70f4d1c --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "ed5ab0dd-c613-4b66-93c0-5aa0fd576d71", "created_at": "2026-11-15T07:20:15.089191+00:00", "finished_at": "2026-11-15T07:20:15.089191+00:00", "strategy": "route", "team": null, "task_id": "332266dd-0284-49c7-a0f1-ae0a632b51b2", "agents": ["codex"], "board": null, "preflight": {"status": "disabled"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": null, "winner": null, "exit_code": null, "duration_seconds": null, "gate_passed": null, "files_changed_count": null, "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/preflight.json new file mode 100644 index 0000000..2d985e9 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/preflight.json @@ -0,0 +1,29 @@ +{ + "block_reasons": [], + "decision": "allow", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [], + "digest": "sha256:9e1da26a2c0b6c6af3b39b41e4c05586068b55cd5d17549aa8fc4ddca47d034c", + "graph_generation": 42, + "producer_decision": "advisory_allow", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "ed5ab0dd-c613-4b66-93c0-5aa0fd576d71", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/preflight/eval-000.json new file mode 100644 index 0000000..02b3294 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/ed5ab0dd-c613-4b66-93c0-5aa0fd576d71/preflight/eval-000.json @@ -0,0 +1,18 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "ed5ab0dd-c613-4b66-93c0-5aa0fd576d71", + "created_at": "2026-07-11T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [ + "memtomem::mem_search", + "syncmill::shared_read" + ], + "rejected": [], + "features": [], + "decision": "advisory_allow" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/envelope.json new file mode 100644 index 0000000..c31c255 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "f571e545-f754-4a85-be59-97a5c78ba20e", "created_at": "2026-11-15T07:20:03.329574+00:00", "finished_at": "2026-11-15T07:20:03.384743+00:00", "strategy": "route", "team": null, "task_id": "f2796dae-ae95-4900-92d7-a6d77345a536", "agents": ["codex"], "board": null, "preflight": {"status": "ok", "mode": "strict", "profile": "review", "enforcement_decision": "block", "evaluation_count": 1, "block_count": 1, "warning_count": 0, "graph_generation": 42, "artifact": "preflight.json", "digest": "sha256:581e3bad18d0d41e03cca3a6029291abdbb98e3d5e130988db14de3480dff223"}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:3f5ee2d1143d77bc76b4eeef3a53c8cd9dda4c465901ac42c76fa24e3c9a69a0", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/preflight.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/preflight.json new file mode 100644 index 0000000..7a5b41e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/preflight.json @@ -0,0 +1,33 @@ +{ + "block_reasons": [ + "TOOL_NOT_FOUND" + ], + "decision": "block", + "evaluations": [ + { + "artifact": "preflight/eval-000.json", + "blocking_reasons": [ + "TOOL_NOT_FOUND" + ], + "digest": "sha256:000787b90c54d442fdc872c61986acd49f7942032742b775e095df5d208e3dca", + "graph_generation": 42, + "producer_decision": "advisory_warn", + "status": "ok", + "syncmill_agents": [ + "codex" + ], + "toolgraph_agent": "codex", + "warning_reasons": [] + } + ], + "kind": "syncmill.toolgraph-enforcement", + "mode": "strict", + "policies": { + "drift": "warn", + "unavailable": "block", + "unknown": "block" + }, + "profile": "review", + "run_id": "f571e545-f754-4a85-be59-97a5c78ba20e", + "schema_version": 1 +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/preflight/eval-000.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/preflight/eval-000.json new file mode 100644 index 0000000..80b71d4 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/preflight/eval-000.json @@ -0,0 +1,21 @@ +{ + "schema_version": 1, + "kind": "toolgraph.preflight", + "run_id": "f571e545-f754-4a85-be59-97a5c78ba20e", + "created_at": "2026-07-12T00:00:00+00:00", + "graph_generation": 42, + "agent": "codex", + "agent_found": true, + "profile": "review", + "mode": "advisory", + "eligible": [], + "rejected": [ + { + "candidate": "legacy::missing", + "tool_key": null, + "reason": "TOOL_NOT_FOUND" + } + ], + "features": [], + "decision": "advisory_warn" +} diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/result.json new file mode 100644 index 0000000..c3e9508 --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f571e545-f754-4a85-be59-97a5c78ba20e/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: TOOL_NOT_FOUND", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f6960c9f-e604-4496-96ac-7a2561544b11/.syncmill-run-dir b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f6960c9f-e604-4496-96ac-7a2561544b11/.syncmill-run-dir new file mode 100644 index 0000000..e69de29 diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f6960c9f-e604-4496-96ac-7a2561544b11/envelope.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f6960c9f-e604-4496-96ac-7a2561544b11/envelope.json new file mode 100644 index 0000000..55dfb7b --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f6960c9f-e604-4496-96ac-7a2561544b11/envelope.json @@ -0,0 +1 @@ +{"schema_version": 1, "kind": "syncmill.run-envelope", "run_id": "f6960c9f-e604-4496-96ac-7a2561544b11", "created_at": "2026-11-15T07:20:14.781504+00:00", "finished_at": "2026-11-15T07:20:14.836848+00:00", "strategy": "route", "team": null, "task_id": "3aea6e1f-b850-4216-b7f1-4c7b69450e99", "agents": ["codex"], "board": null, "preflight": {"status": "error", "mode": "strict", "profile": "review", "graph_generation": 42, "graph_state": {"instance_id": "test-instance", "generation": 42}, "warning_count": 0, "evaluation_count": 1, "producer_decision": "advisory_allow", "enforcement_decision": "block", "block_count": 1}, "trace": {"status": "disabled"}, "result": {"status": "failed", "agent_id": "preflight", "winner": null, "exit_code": 1, "duration_seconds": 0.0, "gate_passed": null, "files_changed_count": 0, "artifact": "result.json", "digest": "sha256:93bfe4b63f3a7e81b509c600240c151991813a63e453c25d8d3c9fcdc7f4ee48", "patch_digest": null}, "degraded": []} \ No newline at end of file diff --git a/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f6960c9f-e604-4496-96ac-7a2561544b11/result.json b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f6960c9f-e604-4496-96ac-7a2561544b11/result.json new file mode 100644 index 0000000..75d3d2e --- /dev/null +++ b/tests/fixtures/persisted/envelope/v0.3.0/preflight/runs/f6960c9f-e604-4496-96ac-7a2561544b11/result.json @@ -0,0 +1 @@ +{"status": "failed", "agent_id": "preflight", "output": "", "exit_code": 1, "duration_seconds": 0.0, "files_changed": [], "error": "strict toolgraph preflight blocked execution: EVIDENCE_PERSIST_FAILED", "gate_summary": null, "gate_passed": null, "patch": null} \ No newline at end of file diff --git a/tests/test_frozen_preflight_envelope.py b/tests/test_frozen_preflight_envelope.py new file mode 100644 index 0000000..fc19d73 --- /dev/null +++ b/tests/test_frozen_preflight_envelope.py @@ -0,0 +1,630 @@ +"""Released run-report directories with a preflight block, read by HEAD (#271). + +The second part of the Run envelope family. `tests/fixtures/persisted/envelope/ +/preflight/` is its own reports root: run directories that v0.1.2, +v0.2.0 and v0.3.0 wrote through their own `syncmill run` with report recording +and toolgraph preflight on, against a fake `toolgraph` that answers with the +release's vendored goldens (see `freeze.py --part preflight`). `index.json` +there holds the release's own `report list` / `report show` output. + +HEAD reads these bytes in few places: the schema (most of the value here — the +`ok` branch, the strict `allOf`, `graphState` / `controlPlanArtifact`, and the +no-artifact error shapes), `load_envelope`, the one `Preflight:` line of +`report show` (also behind the TUI Reports tab and the dashboard REPORT pane), +`report list` membership, and retention, which must remove a run dir whole, +nested `preflight/` directory included. No HEAD code reads `preflight.json`, +`preflight/eval-*.json` or the control files back; the checks on them are +fixture integrity and are labelled so. + +Expected values come from the raw JSON, the release's own output, or the +measurements written below — never from `render_report`, `_is_run_dir` or +`run_preflight`. +""" + +from __future__ import annotations + +import asyncio +import hashlib +import json +import os +import shutil +from pathlib import Path + +import jsonschema +import pytest +from click.testing import CliRunner +from textual.widgets import OptionList + +from syncmill.board import Board +from syncmill.cli import cli +from syncmill.config import ReportConfig, SyncmillConfig +from syncmill.dashboard import DashboardApp +from syncmill.report import RUN_DIR_SENTINEL, RunReporter, load_envelope +from syncmill.tui import SyncmillTuiApp + +REPO = Path(__file__).resolve().parent.parent +FIXTURES = REPO / "tests" / "fixtures" / "persisted" / "envelope" +HEAD_SCHEMA = REPO / "contracts" / "run-envelope.schema.json" +HEAD_GOLDENS = REPO / "tests" / "fixtures" / "toolgraph" +#: Every release frozen here, from the directories on disk. +RELEASES = tuple(sorted(p.parent.parent.name for p in FIXTURES.glob("v*/preflight/index.json"))) + +ANY = object() # present; what it binds to is checked separately + + +def _block(status: str, mode: str, **fields: object) -> dict: + return {"status": status, "mode": mode, "profile": "review", **fields} + + +def _ok(**fields: object) -> dict: + return _block("ok", "advisory", graph_generation=42, artifact="preflight.json", + digest=ANY, **fields) + + +def _strict(status: str, decision: str, evaluations: int, blocks: int, warnings: int, + **fields: object) -> dict: + return _block(status, "strict", enforcement_decision=decision, + evaluation_count=evaluations, block_count=blocks, + warning_count=warnings, **fields) + + +def _aggregate(**fields: object) -> dict: + return {"artifact": "preflight.json", "digest": ANY, **fields} + + +GRAPH_STATE = {"generation": 42, "instance_id": "test-instance"} + + +def _control(mode: str, producer: str, warnings: int, *, persisted: bool = True, + **fields: object) -> dict: + block = _block("ok" if persisted else "error", mode, graph_generation=42, + graph_state=GRAPH_STATE, warning_count=warnings, evaluation_count=1, + producer_decision=producer, **fields) + if persisted: + block.update(artifact="control-preflight.json", digest=ANY, + control_plan={"artifact": "control-plan.json", "digest": ANY}) + return block + + +EVAL0, EVAL1 = "preflight/eval-000.json", "preflight/eval-001.json" +CONTROL_FILES = {"control-plan.json", "control-preflight.json"} + + +def _expected(release: str) -> dict[str, tuple[dict, set[str], bool]]: + """scenario -> (envelope preflight block, preflight files in the run dir, + blocked), as measured on the release CLIs (#271 part 2 plan). A blocked run + is FAILED with agent `preflight` and exit code 1.""" + v012 = release == "v0.1.2" + rows = { + "advisory-allow": (_ok(warning_count=0), {"preflight.json"}, False), + "advisory-drift": (_ok(warning_count=1), {"preflight.json"}, False), + "advisory-unresolved": ( + _block("unresolved_identity", "advisory", graph_generation=42, warning_count=0, + artifact="preflight.json", digest=ANY), {"preflight.json"}, False), + "advisory-unmapped": (_block("unresolved_identity", "advisory"), set(), False), + "advisory-error": (_block("error", "advisory"), set(), False), + "advisory-timeout": (_block("timeout", "advisory"), set(), False), + "strict-allow": (_strict("ok", "allow", 1, 0, 0, graph_generation=42, **_aggregate()), + {"preflight.json", EVAL0}, False), + "strict-warn": (_strict("ok", "allow", 1, 0, 1, graph_generation=42, **_aggregate()), + {"preflight.json", EVAL0}, False), + "strict-block": (_strict("ok", "block", 1, 1, 0, graph_generation=42, **_aggregate()), + {"preflight.json", EVAL0}, True), + "strict-timeout": (_strict("timeout", "block", 1, 1, 0, **_aggregate()), + {"preflight.json"}, True), + "strict-unresolved": ( + _strict("unresolved_identity", "block", 1, 1, 0, graph_generation=42, + **_aggregate()), {"preflight.json", EVAL0}, True), + "strict-unavailable": (_strict("error", "block", 1, 1, 0, **_aggregate()), + {"preflight.json"}, True), + "strict-unavailable-warn": (_strict("error", "allow", 1, 0, 1, **_aggregate()), + {"preflight.json"}, False), + "strict-multi-allow": ( + _strict("ok", "allow", 2, 0, 0, graph_generation=42, **_aggregate()), + {"preflight.json", EVAL0, EVAL1}, False), + "strict-multi-mixed": ( + _strict("error", "block", 2, 1, 0, graph_generation=42, **_aggregate()), + {"preflight.json", EVAL0}, True), + "strict-gen-mismatch": (_strict("error", "block", 2, 1, 0, **_aggregate()), + {"preflight.json", EVAL0, EVAL1}, True), + "strict-unmapped": (_strict("unresolved_identity", "block", 1, 1, 0, **_aggregate()), + {"preflight.json"}, True), + # v0.1.2 wrote eval files first and the aggregate last, cleaning up + # nothing; v0.2.0+ strips references to eval files it could not write + # and removes what it wrote when the aggregate fails. + "strict-persist-eval": ( + _strict("error", "block", 1, 1, 0, graph_generation=42) if v012 else + _strict("error", "block", 1, 1, 0, graph_generation=42, **_aggregate()), + set() if v012 else {"preflight.json"}, True), + "strict-persist-aggregate": ( + _strict("error", "block", 1, 1, 0, graph_generation=42), + {EVAL0} if v012 else set(), True), + "killed-after-preflight": ({"status": "disabled"}, {"preflight.json", EVAL0}, False), + } + if not v012: # control-plan preflight exists from v0.2.0 + rows |= { + "control-allow": (_control("advisory", "advisory_allow", 0), CONTROL_FILES, False), + "control-strict-allow": ( + _control("strict", "advisory_allow", 0, enforcement_decision="allow", + block_count=0), CONTROL_FILES, False), + "control-finding": (_control("advisory", "advisory_warn", 2), CONTROL_FILES, False), + "control-strict-finding": ( + _control("strict", "advisory_warn", 1, enforcement_decision="block", + block_count=1), CONTROL_FILES, True), + "control-error": (_block("error", "advisory"), set(), False), + "control-strict-error": (_strict("error", "block", 0, 1, 0), set(), True), + "control-strict-error-warn": (_strict("error", "allow", 0, 0, 1), set(), False), + "control-strict-timeout": (_strict("timeout", "block", 0, 1, 0), set(), True), + "control-persist": (_control("advisory", "advisory_allow", 0, persisted=False), + set(), False), + "control-strict-persist": ( + _control("strict", "advisory_allow", 0, persisted=False, + enforcement_decision="block", block_count=1), set(), True), + } + return rows + + +def _aggregates(release: str) -> dict[str, tuple[str, list[str], list[tuple]]]: + """scenario -> the strict aggregate (`preflight.json`, kind + `syncmill.toolgraph-enforcement`) the release wrote: decision, block + reasons, and per evaluation (syncmill agents, toolgraph identity, status, + whether it references an eval file). Scenarios not listed wrote none.""" + codex_ok = (["codex"], "codex", "ok", True) + kimi_ok = (["kimi-code"], "kimi", "ok", True) + rows = { + "strict-allow": ("allow", [], [codex_ok]), + "strict-warn": ("allow", [], [codex_ok]), + "strict-block": ("block", ["TOOL_NOT_FOUND"], [codex_ok]), + "strict-timeout": ("block", ["TOOLGRAPH_UNAVAILABLE"], + [(["codex"], "codex", "timeout", False)]), + "strict-unresolved": ("block", ["AGENT_NOT_FOUND"], + [(["codex"], "kimi-code", "unresolved_identity", True)]), + "strict-unavailable": ("block", ["TOOLGRAPH_UNAVAILABLE"], + [(["codex"], "codex", "error", False)]), + "strict-unavailable-warn": ("allow", [], [(["codex"], "codex", "error", False)]), + "strict-multi-allow": ("allow", [], [codex_ok, kimi_ok]), + "strict-multi-mixed": ("block", ["TOOLGRAPH_UNAVAILABLE"], + [codex_ok, (["kimi-code"], "kimi", "error", False)]), + "strict-gen-mismatch": ("block", ["GRAPH_GENERATION_MISMATCH"], [codex_ok, kimi_ok]), + "strict-unmapped": ("block", ["AGENT_MAPPING_MISSING"], + [(["codex"], None, "unresolved_identity", False)]), + "killed-after-preflight": ("allow", [], [codex_ok]), + } + if release != "v0.1.2": # the reference to the eval file it could not write is dropped + rows["strict-persist-eval"] = ("block", ["EVIDENCE_PERSIST_FAILED"], + [(["codex"], "codex", "ok", False)]) + return rows + + +#: Producer replies that are not a golden's bytes (freeze.py says why). Not +#: strict-multi-mixed: its second identity's call fails, so no reply exists. +SYNTHETIC = {"strict-multi-allow", "strict-gen-mismatch", + "control-finding", "control-strict-finding"} +#: Scenarios reached through a write the release's own writer was made to fail. +INJECTED = {"strict-persist-eval": "eval-000.json", "strict-persist-aggregate": "preflight.json", + "control-persist": "control-preflight.json", + "control-strict-persist": "control-preflight.json"} + + +def _index(release: str) -> dict: + return json.loads((FIXTURES / release / "preflight" / "index.json").read_text()) + + +def _scenarios(release: str) -> list[str]: + return sorted(_index(release)["scenarios"]) + + +CASES = [(r, s) for r in RELEASES for s in _scenarios(r)] + + +def _base(scenario: str) -> str: + """`advisory-allow-N` runs exist only to tell created_at from name order.""" + head, _, tail = scenario.rpartition("-") + return head if head == "advisory-allow" and tail.isdigit() else scenario + + +def _run_id(release: str, scenario: str) -> str: + return _index(release)["scenarios"][scenario]["run_id"] + + +def _run_dir(release: str, scenario: str) -> Path: + return FIXTURES / release / "preflight" / "runs" / _run_id(release, scenario) + + +def _doc(release: str, scenario: str) -> dict: + return json.loads((_run_dir(release, scenario) / "envelope.json").read_bytes()) + + +def _sha(data: bytes) -> str: + return "sha256:" + hashlib.sha256(data).hexdigest() + + +def _git_blob(data: bytes) -> str: + return hashlib.sha1(b"blob %d\0" % len(data) + data).hexdigest() + + +def _matches(got: object, want: object) -> bool: + if want is ANY: + return True + if isinstance(want, dict): + return (isinstance(got, dict) and set(got) == set(want) + and all(_matches(got[k], v) for k, v in want.items())) + return got == want + + +def _preflight_files(run_dir: Path) -> set[str]: + owned = {"envelope.json", "result.json", RUN_DIR_SENTINEL} + return {str(p.relative_to(run_dir)) for p in run_dir.rglob("*") + if p.is_file() and str(p.relative_to(run_dir)) not in owned} + + +def _copy_runs(root: Path, *releases: str) -> Path: + root.mkdir(parents=True, exist_ok=True) + for release in releases: + for run_dir in (FIXTURES / release / "preflight" / "runs").iterdir(): + shutil.copytree(run_dir, root / run_dir.name) + return root + + +@pytest.fixture +def report_root(tmp_path, monkeypatch): + def make(*releases: str) -> Path: + root = _copy_runs(tmp_path / "reports", *releases) + monkeypatch.setenv("SYNCMILL_INTEGRATION__REPORT__RUNS_DIR", str(root)) + return root + return make + + +# ── the fixtures are what the releases wrote ────────────────────────────── + + +def test_the_frozen_releases_are_all_present(): + assert {"v0.1.2", "v0.2.0", "v0.3.0"} <= set(RELEASES) + + +@pytest.mark.parametrize("release", RELEASES) +def test_every_release_froze_every_preflight_scenario(release): + index = _index(release) + assert index["release"] == release.lstrip("v") + names = set(index["scenarios"]) + assert set(_expected(release)) <= names + assert {_base(n) for n in names} == set(_expected(release)) + ids = [entry["run_id"] for entry in index["scenarios"].values()] + assert sorted(ids) == sorted(p.name for p in (FIXTURES / release / "preflight" / "runs").iterdir()) + for scenario in names: + has = (_run_dir(release, scenario) / RUN_DIR_SENTINEL).exists() + assert has is (release != "v0.1.2"), scenario + # The fake read the release's goldens, which are HEAD's vendored bytes. + goldens = index["goldens"] + control = {"control-preflight-v1.json", "control-preflight.schema.json"} + assert (control <= set(goldens)) is (release != "v0.1.2") + for name, blob in goldens.items(): + assert _git_blob((HEAD_GOLDENS / name).read_bytes()) == blob, name + # Which replies are synthetic and which writes were made to fail, by name. + present = set(_expected(release)) + assert {n for n, e in index["scenarios"].items() if "synthetic" in e} == SYNTHETIC & present + injected = {n: e["injected_write_failure"]["destination"] + for n, e in index["scenarios"].items() if "injected_write_failure" in e} + assert injected == {n: d for n, d in INJECTED.items() if n in present} + + +@pytest.mark.parametrize(("release", "scenario"), CASES) +def test_the_preflight_block_and_files_are_what_the_release_wrote(release, scenario): + """Fixture integrity, not reader coverage: no HEAD reader opens these files. + The exact key set keeps a fixture that lost a field from passing the schema + test by omission.""" + block, files, blocked = _expected(release)[_base(scenario)] + doc = _doc(release, scenario) + preflight = doc["preflight"] + assert _matches(preflight, block), preflight + run_dir = _run_dir(release, scenario) + assert _preflight_files(run_dir) == files + result = doc["result"] + if blocked: + assert (result["status"], result["agent_id"], result["exit_code"]) == ( + "failed", "preflight", 1) + assert result["duration_seconds"] == 0.0 + elif scenario == "killed-after-preflight": + assert (result["status"], result["agent_id"]) == ("failed", None) + else: + assert (result["status"], result["agent_id"]) == ("completed", "codex") + if "artifact" in preflight: + assert preflight["digest"] == _sha((run_dir / preflight["artifact"]).read_bytes()) + if "control_plan" in preflight: + plan = (run_dir / "control-plan.json").read_bytes() + assert preflight["control_plan"]["digest"] == _sha(plan) + stored = json.loads((run_dir / "control-preflight.json").read_bytes()) + assert stored["plan_digest"] == _sha(plan) + aggregate = run_dir / "preflight.json" + expected_aggregate = _aggregates(release).get(_base(scenario)) + # Chosen by scenario, not by the envelope: the killed run's skeleton says + # `disabled` beside a real aggregate. + is_aggregate = aggregate.exists() and json.loads(aggregate.read_bytes()).get( + "kind") == "syncmill.toolgraph-enforcement" + assert is_aggregate is (expected_aggregate is not None) + if expected_aggregate is not None: + decision, reasons, rows = expected_aggregate + manifest = json.loads(aggregate.read_bytes()) + assert (manifest["decision"], manifest["block_reasons"]) == (decision, reasons) + assert [(r["syncmill_agents"], r["toolgraph_agent"], r["status"], "artifact" in r) + for r in manifest["evaluations"]] == rows + if "enforcement_decision" in preflight: + assert preflight["enforcement_decision"] == decision + assert preflight["evaluation_count"] == len(rows) + referenced = set() + for row in manifest["evaluations"]: + assert ("artifact" in row) is ("digest" in row), row + if "artifact" in row: + referenced.add(row["artifact"]) + stored = (run_dir / row["artifact"]).read_bytes() + assert row["digest"] == _sha(stored) + # The reference is bound to its content, not to its position: + # the producer reply it names is this row's identity's, for this run. + reply = json.loads(stored) + assert reply["agent"] == row["toolgraph_agent"], row + assert reply["run_id"] == doc["run_id"] == manifest["run_id"] + assert reply["decision"] == row["producer_decision"] + assert reply["graph_generation"] == row["graph_generation"] + # Every eval file on disk is referenced, and nothing referenced is absent. + assert referenced == {f for f in files if f.startswith("preflight/")} + + +def test_the_released_writers_disagree_on_a_failed_write(): + """The two persistence-failure shapes are why both writers are frozen.""" + old = _expected("v0.1.2") + new = _expected("v0.3.0") + for scenario in ("strict-persist-eval", "strict-persist-aggregate"): + assert old[scenario][1] != new[scenario][1] + for release in RELEASES: + assert _preflight_files(_run_dir(release, scenario)) == _expected(release)[scenario][1] + + +# ── the schema ───────────────────────────────────────────────────────────── + + +@pytest.mark.parametrize(("release", "scenario"), CASES) +def test_head_schema_accepts_the_released_preflight_envelope(release, scenario): + doc = _doc(release, scenario) + checker = jsonschema.FormatChecker() + jsonschema.Draft202012Validator( + json.loads(HEAD_SCHEMA.read_text()), format_checker=checker + ).validate(doc) + # The release's own schema, frozen by part 1: the fixture is what it meant. + own = json.loads((FIXTURES / release / "run-envelope.schema.json").read_text()) + jsonschema.Draft202012Validator(own, format_checker=checker).validate(doc) + + +# ── load_envelope / report show / report list ───────────────────────────── + + +@pytest.mark.parametrize(("release", "scenario"), CASES) +def test_load_envelope_returns_the_stored_document(release, scenario, tmp_path): + raw = json.loads((_run_dir(release, scenario) / "envelope.json").read_bytes()) + root = _copy_runs(tmp_path / "reports", release) + assert load_envelope(root, _run_id(release, scenario)) == raw + + +def _show_lines(doc: dict) -> list[str]: + """`report show` from the raw values (no control characters in the fixtures).""" + result, trace = doc["result"], doc["trace"] + board = doc["board"] + return [ + f"Run: {doc['run_id']}", + f"Created: {doc['created_at']}", + f"Finished: {doc['finished_at']}", + f"Strategy: {doc['strategy']}", + f"Team: {doc['team'] or '—'}", + f"Task: {doc['task_id']}", + f"Agents: {', '.join(doc['agents']) or '—'}", + f"Board: {board['item_id']} (goal: {board['goal']})" if board else "Board: —", + f"Result: {result['status']}" + + (f" ({result['agent_id']})" if result["agent_id"] else ""), + f" winner: {result['winner'] or '—'}", + f" exit code: {result['exit_code']}", + f" duration: {result['duration_seconds']}s", + f" gate passed: {result['gate_passed']}", + f" files changed: {result['files_changed_count']}", + f" artifact: {result.get('artifact') or '—'}", + f" digest: {result.get('digest') or '—'}", + f" patch digest: {result['patch_digest'] or '—'}", + f"Preflight: {doc['preflight']['status']}", + f"Trace: {trace['status']}", + f"Degraded: {', '.join(doc['degraded']) or '—'}", + ] + + +def _field(stdout: str, label: str) -> str: + matches = [line for line in stdout.splitlines() if line.strip().startswith(label)] + assert len(matches) == 1, (label, matches) + return matches[0].strip()[len(label):].strip() + + +@pytest.mark.parametrize(("release", "scenario"), CASES) +def test_report_show_renders_the_released_preflight_envelope(release, scenario, report_root): + report_root(release) + done = CliRunner().invoke(cli, ["report", "show", _run_id(release, scenario)]) + assert done.exit_code == 0, done.output + release_show = _index(release)["scenarios"][scenario]["report_show"] + assert release_show["returncode"] == 0 + assert done.stdout == release_show["stdout"] + assert done.stdout.splitlines() == _show_lines(_doc(release, scenario)) + block, _, blocked = _expected(release)[_base(scenario)] + assert _field(done.stdout, "Preflight:") == block["status"] + if blocked: + assert _field(done.stdout, "Result:") == "failed (preflight)" + assert _field(done.stdout, "exit code:") == "1" + assert _field(done.stdout, "duration:") == "0.0s" + # Observed, not a contract: a strict run that enforcement blocked still shows + # the producer's `ok`; only the Result line tells it was blocked. + if block.get("enforcement_decision") == "block" and block["status"] == "ok": + assert _field(done.stdout, "Preflight:") == "ok" + + +def _newest_first(*releases: str) -> list[dict]: + docs = [_doc(r, s) for r in releases for s in _scenarios(r)] + return sorted(docs, key=lambda d: d["created_at"], reverse=True) + + +def _list_row(doc: dict) -> str: + r = doc["result"] + return (f" {doc['run_id']} {doc['created_at']} {doc['strategy']} " + f"{r['status']} {r['agent_id'] or '—'}") + + +@pytest.mark.parametrize("release", RELEASES) +def test_report_list_matches_the_release_listing(release, report_root): + report_root(release) + done = CliRunner().invoke(cli, ["report", "list"]) + assert done.exit_code == 0, done.output + assert done.stdout == _index(release)["report_list"] + rows = [line for line in done.stdout.splitlines() if line.startswith(" ")] + assert rows == [_list_row(d) for d in _newest_first(release)] + names = sorted(d["run_id"] for d in _newest_first(release)) + assert [d["run_id"] for d in _newest_first(release)] not in (names, names[::-1]) + + +# ── the TUI Reports tab and the dashboard REPORT pane ───────────────────── + + +def _shown(screen, selector: str) -> str: + return str(screen.query_one(selector).render()) + + +async def _settle(pilot, ready, *, tries: int = 200) -> None: + for _ in range(tries): + await pilot.pause(0) + if ready(): + return + raise AssertionError("the UI never reached the expected state") + + +def _prompts(options: OptionList) -> list[str]: + return [str(options.get_option_at_index(i).prompt) for i in range(options.option_count)] + + +#: Shown in each UI: the plainest block run and the two blocked shapes, one of +#: them with a producer `ok`. Every scenario's text is D's; the UIs reuse it. +UI_RELEASE = "v0.3.0" +UI_SCENARIOS = ("strict-block", "control-strict-timeout", "advisory-unmapped") + + +def _ui_expectation() -> tuple[list[dict], dict[str, str]]: + docs = _newest_first(UI_RELEASE) + shown = { + _run_id(UI_RELEASE, s): _index(UI_RELEASE)["scenarios"][s]["report_show"]["stdout"] + .rstrip("\n") + for s in UI_SCENARIOS + } + for run_id, text in shown.items(): + assert text.splitlines() == _show_lines(next(d for d in docs if d["run_id"] == run_id)) + return docs, shown + + +def test_tui_reports_tab_shows_released_preflight_runs(report_root, tmp_path): + root = report_root(UI_RELEASE) + docs, shown = _ui_expectation() + + async def scenario(): + app = SyncmillTuiApp( + SyncmillConfig(board={"enabled": False}, + tui={"state_dir": str(tmp_path / "jobs")}, + integration={"report": {"runs_dir": str(root)}}), + board=None, board_error=None, toml_path=tmp_path / "syncmill.toml", + refresh_seconds=3600, initial_tab="reports", + ) + async with app.run_test() as pilot: + options = app.query_one("#report-list", OptionList) + await _settle(pilot, lambda: options.option_count == len(docs)) + assert _prompts(options) == [ + f"{d['run_id']} {d['strategy']} {d['result']['status']}" for d in docs + ] + for run_id, want in shown.items(): + options.highlighted = [d["run_id"] for d in docs].index(run_id) + await _settle(pilot, lambda: _shown(app, "#report-detail") == want) + + asyncio.run(scenario()) + + +class _Clock: + def __init__(self) -> None: + self.now = 1_800_000_000.0 + + def __call__(self) -> float: + return self.now + + +def test_dashboard_report_pane_shows_released_preflight_runs(report_root, tmp_path): + root = report_root(UI_RELEASE) + docs, shown = _ui_expectation() + board = Board(str(tmp_path / "board.db"), now=_Clock()) + + async def scenario(): + app = DashboardApp( + board, refresh_seconds=3600, now=_Clock(), + config=SyncmillConfig(integration={"report": {"runs_dir": str(root)}}), + ) + async with app.run_test() as pilot: + await pilot.pause() + await pilot.press("p") + await _settle(pilot, lambda: app.screen.query("#report-list")) + options = app.screen.query_one("#report-list", OptionList) + await _settle(pilot, lambda: options.option_count == len(docs)) + assert _prompts(options) == [ + f"{d['run_id']} {d['created_at']} {d['strategy']} " + f"{d['result']['status']} {d['result']['agent_id'] or '—'}" + for d in docs + ] + for run_id, want in shown.items(): + options.highlighted = [d["run_id"] for d in docs].index(run_id) + await _settle(pilot, lambda: _shown(app.screen, "#report-detail") == want) + + try: + asyncio.run(scenario()) + finally: + board.close() + + +# ── retention removes a released preflight run dir whole ────────────────── + + +CURRENT = "current-run" +KEEP_LAST = 10 +#: Forced oldest (swept) and newest (kept): each holds a nonempty `preflight/`. +#: v0.1.2's is owned only through the envelope fallback (no sentinel). +SWEPT_NESTED = (("v0.1.2", "strict-persist-aggregate"), ("v0.3.0", "strict-allow")) +KEPT_NESTED = ("v0.2.0", "strict-multi-allow") + + +def test_run_reporter_retention_removes_released_preflight_dirs_whole(tmp_path): + root = _copy_runs(tmp_path / "reports", *RELEASES) + (root / CURRENT).mkdir() + (root / CURRENT / RUN_DIR_SENTINEL).write_text("") + swept = {_run_id(r, s) for r, s in SWEPT_NESTED} + kept_nested = _run_id(*KEPT_NESTED) + for name in (*swept, kept_nested): + assert any((root / name / "preflight").iterdir()), name + others = sorted( + (p.name for p in root.iterdir() if p.name not in {*swept, kept_nested, CURRENT}), + key=lambda n: hashlib.sha256(n.encode()).hexdigest(), + ) + order = [*sorted(swept), *others, kept_nested] # oldest first + base = 1_700_000_000 + os.utime(root / CURRENT, (base, base)) # the oldest, and kept anyway + for i, name in enumerate(order, start=1): + os.utime(root / name, (base + i, base + i)) + # Every released dir here is owned (sentinel, or a v0.1.2 envelope naming + # its own directory), so the newest KEEP_LAST - 1 survive beside the current run. + assert len(order) > KEEP_LAST + expected = {*order[-(KEEP_LAST - 1):], CURRENT} + + reporter = RunReporter(ReportConfig(enabled=True, runs_dir=str(root), keep_last=KEEP_LAST)) + reporter.start(run_id=CURRENT, task_id="t", strategy="route", team=None, agents=["codex"]) + assert not reporter.degraded + assert {p.name for p in root.iterdir()} == expected + assert not swept & expected + release, scenario = KEPT_NESTED + source = _run_dir(release, scenario) + for path in sorted(source.rglob("*")): + if path.is_file(): + relative = path.relative_to(source) + assert (root / kept_nested / relative).read_bytes() == path.read_bytes()