feat(surfaces): wire B11/E11/turn-witness to a live feed (campaign gap #4) - #269
Merged
Conversation
…#4) Each Tier-2 surface fetches ./data/<name>.json (or window.SURFACE_FEED_URL), falls back to embedded seed, and shows a truthful LIVE/SAMPLE provenance badge. Adds tools/build_surface_feed.py (validates shape, stamps provenance/generated_at) + 7 tests + data feeds + data/README. JS syntax-checked; producer round-trips.
8 tasks
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.
Closes the '#4 wire surfaces to live state' item of the feature-gaps-zero campaign.
The Tier-2 surfaces no longer hard-code their data. Each now:
./data/<name>.json(orwindow.SURFACE_FEED_URLwhen the shell injects a live endpoint) at load;Added:
docs/surfaces/data/{b11,e11,turn-witness}.json— the feeds (currentlyprovenance: "sample"seeds).tools/build_surface_feed.py— the producer/seam: validates required keys per surface, stampsprovenance+generated_at, emits the feed. Runtime calls it with real state (netwatch snapshot · consent-plane catalog · receipt stream · App-Intents parser) →provenance=live.tools/test_build_surface_feed.py— 7 tests (green).docs/surfaces/data/README.md+ doctrine note.Verified: 7 pytest pass · all feed JSON valid · all three wired surfaces pass
node --check· producer round-trips and preserves extra keys (b11state).