Expand description
Engine bridge (v1.4 §4.5; annex …-engine §4). Projects a resolved capability profile
back to a legacy Verdict so the existing ceiling gate (main::run_cli) keeps working
unchanged. The engine is authoritative for every command it can resolve
(resolve::resolve → Some); the legacy classifier handles the rest. There is no
opt-out — cst::check::leaf_verdict calls engine_verdict(tokens).unwrap_or(legacy).
Structs§
- Eval
Level Guard - Profile
Explanation - A human-readable account of what a command resolved to and, when the band rejects it, which facet said no.
Functions§
- engine_
verdict - The engine’s verdict for a command whose resolver exists, or
Noneif it has none (the caller keeps the legacy verdict). - enter_
eval_ level - Evaluate the enclosed classification against
level(an upper-band level). Restores the previous context on drop. Mirrorspathctx::enter. - explain_
profile - Resolve
tokensand explain the result.Nonewhen no resolver claims the command, which is itself the answer: the engine never saw it and the legacy classifier decided. - project
- Project a resolved profile to a legacy
Verdict: the lowest authored level that admits it, mapped back to its legacySafetyLevel;Deniedif no legacy-mapped level admits it (above the auto-approve band → worst-case, §0).default_levels()builds the ascending chain (paranoid ⊂ reader ⊂ editor ⊂ developer), so the first match among the mapped levels is the minimum.