test(soul): integration and contract tests for layered_cycle #13
Reference in New Issue
Block a user
Delete Branch "test/layer-composition"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
tests/test_layered_cycle.el— 12 integration tests for the fulllayered_cycle()L1->L2->L3->L1 composition stacktests/test_layer_contract.el— 14 contract tests verifying the JSON interface shapes between layerslayered_cycle()because it is not yet exported fromsoul.elh(review finding #3); replacerun_layered_cycle()with a direct call once the header is regeneratedIntegration tests (test_layered_cycle.el) — 12 cases
Contract tests (test_layer_contract.el) — 14 cases
Addresses review findings
Adds tests/test_layered_cycle.el — 12 integration tests covering the full L1→L2→L3→L1 stack: benign pass-through, hard-bell short-circuit, soft-bell care augmentation, steward redirect for all 5 mission-conflict signals, empty input graceful handling, sequential call isolation, and imprint state stability. Adds tests/test_layer_contract.el — contract tests verifying the JSON interface shapes between layers: safety_screen {action, content|reason|concern}, steward_align {action, content|redirect_to}, imprint_respond non-empty String, and cross-layer action propagation from L1 screen through to L1 validate.