feat(lampstand): semantic parse + fail-closed router (campaign gap #6) - #37
Merged
Conversation
The Spotlight replacement's core logic: NL query → typed tokens + resolved intent (lampstand_parse) → governed routing (lampstand_route). Discover routes to sherlock (IR); operate/egress needs an owner grant; destructive/unrecognized fails closed to the Governor. to_turn() projects a query into a Turn Witness feed turn, closing the loop to the surface. 12 tests + CI workflow. Rule/lexicon v0 → learned App-Intents next.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Turns the lampstand launcher prototype into real service logic — the Spotlight replacement's core (feature-gaps-zero #267 gap #6).
tools/lampstand_parse.py— NL query → typed tokens (the annotation tree the launcher + Turn Witness render) + resolved{intent, object, scope, purpose, space, admissible}. Purposes follow the consent plane; a destructive operate is marked so it can never self-authorize. Rule/lexicon v0 — a transparent baseline for the learned App-Intents model, not a permanent dictionary.tools/lampstand_route.py— fail-closed routing: discover → sherlock (IR)/holmes; operate/egress → consent-plane (owner grant); destructive/unrecognized → Governor (deny).to_turn()projects a query into a Turn Witness feed turn, closing the loop to the surface.python -m pytest) +.github/workflows/lampstand.yml.Verified locally: 12 pass; the three canonical queries route allow/consent/deny correctly.