Research schemas accept trailing line terminators in identities and SHA-256 strings #646
Labels
No labels
bug
cli
core
docs
event
experiment
figure
invariant
metrics
oracle
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
provenance
revocation
tests
workload
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#100 Phase 2: Implement immutable intent tapes
erikinkinen/AES
Reference
erikinkinen/AES#646
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Discovered during P2-09 (#100) independent tape-schema validation against accepted main
e36da8b557.The shared identity pattern and SHA-256 patterns end with
$. JSON Schema regex matching permits that anchor immediately before a final line terminator. With jsonschema 4.23.0 / Draft 2020-12, a valid event changed only toevent_id = "1\n"orstate_sha256 = <64 lowercase hex characters> + "\n"still passes the checked-in research-event-v4 schema. The v4 decoder correctly rejects both. The checkpoint schema uses the same identity definition and permissive hash patterns.A baseline valid event passes both schema and decoder. The two one-field mutations pass schema but return
errorfromaes_research_event_codec_tests --classify-lines. Local preserved reproduction:/tmp/aes-phase2-execution/schema-terminator-probe/(accepted schema copies, three JSONL fixtures and probe-results.json).Impact: schema-only validation can misclassify malformed provenance identifiers/digests as valid. The decoder remains strict; this is a schema/codec contract mismatch, not evidence that malformed events can execute. The new intent tape schema inherits the identity definition and must receive the correction before P2-09 acceptance.
Milestone: Phase 2. Labels: bug, event, invariant, tests, phase-2. This issue blocks P2-09 acceptance; it does not change the frozen scientific protocol.