test(verify): reproduce malformed TRACE Claim shape escapes - #596
test(verify): reproduce malformed TRACE Claim shape escapes#596altrudev wants to merge 3 commits into
Conversation
Signed-off-by: altrudev <266135212+altrudev@users.noreply.github.com>
|
🟡 Contributor Check: MEDIUM
Automated check by AgenTrust Contributor Check. |
|
Batch response for this cluster is here: agentrust-io/agent-manifest#357 (comment) Short version: the finding class is real and welcome. Your CI had never run, held under first-time-contributor gating, until I released 36 runs across your PRs an hour ago, and five of your eight are now red. Please fix those, sequence trace-spec#258 against #252 which touch the same two files, and tell me the order you want them reviewed in. |
|
I reconciled the released CI failure. The red step was Because this PR is explicitly a draft test-first reproducer, I also changed the current-head behavior at I am keeping #596 out of the review queue until the implementation/precedence decision is ready. Fresh CI is currently waiting on workflow approval; no green claim yet. |
What
Executable reproducer for #592.
This draft adds a focused malformed-shape matrix for
verify_trace_claim()and intentionally asserts only the behavior already uncontested in the issue:The vectors cover malformed
trace,cnf,jwk,jwk.x,gateway,audit_chain, andattestation_evidenceintermediates.Why test-first
There are two effects in the current path:
TypeError/AttributeErrorafter schema validation has already failed; andCLAIM_MALFORMEDresult overwritten by signature/key-binding failures.The first invariant is clear. The second is a failure-precedence decision that I do not want to encode implicitly before maintainer review. This draft therefore makes the exception-safety defect executable while leaving the precise precedence rule open.
Baseline
Pinned to
2c0a601805bfb31fddc49db32ae122bae8e2251e.Expected current result
The matrix is expected to fail on the malformed shapes that currently escape. It is a reproducer, not a claim that the implementation is already fixed.
Once the precedence rule is confirmed, the implementation should remain narrow: either make schema validity a prerequisite for structure-dependent checks, or make those checks independently object-safe without allowing later results to launder the established schema failure.
No schema or wire-format change is proposed.
AI-assistance disclosure: ChatGPT assisted with source triage, adversarial matrix design, and drafting.
altrudevreviewed the bounded claim and remains responsible for the contribution.