Skip to content

feat(seal): make seal — 4 core ALLOW/BLOCK cases - #2

Merged
tangyf07 merged 2 commits into
mainfrom
feat/seal-four-cases
Sep 8, 2026
Merged

feat(seal): make seal — 4 core ALLOW/BLOCK cases#2
tangyf07 merged 2 commits into
mainfrom
feat/seal-four-cases

Conversation

@tangyf07

@tangyf07 tangyf07 commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add make seal / scripts/seal.py: exactly 4 core cases in stable order (legal → PII → schema → expired).
  • Stdout: ALLOW/BLOCK + rule_id + structured evidence JSON; non-zero exit on mismatch.
  • SEAL.md (~3 min) linked from README top; honest boundary 非生产唯一边界. make demo unchanged.

Test plan

  • python scripts/gen_seed.py && python scripts/seal.py → 4/4 matched (ALLOW/ok, BLOCK/pii_column, BLOCK/schema_hallucination, BLOCK/expired_partition)
  • pytest -q tests/test_demo_cases.py green

Add scripts/seal.py + make seal for legal/PII/schema/expired in fixed
order with ALLOW|BLOCK, rule_id, and evidence JSON. Document in SEAL.md
and link from README top. Keep make demo walkthrough unchanged.
Keep seal idempotent when re-run without a fresh seed.
@tangyf07
tangyf07 merged commit ef7aa59 into main Sep 8, 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.

1 participant