Context
An agent finds bugs only if something defines "bug." These oracles assert properties that hold regardless of what the model or user did. Most are DB assertions and reuse the #397 psycopg fixtures. Open bug #355 (duplicate subject_root node) is live proof the duplicate-node invariant catches real defects.
Scope
Assert, after any exploration session:
- Every extracted graph node traces to a chunk that exists in
documents. - No duplicate nodes for the same concept within a document.
- Mastery is monotonic under correct answers.
- Quiz questions reference only nodes the user owns.
- No 500s, no unhandled console errors, no unencrypted PII in any raw column touched during the run.
Acceptance criteria
Dependencies
Depends on: #399, #397
Blocks: #401
Chapter: 2 (Agent Explorer) | Lane: agent | Size: M | Suggested owner: Jack
Part of epic #403
Context
An agent finds bugs only if something defines "bug." These oracles assert properties that hold regardless of what the model or user did. Most are DB assertions and reuse the #397 psycopg fixtures. Open bug #355 (duplicate
subject_rootnode) is live proof the duplicate-node invariant catches real defects.Scope
Assert, after any exploration session:
documents.Acceptance criteria
Dependencies
Depends on: #399, #397
Blocks: #401
Chapter: 2 (Agent Explorer) | Lane: agent | Size: M | Suggested owner: Jack
Part of epic #403