Expand description
Verification contracts for A3S Code 2.0.
Verification is represented as structured checks and reports. The first
stage is intentionally conservative: required checks start as
needs_review until a verifier or the harness marks them passed/failed.
Structs§
- Static
Verifier - Verification
Check - Verification
Command - Verification
Preset - Verification
Report - Verification
Summary
Enums§
Constants§
Traits§
Functions§
- acceptance_
shell_ commands_ for_ workspace - Parse machine ACCEPTANCE criteria from active
.a3s/loops/*/ACCEPTANCE.mdso Core shell evidence and Host ACCEPTANCE re-checks share the same predicates. - bind_
host_ shell_ reports_ to_ mutations - When a Host shell check proves a mutated path still exists (
test -f/ ACCEPTANCEkind:file_existssynthesized totest -f), bind the current mutation ledger digest so the completion gate can Allow(Verified). Baretrue/ unrelated presets do not bind — that would overfit the gate. - bind_
host_ shell_ reports_ to_ mutations_ with_ content - Like
bind_host_shell_reports_to_mutations, optionally requiringcontent_match = Some((expected_ledger_digest, on_disk_digest)). - format_
verification_ summary - goal_
achieved_ after_ evidence_ gate - Combine an LLM achievement judgment with structured verification evidence.
- host_
report_ for_ verified_ mutation_ path - Synthesize a Host Passed report when bash successfully runs
test -f/test -eon a path that is already on the mutation ledger. - host_
report_ for_ verified_ mutation_ path_ with_ content - Like
host_report_for_verified_mutation_pathwith optional content match. - is_
acceptance_ verification_ subject - True when a shell verification subject was derived from ACCEPTANCE.md.
- merge_
shell_ verification_ metadata - Merge a shell-preset verification report into tool metadata when applicable.
- normalize_
shell_ command - Normalize shell text for preset command coverage checks.
- path_
from_ existence_ check_ command - Extract the path from the first existence-check segment.
- reports_
include_ passing_ acceptance - True when reports include at least one passing ACCEPTANCE-derived shell report.
- shell_
command_ covers_ preset - True when
commandexecutespreset(exact, with trailing args, or after&&/;). - shell_
verification_ report_ for_ command - Build a verification report when a shell command covers a workspace preset
command or a durable
/goalACCEPTANCE.md machine criterion (kind:commandor synthesizedtest -fforkind:file_exists). - should_
emit_ goal_ achieved - Decide whether planning should emit
GoalAchievedbeforeEnd. - should_
emit_ goal_ achieved_ for_ workspace - Decide whether planning should emit
GoalAchievedbeforeEnd. - verification_
presets_ for_ workspace - verification_
status_ label