Repository navigation
Spaces: a bot drafts a live panel for Today, and a routine keeps it current - #302
Merged
Merged
Conversation
…urrent A space is a card, an HTML app page and a Hermes scheduled task that updates both. Nothing is scheduled until the person adds the draft in the app. A script routine is a no_agent job, so its updates use no AI. Six native routes serve the app, behind native-spaces-v1. Closes #301 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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 #301
A person cannot keep a live page from a bot on the app's home. This change adds spaces: a panel on the app's Today tab, a page behind it, and a routine that keeps both current.
How it works
bighelp_draft_spacemakes a draft from a chat: a card, an HTML app page and a routine. The draft card (space_draft) tells the person how often the space updates and if each update uses AI.spaces/addis the only path that creates the Hermes job, and only the app calls it.no_agentHermes job. Its shim callsspaces.run_scheduled, which runs the collector script of the bot and stores its JSON output. No model turn occurs. A test runs a real Hermes job withrun_agentblocked and checks that the card changed.bighelp_update_spaceandhermes bighelp space updatechange the card and the page data from a tool call or from a script.spaces/list,get,add,update,refreshanddelete. Each mutation has anoperationId, so a retry does nothing twice.native-spaces-v1. It is inLATE_FEATURES, so apps that take 64 features do not lose one.docs/SPACES.mdhas the full contract.Trust boundary
This change adds a path that runs a script from a schedule. A review found a code injection in the first version of the shim. This change corrects it.
.pyor.shfile in the working folder of the bot. The plugin does the same check at the draft, at Add and before each run. It refuses Hermes folders, the home of the bot and names that look like credentials.script_changeduntil the bot makes the draft again and the person adds it again.Tests
tests/test_spaces.py,test_spaces_routine.py,test_spaces_tools.pyandtest_spaces_api.pyare new. With the HTML app, card, context and telemetry suites, 340 tests pass on Python 3.14 with Hermes 0.23.1.main: 13 intest_native_startup_loggingand 1 intest_registration.safe, the same asmain.Not done
available()checks thatcreate_jobacceptsno_agentand does not list the feature without it.Claude Fable 5.2 made this change in Claude Code.
🤖 Generated with Claude Code