Skip to content

docs: add a worked 'author a new case' walkthrough to CONTRIBUTING - #30

Merged
bamdadd merged 1 commit into
bamdadd:mainfrom
dchaudhari7177:docs/author-a-case
Jul 22, 2026
Merged

docs: add a worked 'author a new case' walkthrough to CONTRIBUTING#30
bamdadd merged 1 commit into
bamdadd:mainfrom
dchaudhari7177:docs/author-a-case

Conversation

@dchaudhari7177

Copy link
Copy Markdown
Contributor

Closes #11.

CONTRIBUTING.md jumped from Setup straight to Good first issues, so adding a case meant reverse-engineering cases.py. This adds an Author a new case section:

  • a copy-pasteable leak-case spec dict (I verified it actually builds via _build(family="delayed", canary_where="onpath", secrets=[], **spec)),
  • the spec fields and how {canary}/{attacker} are substituted,
  • the on-path rule — the event date lives only in onpath_body, never in user_task (else the injection is off-path),
  • the utility-keyword rule (keyword must be in title),
  • the decoy guard for assembly-style gap cases (4 secrets = 1 real + 3 decoys, no decoy may carry the real canary, checked with the real scorer),
  • the verify commands (leakgauge --model stub:demo --suite all + pytest), which I ran — every case builds.

Links docs/DESIGN.md. No source changes.

CONTRIBUTING jumped from Setup to Good first issues with no guidance on
adding a case, so a contributor had to reverse-engineer cases.py. Add an
'Author a new case' section with a copy-pasteable leak-case spec (verified
to build), the spec fields, the on-path rule (the date lives only in the
injected email, never in user_task), the utility-keyword rule, the gap-case
decoy guard (4 secrets, no decoy carries the canary), and the verify
commands. Links docs/DESIGN.md. Docs only.

Closes bamdadd#11
@bamdadd
bamdadd merged commit 7825008 into bamdadd:main Jul 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a worked "author a new case" walkthrough to CONTRIBUTING

3 participants