Database: return typed operational KB entries from singular fetch #79

Closed
nsaspy wants to merge 2 commits from hackmode-rage-database/typed-operational-kb-fetch-20260831 into master
Owner

Slice

Fix the singular operational-KB read boundary so callers receive the typed operational-kb-entry contract rather than a raw Tek9 graph node.

Tracking: #24 / #27 database-owned operational-KB boundary.

RED

Current test-only head 4f9ff2ae415aa914a9219886fd3194c99df5d7b3 persists a canonical assertion and requires fetch-operational-kb-entry to return an operational-kb-entry. Current master leaks a raw tek9:node, so the new executable regression should fail in the core ASDF test gate.

Intended GREEN

Decode and validate the fetched canonical graph node through the existing typed operational-KB decoder while preserving NIL for a missing stable ID and operation scoping. No Hackpert/expert/provider behavior and no shadow persistence authority.

## Slice Fix the singular operational-KB read boundary so callers receive the typed `operational-kb-entry` contract rather than a raw Tek9 graph node. Tracking: #24 / #27 database-owned operational-KB boundary. ## RED Current test-only head `4f9ff2ae415aa914a9219886fd3194c99df5d7b3` persists a canonical assertion and requires `fetch-operational-kb-entry` to return an `operational-kb-entry`. Current master leaks a raw `tek9:node`, so the new executable regression should fail in the core ASDF test gate. ## Intended GREEN Decode and validate the fetched canonical graph node through the existing typed operational-KB decoder while preserving `NIL` for a missing stable ID and operation scoping. No Hackpert/expert/provider behavior and no shadow persistence authority.
fix(database): return typed operational KB entry
Some checks failed
agent-pr-serialization / one-open-pr-per-agent-lane (pull_request_target) Failing after 2s
agent-framework-boundary / keep-agent-framework-out-of-product-tree (pull_request) Successful in 23s
core / common-lisp-core (pull_request) Failing after 1m2s
monorepo / hygiene (pull_request) Successful in 2m50s
e23b6bdc8e
nsaspy closed this pull request 2026-09-04 20:55:40 +00:00
Some checks failed
agent-pr-serialization / one-open-pr-per-agent-lane (pull_request_target) Failing after 2s
agent-framework-boundary / keep-agent-framework-out-of-product-tree (pull_request) Successful in 23s
core / common-lisp-core (pull_request) Failing after 1m2s
monorepo / hygiene (pull_request) Successful in 2m50s

Pull request closed

Sign in to join this conversation.
No description provided.