Files
aji/tests/conformance/reject-twins.json
T

1738 lines
75 KiB
JSON

{
"version": 1,
"cases": {
"buffers/empty_free_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a726",
"rule": "The buffer returned on buffer.free failure is left live at return, regardless of runtime reachability of that outcome.",
"required_ops": {
"buffer.free": 1
}
},
"buffers/view_mutation.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a726",
"rule": "buffer.reserve mutates a buffer with a live buffer.view child; the view is used afterwards."
},
"generics/recursive_array.air": {
"kind": "same_code",
"site": "declaration",
"spec": "docs/spec/15-source-language.md \u00a715",
"rule": "The non-generic Node recursively contains an array of itself by value, retaining E1003 before source lowering.",
"lowering": "rejected",
"early_context": {
"air": "9ab84709f2349a215db70a0cad5cb3d8255dac91170c45cc3183972ad5a68b79",
"sources": {
"source/generics/monomorphic_layout_cycle.aji": "0e1495cfc4cee39827f3946b269583db945034470785b65b8cde5a6956c6818f"
}
}
},
"linear/field.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a725",
"rule": "struct.get projects a linear owning field instead of whole unpacking or borrowed exchange."
},
"linear/leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a725",
"rule": "Whole struct.unpack discards an owning field that remains live at return.",
"required_ops": {
"struct.unpack": 1
}
},
"nominal_queries/cycle.air": {
"kind": "same_code",
"site": "declaration",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "The N0 through N40 by-value cycle is rejected as E1003 at N0 before source lowering. Pure by-value cycles retain E1003 (Q-043/Q-044; AIR type rules in spec 07).",
"lowering": "rejected",
"early_context": {
"air": "38bd028b4851500690cfa0f3022e726f86075cf304582d970f849d0b3c13ecd0",
"sources": {
"source/nominal_queries/cycle.aji": "29d2fd93a85456a73cd935190516622525bd0432570cf4977b9a5ac2b71fc620"
}
}
},
"nominal_queries/diamond_21_u64.air": {
"kind": "same_code",
"site": "declaration",
"spec": "docs/spec/08-verifier.md \u00a77",
"rule": "The N0\u2013N3 shared diamond value layouts exceed max_value_size at their type declarations; all four limit/max/found/type facts agree after successful lowering.",
"match_type_declarations": true
},
"phase0/reject/block_argument_type.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Explicit block arguments are generated mechanics. A wrong generated argument type is a compiler defect, not authorable source."
},
"phase0/reject/branch_arity.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Explicit target argument arity is generated mechanics; malformed lowered targets are compiler defects."
},
"phase0/reject/call_argument_type.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
"analogues": [
{
"source": "source/typecheck/call_argument.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "u64",
"found": "bool"
}
}
]
},
"phase0/reject/double_definition.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "SSA definition identity is generated; source shadowing is a different name rule."
},
"phase0/reject/duplicate_feature.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source does not declare an AIR features header; lowering generates its closure."
},
"phase0/reject/duplicate_function.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "A duplicate function declaration rejects before AIR with the duplicate_declaration reason registered by spec 15 \u00a710 in reference/error-codes.md.",
"analogues": [
{
"source": "source/reject_twins/analogue_duplicate_function.aji",
"codes": [
"E7006"
],
"fields": {
"name": "f",
"reason": "duplicate_declaration"
}
}
]
},
"phase0/reject/literal_out_of_range.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "The integer literal 256 cannot fit u8; source checks its typed range before AIR under the general source-decided type rule.",
"analogues": [
{
"source": "source/reject_twins/analogue_literal_out_of_range.aji",
"codes": [
"E7005"
],
"fields": {
"type": "u8",
"literal": "256"
}
}
]
},
"phase0/reject/lossy_widen.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
"analogues": [
{
"source": "source/typecheck/lossy_widen.aji",
"codes": [
"E7005"
],
"fields": {}
}
]
},
"phase0/reject/missing_dependency.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source does not declare an AIR features header; lowering generates its closure."
},
"phase0/reject/missing_terminator.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Block terminators are generated, and malformed lowered CFG is a compiler defect."
},
"phase0/reject/non_exhaustive_enum_switch.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a76/\u00a710",
"rule": "An enum match missing a variant is E7004 in source; lowered invalid CFG would be E7900, not a source E5002.",
"analogues": [
{
"source": "source/layer2/reject/not_exhaustive.aji",
"codes": [
"E7004"
],
"fields": {
"missing": "State::Done"
}
}
]
},
"phase0/reject/operand_type_mismatch.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
"analogues": [
{
"source": "source/typecheck/binary_mixed_widths.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "u64",
"found": "u8"
}
}
]
},
"phase0/reject/recursive_type.air": {
"kind": "same_code",
"site": "declaration",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Node contains itself by value; source declaration validation retains E1003 (Q-043/Q-044). The scalar value field is u8 in AIR and u64 in source; its width does not decide the by-value self-cycle rule.",
"lowering": "rejected",
"early_context": {
"air": "2014f05595edd77a7840d910eff8e26f338b7724fc25701cdb62f9f0dd359524",
"sources": {
"source/layer2/reject/verifier_recursive.aji": "c88b9db00d9d382adfd0282f650ff248c7613d0b0e0b83c8ec4b6493e1fff73a"
}
}
},
"phase0/reject/reserved_feature.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "This legacy heap header now rejects missing_dependency (capabilities), not a reserved feature. Source generates the full dependency closure and cannot spell the faulty header."
},
"phase0/reject/return_type_mismatch.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "u64 cannot be returned from a u32 function; this type-decided error is E7005.",
"analogues": [
{
"source": "source/reject_twins/analogue_return_type_mismatch.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "u32",
"found": "u64"
}
}
]
},
"phase0/reject/terminator_mid_block.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Instruction placement after an AIR terminator is generated CFG structure."
},
"phase0/reject/too_many_params.air": {
"kind": "same_code",
"site": "function",
"spec": "docs/spec/08-verifier.md",
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
},
"phase0/reject/undefined_value.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71/\u00a710",
"rule": "An undefined SSA operand is malformed generated AIR and becomes E7900. Source unknown-name resolution is a different rule, not an undefined SSA operation."
},
"phase0/reject/unknown_block.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Source has no named AIR block targets; generated resolution failure is a compiler defect."
},
"phase0/reject/unknown_feature.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source does not declare an AIR features header; lowering generates its closure."
},
"phase0/reject/unsupported_version.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Source has no AIR format-version header."
},
"phase0/reject/use_not_dominated.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Source has no explicit SSA dominance edges; malformed generated uses are compiler defects."
},
"phase1/reject/alloc_outside_entry.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "local.alloc placement is chosen by lowering; source has no instruction-placement operation."
},
"phase1/reject/borrow_block_parameter.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a75/\u00a719",
"rule": "Borrow-typed branch block arguments require reserved borrow_joins. Source binds borrows only with ref/mut, never in an assignable var, and forbids yielding them from blocks/if/match; branches may return directly. Region allocation outcome parameters do not request borrow_joins."
},
"phase1/reject/borrow_in_struct.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "A borrow constructor in a struct field violates member-position rules; source rejects E7005. Content width u8/u64 does not decide this rule.",
"analogues": [
{
"source": "source/type_positions/field.aji",
"codes": [
"E7005"
],
"fields": {
"position": "member",
"type_constructor": "ref"
}
}
]
},
"phase1/reject/borrow_not_ended.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source ends every non-returned lexical borrow on a normal return; it has no operation to omit that generated end."
},
"phase1/reject/borrow_return_without_from.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a719",
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
"analogues": [
{
"source": "source/borrow_returns/missing_from.aji",
"codes": [
"E7006"
],
"fields": {
"reason": "invalid_borrow_return"
}
}
]
},
"phase1/reject/borrow_use_after_end.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "A borrow binding is no longer visible after its lexical end; source cannot use an explicitly ended borrow."
},
"phase1/reject/end_lent_parameter.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source does not explicitly end a lent borrow parameter; generated cleanup ends owned lexical bindings instead."
},
"phase1/reject/end_parent_first.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source generates lexical ends in reverse creation order and transfers returned ancestors; it cannot request parent-before-child cleanup. Task-loan conflicts with such cleanup use E4302 instead; they are covered by separate twins."
},
"phase1/reject/feature_not_declared.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source does not declare an AIR features header; lowering generates its closure."
},
"phase1/reject/frame_escape.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/08-verifier.md \u00a711.3",
"rule": "A returned borrow points into local frame storage, despite the declared parameter origin."
},
"phase1/reject/frame_too_large.air": {
"kind": "same_code",
"site": "function",
"spec": "docs/spec/08-verifier.md",
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
},
"phase1/reject/join_mismatch.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source lexical cleanup ends a borrow on every normal exit from its scope; explicit unmatched borrow.end edges are generated mechanics."
},
"phase1/reject/le_is_not_a_fact.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a75",
"rule": "A source <= condition uses checked indexing; only the specified strict < bounds form requests proven indexing."
},
"phase1/reject/mut_and_shared.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/08-verifier.md \u00a711.2",
"rule": "A shared whole-place borrow is created while an exclusive whole-place borrow is live."
},
"phase1/reject/read_uninitialized.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a74",
"rule": "Source local declarations require an initializer; there is no uninitialized frame-local declaration."
},
"phase1/reject/related_borrow_live.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/08-verifier.md \u00a711.2",
"rule": "local.store writes a local with a live shared borrow, retaining that borrow as the related conflict."
},
"phase1/reject/size_overflow.air": {
"kind": "same_code",
"site": "function",
"spec": "docs/spec/08-verifier.md",
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
},
"phase1/reject/value_too_large.air": {
"kind": "same_code",
"site": "function",
"spec": "docs/spec/08-verifier.md",
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
},
"phase1/reject/zero_enum.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a74/\u00a710",
"rule": "zero initialization requires a zeroable type; an enum rejects with registered zero_not_zeroable.",
"analogues": [
{
"source": "source/reject_twins/analogue_zero_enum.aji",
"codes": [
"E7006"
],
"fields": {
"reason": "zero_not_zeroable"
}
}
]
},
"phase2/reject/alloc_without_effect.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md",
"rule": "own.new lacks mem.alloc; the missing effect and complete suggested list agree."
},
"phase2/reject/alloc_wrong_capability.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md \u00a710.5",
"rule": "own.new receives cap<fs.read> instead of mem.alloc authority; ok consumes the owner and err returns normally."
},
"phase2/reject/capability_not_zeroable.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a74/\u00a710",
"rule": "A struct containing capability authority cannot be zero initialized, using zero_not_zeroable.",
"analogues": [
{
"source": "source/reject_twins/analogue_capability_not_zeroable.aji",
"codes": [
"E7006"
],
"fields": {
"reason": "zero_not_zeroable"
}
}
]
},
"phase2/reject/flat_effects.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md \u00a79.2/\u00a79.3",
"rule": "A call lacks atomic.weak despite atomic being declared; effect sets are flat and callee effect sets agree."
},
"phase2/reject/intrinsic_effect.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md \u00a79.3",
"rule": "fs.open_read lacks the explicit fs.read effect; intrinsic, effect and complete suggested_effects agree."
},
"phase2/reject/own_free_while_borrowed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "The same owning-resource consumption or whole-place borrow conflicts with a live borrow."
},
"phase2/reject/own_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
"rule": "An allocated owner reaches return without consumption."
},
"phase2/reject/own_use_after_free.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "A closed/freed resource is borrowed again."
},
"phase2/reject/own_use_after_move.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md \u00a76.2",
"rule": "An owner transferred to a consuming call is subsequently borrowed."
},
"phase2/reject/region_allocation_outlives_borrow.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a78/\u00a79",
"rule": "The explicit region borrow lexically outlives its derived allocation borrow. Source generates reverse-order ends and forbids yielding a borrow out of an arm/block, so parent-before-allocation-end cannot be authored."
},
"phase2/reject/region_destroy_with_live_reference.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "The same region operation would invalidate a live allocation reference."
},
"phase2/reject/region_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
"rule": "An owned region reaches return without region.destroy."
},
"phase2/reject/region_reset_with_live_reference.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "The same region operation would invalidate a live allocation reference."
},
"phase2/reject/resource_close_twice_after_error.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md",
"rule": "The same resource is consumed twice."
},
"phase2/reject/resource_close_while_borrowed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md",
"rule": "The same owning-resource consumption or whole-place borrow conflicts with a live borrow."
},
"phase2/reject/resource_join_mismatch.air": {
"kind": "same_code",
"site": "block",
"spec": "docs/spec/08-verifier.md \u00a711.4",
"rule": "The same file is closed on one incoming edge and still live on another."
},
"phase2/reject/resource_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
"rule": "An opened file<read> reaches return without close."
},
"phase2/reject/resource_use_after_close.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md",
"rule": "A closed/freed resource is borrowed again."
},
"phase2/reject/resource_use_after_move.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md \u00a76.2",
"rule": "An opened file<read> is transferred to a consuming call and then borrowed again.",
"required_ops": {
"call": 1
}
},
"phase2/reject/undeclared_effect.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md \u00a79.3",
"rule": "A call lacks the callee io.write effect; callee identities may differ but declared effect sets agree."
},
"phase2/reject/unknown_effect.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "An unregistered effect atom rejects E7002 before the function body; the source position is the function start.",
"analogues": [
{
"source": "source/effect_names/ordinary_unused.aji",
"codes": [
"E7002"
],
"fields": {
"name": "unknown",
"effect": "unknown"
}
}
]
},
"phase2/reject/unsafe_call_from_safe.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/13-contracts-and-unsafe.md \u00a76",
"rule": "A safe function calls an effects [unsafe] function without an unsafe or trusted boundary."
},
"phase2/reject/unsafe_outside_boundary.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/13-contracts-and-unsafe.md \u00a76",
"rule": "borrow.index.unchecked occurs outside an unsafe or trusted function."
},
"phase2/reject/wrong_capability_kind.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md \u00a710.5",
"rule": "fs.create receives cap<fs.read> instead of required cap<fs.write>; expected/found authority facts agree."
},
"phase3/reject/cancel_join_keeps_loans.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The lent borrow is ended while its task remains unjoined; the creating spawn is retained.",
"required_ops": {
"task.join.cancel": 1
}
},
"phase3/reject/cancel_join_twice_keeps_spawn.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The lent borrow is ended while its task remains unjoined; the creating spawn is retained.",
"required_ops": {
"task.join.cancel": 2
}
},
"phase3/reject/channels_borrow_element.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "A channel element cannot contain a borrow. Source checks the constructor type argument once (E7005), while AIR rejects both annotated endpoint parameters (two E1001); this is an analogue, not a same-code/count twin.",
"analogues": [
{
"source": "source/typecheck/channel_borrow_element.aji",
"codes": [
"E7005"
],
"fields": {
"position": "member",
"type_constructor": "ref"
}
}
]
},
"phase3/reject/channels_receiver_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
"rule": "A channel receiver remains unclosed at return after its sender is closed. The source success arm passes through a single-predecessor match join; the allocation failure arm traps."
},
"phase3/reject/channels_recv_without_effect.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a737.4/\u00a738",
"rule": "channel.recv lacks task.wait on a borrowed receiver parameter; no allocation adds another missing effect."
},
"phase3/reject/channels_use_after_send.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a738",
"rule": "The old owner is borrowed after failed send returns its ownership under a new name; closed and cancelled both merge to the same error site, as in AIR.",
"required_ops": {
"channel.send": 1
}
},
"phase3/reject/sync_call_waiting_function.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a741",
"rule": "A function declaring task.wait is called while a mutex guard is held."
},
"phase3/reject/sync_lock_twice.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a741",
"rule": "A second mutex.lock may wait while the first guard is held."
},
"phase3/reject/sync_take_while_borrowed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a740",
"rule": "mutex.take consumes a mutex with a live shared borrow, retaining that borrow as the related conflict."
},
"phase3/reject/sync_wait_while_locked.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a741",
"rule": "channel.recv may wait while a mutex guard is held."
},
"phase3/reject/tasks_access_lent.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a734",
"rule": "The parent indexes an exclusive slice lent to an unjoined task; raw borrow.index/load errors share one source location."
},
"phase3/reject/tasks_borrow_return.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a719",
"rule": "The specific source rule rejects passing a borrow-returning function to task.spawn with E7006 at the spawn, while AIR retains the reserved task_borrow_returns gate.",
"analogues": [
{
"source": "source/borrow_returns/spawn_return.aji",
"codes": [
"E7006"
],
"fields": {
"function": "first",
"reason": "invalid_borrow_return"
}
}
]
},
"phase3/reject/tasks_end_lent_borrow.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The lent borrow is ended while its task remains unjoined; the creating spawn is retained."
},
"phase3/reject/tasks_not_send.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a735",
"rule": "An exclusive borrow of a live task handle is lent to another task although mut<task<u8>> is not Send; the second task is joined before the borrow ends and the original task is joined last."
},
"phase3/reject/tasks_not_share.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a735",
"rule": "A shared borrow of a region is lent to a task although region is not Share. Worker and argument spellings are identities; the complete rejected parameter type and argument role agree."
},
"phase3/reject/tasks_same_mut_twice.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a734",
"rule": "The same exclusive borrow is lent to a second task while the first task remains live."
},
"phase3/reject/tasks_scope_end_unjoined.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a733",
"rule": "A task scope ends while a child task remains unjoined."
},
"phase3/reject/tasks_spawn_without_effect.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a733",
"rule": "task.spawn lacks the explicit task.spawn effect; the selected missing effect and complete suggested list agree."
},
"phase4/reject/arc_content_mutex.air": {
"kind": "same_code",
"site": "block",
"spec": "docs/spec/03-memory-model.md \u00a724",
"rule": "An arc result contains mutex<u64>, which is Share but not ArcSafe."
},
"phase4/reject/arc_release_twice.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "The same resource is consumed twice."
},
"phase4/reject/frozen_borrow_mut.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a78",
"rule": "A frozen graph provides immutable access only; source rejects mut frozen.at with E7005 before a store is generated.",
"analogues": [
{
"source": "source/layer9/reject/frozen_mut.aji",
"codes": [
"E7005"
],
"fields": {}
}
]
},
"phase4/reject/frozen_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a723",
"rule": "An owned frozen graph reaches return without frozen.release."
},
"phase4/reject/island_content_owner.air": {
"kind": "same_code",
"site": "block",
"spec": "docs/spec/03-memory-model.md \u00a722",
"rule": "An island result contains own<u64>, a foreign mutable edge forbidden by IslandSafe."
},
"phase4/reject/island_destroy_while_borrowed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a722",
"rule": "island.destroy invalidates a live container borrow and its child object borrow; the child is used afterwards.",
"required_ops": {
"island.borrow": 1,
"load": 1
}
},
"phase4/reject/island_lend_task.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a735",
"rule": "A shared borrow of an island is lent to a task although its mutable graph is not Share. Worker and argument spellings are identities; the complete rejected parameter type and argument role agree."
},
"phase4/reject/island_two_mut.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a722",
"rule": "A second mutable object borrow is created through the same island, using a different iref."
},
"phase4/reject/island_use_after_freeze.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "An island is borrowed after freezing transferred its ownership."
},
"phase4/reject/island_use_after_send.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a722",
"rule": "An island is borrowed after successful channel.send transferred its ownership."
},
"phase4/reject/islands_not_declared.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The missing AIR feature header cannot be authored in source, whose lowering generates the full dependency closure."
},
"phase5/reject/cmpxchg_failure_release.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same atomic operation rejects the same ordering and allowed set."
},
"phase5/reject/cmpxchg_failure_stronger.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a724.1",
"rule": "atomic.cmpxchg.relaxed.acquire uses failure ordering acquire, stronger than the success ordering relaxed."
},
"phase5/reject/fence_relaxed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same atomic operation rejects the same ordering and allowed set."
},
"phase5/reject/island_content.air": {
"kind": "same_code",
"site": "block",
"spec": "docs/spec/03-memory-model.md \u00a722",
"rule": "An island result contains atomic<u64>, a foreign mutable edge forbidden by IslandSafe."
},
"phase5/reject/leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a723",
"rule": "An atomic cell reaches return without being taken, moved or returned."
},
"phase5/reject/load_release.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same atomic operation rejects the same ordering and allowed set."
},
"phase5/reject/missing_atomic_effect.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md \u00a713",
"rule": "atomic.load.seq_cst lacks atomic; atomic.new and atomic.take require no effect."
},
"phase5/reject/missing_weak_effect.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md \u00a713",
"rule": "atomic.load.acquire lacks atomic.weak; the complete suggested effects are [atomic, atomic.weak]."
},
"phase5/reject/mut_operand.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a712",
"rule": "Atomic cells require shared ref access; spelling a mutable cell borrow is E7005 in source.",
"analogues": [
{
"source": "source/layer10/reject/mut_borrow.aji",
"codes": [
"E7005"
],
"fields": {
"name": "c"
}
}
]
},
"phase5/reject/not_declared.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The missing AIR feature header cannot be authored in source, whose lowering generates the full dependency closure."
},
"phase5/reject/store_acquire.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same atomic operation rejects the same ordering and allowed set."
},
"phase5/reject/take_while_borrowed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same owning-resource consumption or whole-place borrow conflicts with a live borrow."
},
"phase5/reject/take_while_lent.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a728",
"rule": "atomic.take consumes a cell while a borrow of it is lent to a live task."
},
"phase5/reject/u128_cell.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "A 128-bit integer cannot be atomic cell content; this source-decided type error uses E7005.",
"analogues": [
{
"source": "source/layer10/reject/wide_cell.aji",
"codes": [
"E7005"
],
"fields": {
"found": "u128"
}
}
]
},
"static_functions/missing_effect.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md \u00a79.3",
"rule": "A call to selected lacks io.write; source supplies that same function through an explicit static parameter with its declared contract."
},
"static_functions/owner_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
"rule": "selected returns without consuming its owning parameter; source also invokes it through explicit specialization."
},
"buffers/reserve_missing_effect.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/15-source-language.md \u00a717",
"rule": "buffer.reserve requires explicit mem.alloc even when both outcomes trap."
},
"buffers/wrong_capability.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/15-source-language.md \u00a717",
"rule": "buffer.reserve is supplied cap<io.write> instead of the required cap<mem.alloc>."
},
"buffers/readonly_view_push.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/15-source-language.md \u00a717",
"rule": "buffer.push mutates a buffer while its shared buffer.view borrow is live, even when both outcomes trap.",
"required_ops": {
"borrow.ref": 1,
"buffer.view": 1,
"buffer.push": 1,
"const.u64": 1,
"trap": 2
},
"exact_ops": true,
"required_identity_uses": {
"conflicts_with": "buffer.view"
}
},
"error_values/no_authority.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "An error value cannot supply capability authority; the result type mismatch is source-decided E7005.",
"analogues": [
{
"source": "source/error_values/no_authority.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "cap<mem.alloc>",
"found": "alloc_error"
}
}
]
},
"error_values/wrong_family.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "Returning alloc_error where io_error is declared rejects before AIR as E7005.",
"analogues": [
{
"source": "source/error_values/wrong_family.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "io_error",
"found": "alloc_error"
}
}
]
},
"error_values/unknown_variant.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a76",
"rule": "An unknown built-in error variant is E7002 under the source error-construction rule.",
"analogues": [
{
"source": "source/error_values/unknown_variant.aji",
"codes": [
"E7002"
],
"fields": {
"enum": "alloc_error",
"variant": "invalid"
}
}
]
},
"error_values/payload.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a76",
"rule": "Built-in error variants reject payload arguments with E7005. This non-empty source payload is an analogue of the AIR empty argument list; empty source () instead rejects E7001.",
"analogues": [
{
"source": "source/error_values/payload.aji",
"codes": [
"E7005"
],
"fields": {
"variant": "budget_exceeded"
}
}
]
},
"buffers/borrowed_element.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "A borrowed buffer element violates member-position rules. AIR checks a parameter while this source analogue checks the buffer.new type argument, both before the operation.",
"analogues": [
{
"source": "source/buffers/borrowed_element.aji",
"codes": [
"E7005"
],
"fields": {
"position": "member",
"type_constructor": "ref"
}
}
]
},
"linear/borrow_array.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "Borrowed inferred array elements reject E7006 invalid_literal before AIR. The source list has two elements and AIR has one; element count does not decide this member-position rule.",
"analogues": [
{
"source": "source/array_literals/list_ref.aji",
"codes": [
"E7006"
],
"fields": {
"reason": "invalid_literal"
}
}
]
},
"buffers/undeclared.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The missing AIR feature or dependency header cannot be authored in source: lowering generates the used features and their full dependency closure."
},
"linear/without_feature.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The missing AIR feature or dependency header cannot be authored in source: lowering generates the used features and their full dependency closure."
},
"error_values/undeclared.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The missing AIR feature or dependency header cannot be authored in source: lowering generates the used features and their full dependency closure."
},
"error_values/dependency.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The missing AIR feature or dependency header cannot be authored in source: lowering generates the used features and their full dependency closure."
},
"phase0/reject/float_reserved.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a73",
"rule": "Source has no built-in f32/f64 type (spec 07 \u00a78.4). An undeclared f64 spelling is an ordinary E7002 unknown name; a user nominal f64 lowers to @f64 and cannot produce the reserved AIR primitive f64. Neither tests the reserved_type rule. Spec 15 \u00a71 restricts source to published features."
},
"phase3/reject/cancel_join_needs_wait.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a737.4",
"rule": "In a module declaring cancellation, task.join requires task.wait. Source declares cancellation via a shield helper in the same module, preserving main's task.spawn contract and its suggested effects.",
"required_ops": {
"task.spawn": 1,
"task.join": 1
}
},
"phase3/reject/sync_use_after_take.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a732",
"rule": "A mutex is borrowed again after mutex.take consumed it; the source lock begins with that same borrow.ref.",
"required_ops": {
"mutex.take": 1
}
},
"phase2/reject/own_nested.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
},
"phase2/reject/own_of_resource.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
},
"phase2/reject/resource_in_struct.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
},
"phase2/reject/cap_without_feature.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
},
"phase5/reject/struct_field.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
},
"phase2/reject/unsafe_trusted_without_feature.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a72",
"rule": "A source trusted clause always rejects E7006 as forbidden, independently of obligation or effects. The AIR trusted declaration rules for an empty obligation, an unsafe boundary contract or a missing feature therefore cannot be isolated in source."
},
"phase2/reject/unsafe_trusted_declares_unsafe.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a72",
"rule": "A source trusted clause always rejects E7006 as forbidden, independently of obligation or effects. The AIR trusted declaration rules for an empty obligation, an unsafe boundary contract or a missing feature therefore cannot be isolated in source."
},
"phase2/reject/unsafe_empty_obligation.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a72",
"rule": "A source trusted clause always rejects E7006 as forbidden, independently of obligation or effects. The AIR trusted declaration rules for an empty obligation, an unsafe boundary contract or a missing feature therefore cannot be isolated in source."
},
"linear/enum_incomplete.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a716",
"rule": "A linear enum match move omits Maybe::none; source rejects the incomplete consuming match with E7004 before emitting enum.take.",
"analogues": [
{
"source": "source/reject_twins/analogue_enum_incomplete.aji",
"codes": [
"E7004"
],
"fields": {
"missing": "Maybe::none"
}
}
]
},
"linear/unpack_count.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a716",
"rule": "array.unpack of a one-element linear array binds two components. Source rejects the authored extra binding before emitting an AIR continuation.",
"analogues": [
{
"source": "source/reject_twins/analogue_unpack_count.aji",
"codes": [
"E7005"
],
"fields": {}
}
]
},
"buffers/metadata_owner.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a717",
"rule": "buffer.len receives an owner instead of the required named ref/mut buffer binding; source checks that operand form before AIR.",
"analogues": [
{
"source": "source/reject_twins/analogue_metadata_owner.aji",
"codes": [
"E7005"
],
"fields": {}
}
]
},
"buffers/push_continuation_count.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a717",
"rule": "The authored buffer.push success arm binds an extra value although ok has zero bindings. This source outcome-arity error rejects before AIR.",
"analogues": [
{
"source": "source/reject_twins/analogue_push_continuation_count.aji",
"codes": [
"E7005"
],
"fields": {
"outcome": "ok",
"expected": "0"
}
}
]
},
"buffers/new_count_type.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "buffer.new receives a u64 capacity instead of usize; the source operand type rule preserves both types in E7005.",
"analogues": [
{
"source": "source/reject_twins/analogue_new_count_type.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "usize",
"found": "u64"
}
}
]
},
"linear/enum_switch.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a716",
"rule": "An ordinary match on a named linear enum needs explicit move; source rejects E7003 before the invalid enum.switch.",
"analogues": [
{
"source": "source/linear/plain_enum_match.aji",
"codes": [
"E7003"
],
"fields": {
"name": "old"
}
}
]
},
"buffers/new_return_type.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "Despite the AIR filename, the first rejection is the non-Copy content of own_array<own<u64>> on its outcome block parameter. Source checks that same content rule at the annotation.",
"analogues": [
{
"source": "source/own_array_content/owner.aji",
"codes": [
"E7005"
],
"fields": {
"constraint": "Copy",
"type_constructor": "own_array"
}
}
]
},
"phase2/reject/wrong_file_mode.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "fs.write_all requires a writable file; source rejects file<read> at its operand before emitting the invalid intrinsic.",
"analogues": [
{
"source": "source/layer6/reject/wrong_mode.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "file<write> or file<append>",
"found": "file<read>"
}
}
]
},
"phase2/reject/unknown_capability_kind.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "An unregistered capability kind rejects E7002 in source. AIR uses root and the existing source analogue uses unknown; neither can be registered by a program.",
"analogues": [
{
"source": "source/diagnostic_envelope/capability_kind_unknown.aji",
"codes": [
"E7002"
],
"fields": {
"capability_kind": "unknown"
}
}
]
},
"buffers/reserve_count_type.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "buffer.reserve receives a u64 capacity instead of usize; source reports E7005 for the same operand type mismatch.",
"analogues": [
{
"source": "source/reject_twins/analogue_buffer_reserve_count_type.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "usize",
"found": "u64"
}
}
]
},
"buffers/push_type.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "buffer.push into a buffer<own<u64>> receives a u64 value; source rejects the content type mismatch with E7005.",
"analogues": [
{
"source": "source/reject_twins/analogue_buffer_push_type.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "own<u64>",
"found": "u64"
}
}
]
},
"linear/array_count.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "A source list literal fixes its own array length and supplies every element. The AIR mismatch between declared array.make length and input count is generated mechanics; a source annotation mismatch is a different type rule."
},
"buffers/pop_return_type.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "The pop success binding type is generated from buffer<T>. Source outcome bindings cannot annotate an incompatible type; a later let annotation mismatch is a different rule."
},
"buffers/free_return_type.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "The free error binding is generated as the returned buffer<T>. Source cannot annotate that outcome binding as own<T>; a later variable annotation mismatch is a different rule."
},
"error_values/unknown_family.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a76",
"rule": "Only registered built-in error families lower to error.const. An undeclared family spelling in source is ordinary enum-name resolution (E7002); a user enum of that name lowers to enum.make @Name, never an unregistered error.const family."
},
"error_values/frozen_enum_make.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a76",
"rule": "Built-in error expressions lower to error.const with error_values and its closure. Source cannot choose the frozen legacy enum.make spelling for a built-in error family; user nominal enums use a distinct @Name type."
},
"phase3/reject/cfg_provenance_loan_join.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a734",
"rule": "The lent and plain task branches converge through br edges on one task block parameter; borrow.end precedes its join.",
"audited_context": {
"air": "d63e844a9e4593546aa541f4d0d01e462e08a81bf966b8377916ef596db50747",
"sources": {
"source/reject_twins/cfg_provenance_loan_join.aji": "80828caf5c8384040b847c889c2b3bb8872a28b3e88a0678694987e4813c8807"
},
"lowered": {
"source/reject_twins/cfg_provenance_loan_join.aji": "c909336bfc888a05db34d4941e70a0c83e5aa527d3453b1e0caeae7ec79000ec"
}
}
},
"phase3/reject/cfg_provenance_loan_br.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a734",
"rule": "A lent spawn result reaches the diagnostic block parameter by one br edge before borrow.end and join. The source also joins an initial idle task before spawning the lent one.",
"audited_context": {
"air": "1e33c13ef44b53714f2bbb7a058626103e484c234c27a1848e5409d2707f83ae",
"sources": {
"source/reject_twins/cfg_provenance_loan_br.aji": "86dfb422ed925b536913f95f0f51b3a00884acaeb6963db61127b2bc8c8e0d39"
},
"lowered": {
"source/reject_twins/cfg_provenance_loan_br.aji": "e74e73ba3e7bdbadd80009912bddb4c0f8dd269c41a9bdd34b0090fba4a2cb8b"
}
}
},
"phase3/reject/cfg_provenance_loan_backedge.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a734",
"rule": "The loop header task parameter merges an initial plain spawn with the lent back-edge spawn; the cbr exit passes it to another task parameter before borrow.end and join.",
"audited_context": {
"air": "8acad722e2fae6094e79ed52c8f2d040bc54c3c8365da81e7fff81cc19446c17",
"sources": {
"source/reject_twins/cfg_provenance_loan_backedge.aji": "54e08ad1129020fb69e910fbc92fb20effa1d1fcf738b952bb47a165d0e7f86e"
},
"lowered": {
"source/reject_twins/cfg_provenance_loan_backedge.aji": "35d6da75dd383edab75769a7ff4d939163ea5d2140f1b9fd9a29dd23399438a9"
}
}
},
"phase3/reject/cfg_provenance_cancel_arg.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a734",
"rule": "The cancelled task.join.cancel outcome handle crosses an ordinary br into a task block parameter before borrow.end and join. The source first joins an extra idle task on both outcomes.",
"audited_context": {
"air": "720ac5ecfb56d2140f4b255ebc113074b0caf986a624c079f77e8d40058f0488",
"sources": {
"source/reject_twins/cfg_provenance_cancel_arg.aji": "1a79585e2410e8b5d18515df92757b9ad33f54d502d9b6347b0115a03b122563"
},
"lowered": {
"source/reject_twins/cfg_provenance_cancel_arg.aji": "0b5394b7b1a32a500172ee6b8580f17aa0e045a35e171ca8c4bdb8f7a0767a84"
}
}
},
"phase3/reject/cfg_provenance_loan_access.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a734",
"rule": "A task holding the lent exclusive borrow crosses an ordinary br into a task block parameter; its parent writes the lent borrow before joining that handle.",
"audited_context": {
"air": "07f458dba0325dd9961f59d48ad019323b3e18d407ddee49eefee6bb78866fd4",
"sources": {
"source/reject_twins/cfg_provenance_loan_access.aji": "a1a8d0002fcfce0178ad53223cca6cc445ef4066f520439ad4e7cc12c9701ee2"
},
"lowered": {
"source/reject_twins/cfg_provenance_loan_access.aji": "cf19893fb50ceadef6b258ac261e48c9112669a42de63d5e8d28eb6a03e19645"
}
}
},
"phase1/reject/copy_overlapping.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/08-verifier.md \u00a711",
"rule": "slice.copy writes the same mutable slice through which its source shared borrow is live. Named slice borrows avoid creating a separate earlier temporary-borrow error.",
"required_ops": {
"slice.copy": 1,
"borrow.ref": 1
}
},
"phase3/reject/sync_unlock_live_borrow.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a740",
"rule": "mutex.unlock consumes a guard while its mutex.borrow child is still live. A source return transfers the child and its ancestors but still emits the structured unlock, which rejects E2102.",
"required_ops": {
"mutex.borrow": 1,
"mutex.unlock": 1
}
},
"phase1/reject/copy_borrow.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a75",
"rule": "Source borrows are not Copy values and cannot be duplicated by copy. Ordinary alias binding is a different E7006 invalid_binding rule; ref/mut reborrowing emits a new borrow, never AIR copy of a borrow."
},
"phase3/reject/sync_guard_parameter.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a73",
"rule": "guard<T> is not a source type and the lock guard is never a source value. Unknown guard spelling or a user nominal @guard cannot produce the reserved AIR guard_transfer parameter rule."
},
"phase3/reject/sync_guard_leak.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a77",
"rule": "Every normal exit of a source lock block emits explicit borrow endings and mutex.unlock. The guard is never a source value, so leaving that guard live at ret cannot be authored; traps terminate without a normal-path leak."
},
"phase3/reject/tasks_handle_as_parameter.air": {
"kind": "same_code",
"site": "function",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a733.1",
"rule": "A task<u8> parameter requires reserved task_transfer. Each full canonical repair header is validated against that module's declared features and the supplied closure; the missing closure is task_transfer on both sides. Unused arrays and mandatory source effects are header context, not the forbidden parameter rule.",
"feature_header_context": true
},
"phase2/reject/unknown_narrowing_form.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/05-effects-and-capabilities.md \u00a710.4",
"rule": "cap.narrow.budget is requested for cap<io.write>, which has no budget narrowing form; both diagnostics retain capability_kind io.write and form budget."
},
"phase2/reject/narrow_ok_arity.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a78",
"rule": "The authored cap.narrow.budget success arm omits its required capability binding; source reports E7005 before emitting an outcome target. The source analogue uses mem.alloc to isolate arity; AIR also has an invalid io.write narrowing form masked by its earlier arity rejection.",
"analogues": [
{
"source": "source/reject_twins/analogue_narrow_ok_arity.aji",
"codes": [
"E7005"
],
"fields": {
"outcome": "ok",
"expected": "1"
}
}
]
},
"phase2/reject/intrinsic_ok_arity.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a76",
"rule": "fs.open_read success must bind one file; the authored source binding list is checked before emitting its continuation.",
"analogues": [
{
"source": "source/reject_twins/analogue_intrinsic_ok_arity.aji",
"codes": [
"E7005"
],
"fields": {
"outcome": "ok",
"expected": "1"
}
}
]
},
"phase2/reject/fallible_without_targets.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a78",
"rule": "A fallible fs.open_read is used as a plain statement instead of an outcome match or or trap; source prescribes E7006 invalid_operation.",
"analogues": [
{
"source": "source/reject_twins/analogue_fallible_stmt.aji",
"codes": [
"E7006"
],
"fields": {
"reason": "invalid_operation",
"operation": "fs.open_read"
}
}
]
},
"std/endian_payload_type.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a713",
"rule": "The registered std.bytes.ReadU16 ok variant receives u32 rather than u16; source rejects the same payload mismatch with E7005.",
"analogues": [
{
"source": "source/reject_twins/analogue_endian_u32.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "u16",
"found": "u32"
}
}
]
},
"std/bounded_arithmetic_payload.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a713",
"rule": "A registered standard enum variant receives a bool payload instead of u64; source checks the payload before AIR.",
"analogues": [
{
"source": "source/std/bounded_math_payload.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "u64",
"found": "bool"
}
}
]
},
"std/text_utf8_payload.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a713",
"rule": "A registered standard enum variant receives a bool payload instead of u32; source checks the payload before AIR.",
"analogues": [
{
"source": "source/std/text_utf8_payload.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "u32",
"found": "bool"
}
}
]
},
"phase2/reject/resource_copy.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a75",
"rule": "Source only duplicates Copy values by plain use. A named linear file needs explicit move (E7003), which transfers rather than duplicates it; the frontend cannot emit AIR copy of a resource."
},
"phase2/reject/unknown_intrinsic.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a78",
"rule": "Only registered intrinsic names emit AIR intrinsic calls. An undeclared io.teleport in source is ordinary E7002 name resolution, not an unknown AIR intrinsic; user functions are emitted as ordinary calls."
},
"phase3/reject/channels_endpoint_element.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a738.1; docs/spec/15-source-language.md \u00a710",
"rule": "channel.make has sender<u64> elements, requiring reserved channel_transfer. Both sides retain that feature/construct at channel.make; this diagnostic supplies no closure or canonical repair header."
},
"phase3/reject/select_target_arity.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a77",
"rule": "A select send closed edge omits its unsent value binding. Source checks the authored binding list before emitting a continuation, with outcome closed and expected 1.",
"analogues": [
{
"source": "source/reject_twins/analogue_select_closed_arity.aji",
"codes": [
"E7005"
],
"fields": {
"outcome": "closed",
"expected": "1"
}
}
]
},
"phase4/reject/iref_eq_types.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a78; \u00a710",
"rule": "Equality compares iref<u64> and iref<u8>. Source checks operand types before emitting iref.eq.",
"analogues": [
{
"source": "source/reject_twins/analogue_iref_eq_types.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "iref<u64>",
"found": "iref<u8>"
}
}
]
},
"phase4/reject/island_alloc_via_ref.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a78; \u00a710",
"rule": "island.alloc receives a named shared ref<island<u64>> binding; allocation requires a named exclusive binding. Source rejects before AIR with found; it supplies no expected field.",
"analogues": [
{
"source": "source/reject_twins/analogue_island_alloc_ref.aji",
"codes": [
"E7005"
],
"fields": {
"found": "ref<island<u64>>"
}
}
]
},
"phase3/reject/cancel_shield_order.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a73; \u00a77",
"rule": "Source shields nest by construction and end in reverse order on every normal exit. Shield handles are not source values and cannot be block arguments. The reversed ending/renamed-stack context of this AIR cannot be authored."
},
"phase3/reject/cfg_provenance_shield_order.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a73; \u00a77",
"rule": "Source shields nest by construction and end in reverse order on every normal exit. Shield handles are not source values and cannot be block arguments. The reversed ending/renamed-stack context of this AIR cannot be authored."
},
"phase3/reject/cfg_provenance_shield_stack_join.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a73; \u00a77",
"rule": "Source shields nest by construction and end in reverse order on every normal exit. Shield handles are not source values and cannot be block arguments. The reversed ending/renamed-stack context of this AIR cannot be authored."
},
"phase3/reject/cfg_provenance_scope_alone.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a74; \u00a77",
"rule": "A source scope name is only a lexical identifier for task.spawn, never an ordinary assigned or yielded value. The renamed scope block parameter that is the subject of this AIR regression cannot be emitted. A plain unjoined-child E4301 would drop that context."
},
"phase3/reject/cfg_provenance_scope_task.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a74; \u00a77",
"rule": "A source scope name is only a lexical identifier for task.spawn, never an ordinary assigned or yielded value. The renamed scope block parameter that is the subject of this AIR regression cannot be emitted. A plain unjoined-child E4301 would drop that context."
},
"phase3/reject/cfg_provenance_guard_parent.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a73; \u00a77",
"rule": "The lock guard is never a source value; source branches inside the lock use the originating guard rather than transferring it as a block argument. This AIR regression explicitly forwards the guard through br before ending its parent, a context with no implemented source spelling."
},
"modules/nominal_call.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a75; \u00a710; \u00a714.2",
"rule": "A function receives a structurally identical but nominally distinct struct. The source analogue uses two local nominal declarations rather than package linking; the checked argument-type mismatch precedes AIR.",
"analogues": [
{
"source": "source/reject_twins/analogue_nominal_call.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "@PairA",
"found": "@PairB"
}
}
]
},
"phase0/reject/syntax_error.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "The missing comma is in the AIR text operand grammar, which source does not expose. A source syntax error uses a different grammar and E7001; malformed generated AIR instead reports E7900 as a compiler bug."
},
"phase2/reject/no_capability_comparison.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a78; \u00a710",
"rule": "eq.cap is not an AIR opcode and its undefined result adds E5001. Source equality on capabilities rejects by its operand type rule, before AIR; it cannot emit this absent opcode and invalid SSA context."
},
"phase5/reject/add_bool.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710; \u00a712",
"rule": "atomic.add.wrap is used on a bool cell with a bool operand. Source checks its integer-cell requirement before emitting the operation; found remains bool. Source anchors this at the bool value operand; AIR anchors it at the ref<atomic<bool>> cell operand.",
"analogues": [
{
"source": "source/reject_twins/analogue_atomic_add_bool.aji",
"codes": [
"E7005"
],
"fields": {
"found": "bool"
}
}
]
},
"linear/builtin_take.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a75; \u00a716",
"rule": "alloc_error is a Copy built-in enum. Ordinary Copy matches emit enum.switch, and move of a Copy value outside specialization is rejected; even specialized Copy matches remain non-consuming. Source cannot emit enum.take for this built-in."
},
"linear/copy.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a75; \u00a716",
"rule": "An aggregate containing own<u64> is linear. Plain named use in a consuming initializer requires move (E7003); move transfers rather than duplicates the aggregate. The source frontend cannot emit AIR copy of this linear struct."
},
"phase0/reject/unknown_opcode.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a78; \u00a710",
"rule": "Source has no spelling for arbitrary AIR opcodes. An unknown function name rejects in name resolution; the frontend emits only registered operations, so frobnicate plus the resulting undefined SSA value is an AIR-only malformed module."
},
"phase2/reject/borrow_parameter_not_from_allocation.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a74; \u00a75; \u00a719",
"rule": "The regression passes a borrow through br as a block parameter, requiring reserved borrow_joins. A source borrow is bound lexically by ref/mut, cannot be assigned as a variable or yielded by a nested block, if or match, and cannot reach the generated join as an ordinary value. No source spelling preserves this borrow-parameter context."
},
"linear/swap_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a725; docs/spec/15-source-language.md \u00a716",
"rule": "The array.make/unpack owner enters Maybe::some; value.swap replaces it with none. The original complete value is consumed only on the slot some arm and leaks at ret on the slot none arm. Full type tables and pinned AIR/source/lowering preserve that branch context; operation counts alone would allow leaking on the other arm.",
"match_type_declarations": true,
"audited_context": {
"air": "ffd1b3ae7fd6462601c7dd9044322d9d430ef798fa645b67763d0316df44c831",
"sources": {
"source/reject_twins/linear_swap_leak.aji": "c675d231336f17eadb39d7e63138a1c1b67500c464c59b09f31cb7ea1ff66ed5"
},
"lowered": {
"source/reject_twins/linear_swap_leak.aji": "6f9fa0d8ef40b75951c2a2042d1d171c221268301df18b38775b74a47f606cc7"
}
}
},
"phase5/reject/ordinary_load.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a728; docs/spec/15-source-language.md \u00a712",
"rule": "An ordinary load through ref<atomic<u64>> rejects E4202 with found and use atomic.load. The source wraps the created cell in an explicit linear struct so its shared field read reaches AIR; it unpacks and takes the cell afterwards. The rule does not depend on the carrier. Both actual operands must be the borrow used by the offending load; raw/source identities and positions remain exact.",
"required_ops": {
"atomic.new": 1,
"load": 1,
"atomic.take": 1
}
},
"phase3/reject/cfg_provenance_loan_cbr.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a74",
"rule": "The AIR regression passes the directly spawned lent handle as an argument to both cbr arm targets. Source if arms have no target arguments; loop-exit cbr arguments instead forward loop-header variables. The direct two-arm handoff context has no implemented source spelling."
},
"phase3/reject/cfg_provenance_loan_switch.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a74",
"rule": "The AIR regression passes a lent task as switch target arguments. Source integer/enum match arms have no target arguments; changing variables reach a subsequent br join. A later-merge E4302 would discard the switch-handoff context being tested."
}
}
}