omnigraph/crates/omnigraph-cli/tests
Andrew Altshuler d2340f19e9
feat(cli)!: schema apply refuses a cluster-managed graph (RFC-011 D10) (#253)
`omnigraph schema apply` against a cluster-managed graph's storage root bypassed
the cluster ledger/recovery/approvals. Mirror `init`'s refusal: on the embedded
(direct-store) path, if the resolved URI is inside a cluster
(`cluster_root_for_graph_uri`), bail and point at `cluster apply`. The served
(`--server`) path is unaffected — it addresses a server, not a storage root.
`schema plan`/`show` (read-only) are untouched.

Two e2e tests injected "out-of-band drift" via this exact CLI path; since the
CLI now refuses it, they inject drift via a direct engine `apply_schema` against
the storage root instead — a faithful control-plane bypass, which is what
out-of-band drift is. New regression:
`schema_apply_refuses_a_cluster_managed_graph_and_signposts_cluster_apply`.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 23:11:42 +03:00
..
support feat(cli)!: excise omnigraph.yaml from the CLI; policy/queries tooling reads --cluster (#251) 2026-06-15 21:48:39 +03:00
cli_cluster.rs feat(cli)!: schema apply refuses a cluster-managed graph (RFC-011 D10) (#253) 2026-06-15 23:11:42 +03:00
cli_cluster_e2e.rs feat(cli)!: schema apply refuses a cluster-managed graph (RFC-011 D10) (#253) 2026-06-15 23:11:42 +03:00
cli_data.rs feat(cli)!: excise omnigraph.yaml from the CLI; policy/queries tooling reads --cluster (#251) 2026-06-15 21:48:39 +03:00
cli_queries.rs feat(cli)!: excise omnigraph.yaml from the CLI; policy/queries tooling reads --cluster (#251) 2026-06-15 21:48:39 +03:00
cli_schema_config.rs feat!: delete the legacy OmnigraphConfig + config migrate; finish the omnigraph.yaml docs sweep (#252) 2026-06-15 22:31:29 +03:00
parity_matrix.rs feat(cli)!: excise omnigraph.yaml from the CLI; policy/queries tooling reads --cluster (#251) 2026-06-15 21:48:39 +03:00
system_local.rs feat(cli)!: schema apply refuses a cluster-managed graph (RFC-011 D10) (#253) 2026-06-15 23:11:42 +03:00
system_remote.rs feat(cli)!: excise omnigraph.yaml from the CLI; policy/queries tooling reads --cluster (#251) 2026-06-15 21:48:39 +03:00