test(stewardship): comprehensive test suite for Layer 2 — 35 cases #12
Reference in New Issue
Block a user
Delete Branch "test/layer-stewardship"
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_stewardship.elwith 35 distinct test cases covering all five public functions instewardship.elassert_eq/assert_contains/assert_not_contains/assert_not_emptyhelper pattern with labelled PASS/FAIL outputfeat/layer-stewardshipto validate the branch before merge to mainTest cases
steward_align— pass-through (normal, empty), all five signal keywords, redirect shape,json_getfield extractionsteward_validate_imprint— standard tools always authorized; all four platform-only tools blocked withoutplatform_auth; authorized withplatform_auth=true; auth string"false"is deniedsteward_cgi_check— all four gated actions returnapproved==falsewithcgi_review; non-gated returnapproved==true; gated result echoes action namesteward_get_mission— non-empty, contains"integrity", not an error JSON objectKnown issues documented by tests
steward_get_missionnon-Config fallthrough (lines 41-43) — TC-28/TC-29 will surface unexpected content if a non-Config engram overrides the mission&&operator (line 31) — if El does not support&&, mission tests surface the compile failure immediatelysteward_log_eventVoid/String type mismatch (line 14) — exercised indirectly by every misalignment/auth-denied eventTest plan
elc tests/test_stewardship.elPASS:FAIL:lines in outputstewardship.el, re-run to confirm no regressions