Expand description
g8-conflict — cross-project intent/capability overlap detection.
Provides ConflictDetector with two entry points:
ConflictDetector::compare_spaces— compare two stores (local + remote-attached) and return all conflicts between them, ordered by descending severity.ConflictDetector::detect_intra_space— single-store variant: detect conflicts within one space (duplicate intents, contradictory decisions, governance violations).
§Design notes
This crate is purely computational — no I/O, no async. It reads data from the store via the
ConflictStore trait and produces Vec<Conflict> using typed Evidence variants (per
A1 decision #3 — Vec<Evidence> not stringified evidence).
Cross-project capability identity is <project>::<name> (used only as lookup keys per A1
decision #2; annotations never carry the prefix).
§Four conflict kinds
| Kind | Trigger | Severity |
|---|---|---|
DuplicateIntent | Same kind + scope_path in both spaces, different description | Warn |
CapabilityNameCollision | Same kebab-case name in both spaces, no alias resolves them | Error |
CapabilityNameCollision | Same name AND alias resolves them | Info |
ContradictoryDecisions | Same title, both accepted, different body | Error |
GovernanceViolation | Plan substrate forbidden by a Boundary intent in the other space | Error |
Re-exports§
pub use store_adapter::ConflictAdapter;pub use store_trait::ConflictStore;
Modules§
- store_
adapter - Adapter implementing
ConflictStoreover anyg8_store::StoreConnection. - store_
trait ConflictStore— the minimal read-only store interface needed by conflict detection.
Structs§
- Conflict
Detector - Entry point for all conflict-detection operations.
Enums§
- Conflict
Error - Errors produced by
ConflictDetectoroperations.