-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
phase:kernelKernel orchestrationKernel orchestrationpriority:criticalBlocks other workBlocks other worktype:testTest coverageTest coverage
Milestone
Description
Summary
End-to-end integration tests for the Kernel using InMemoryDriver.
Tests in tests/test_kernel.py
- Happy path: register capabilities + driver → request → grant → invoke → verify Frame has facts/handles → expand handle → verify expanded data → explain action → verify trace
- Policy denial: attempt WRITE without writer role → catch PolicyDenied → verify denial_reason
- Expired token: issue token with ttl=0 → sleep briefly or mock time → invoke → catch TokenExpired
- Driver fallback: register two implementations, first raises DriverError → kernel falls back to second → success
- PII redaction in full flow: invoke capability with PII sensitivity → verify redacted fields in Frame → verify warning
Acceptance criteria
- All 5 test scenarios implemented and passing
- Tests use conftest fixtures for registry + kernel setup
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
phase:kernelKernel orchestrationKernel orchestrationpriority:criticalBlocks other workBlocks other worktype:testTest coverageTest coverage