Repository navigation
docs: app agents, the system agent and in-card chat as on 2026-10-01 - #142
Merged
Merged
Conversation
Bring the app-author docs up to OctoSense main f52620c (App Hub 58c3c8ae, octos ae230ce0, Octoscript 5991dfae, Octoscript-Makepad 8f103d0c) and App Hub main 41bc959: - AI-SERVICES (en, zh-CN): a section on the system agent and app agents (who has one, first use, peer_list/peer_send_input, two lanes, questions, purge); how the person talks to an app's agent directly (the "Ask <app>" panel, in-card chat, the app's own octos.* calls); what an app's agent gets today (ask_user_question, files.* read tools, host-service tools only for system apps, implemented_by "app" refused); the storage block (accounts, agent_workspace); outward and auto_approvable; the approval router, audit and relay budgets; script glance cards and notify; Mail and Calendar agents publishing cards; the toolbox for system apps behind toolbox-peers; sys.digest checker merged, host side still OctoSense#87; a new section on model-copy and sys.chat; the version skew of this repository's pinned runtime. - CAPABILITIES: research and crawl rows, prompt vs ask_user_question, the agent row (no longer "nothing runs it"), storage fields, reserved names; KNOWN_CAPABILITIES now in crates/app-contract. - HOST-SERVICES: OctoSense#204 merged, calendar service, mail.notify, service methods as agent tools, Mail secrets folder. - GLOSSARY, SCRIPT-API, README (en, zh-CN), AGENTS.md: the same facts. hub check outputs marked "run 2026-10-01" came from a hub built from App Hub main 41bc959; nothing was run in an OctoSense shell. Co-Authored-By: Claude Opus 5.5 <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.
Brings the app-author docs up to how OctoSense runs app agents on 2026-10-01: OctoSense
mainf52620c(pins App Hub58c3c8ae, octosae230ce0, Octoscript5991dfae, Octoscript-Makepad8f103d0c) and App Hubmain41bc959. Docs only.Builds on #141 (guofoo, merged as
43da4310): this branch starts from that merge, keeps its AI services / host services / sockets content and extends it with what landed after it (OctoSense #190–#267). It does not touch the lines #121 (BH3GEI, open) changes: #121's hunks are README.md around line 139, README.zh-CN.md around line 129, QUICKSTART.md, FLOW.md andtools/octo; this PR changes README.md from line 240 on, README.zh-CN.md from line 221 on, and neither QUICKSTART.md, FLOW.md nortools/octo.What changed, and why
docs/AI-SERVICES.md and docs/AI-SERVICES.zh-CN.md (same content in both)
sys.chat. (3) The app's ownoctos.*calls. The approvals surface's Stop stops both lanes. The phone has no touch entry to the panel yet. Code:crates/shell/src/app_chat/mod.rs,shell/menu.rs(setup.assistant.ask),approvals/mod.rs(stop_agent),mobile_app.rs.card.<id>), what the system agent does (peer_list,peer_send_input,peer_gather,agents.list/agents.ask), two lanes, question routing (10-minute deadline), and purge on uninstall. Code:crates/shell/src/agents.rs,crates/ai-host/src/contained.rs,crates/shell/src/questions/mod.rs,crates/app-peers/src/broker.rs; #248.ask_user_question, the only kernel tool the gate allows (App Hub fix(nav): mirror drive-ETA centering into app.md embedded card #37, OctoSense tools: snap-to-png.py — headless widget-tree rendering for review/iteration (no display needed) #190). It getsfiles.list/read/searchover its account folder (#205, Unix only). It also gets itstools.jsontools, but these run only on a host service of the app's namespace, so only system apps' tools run.implemented_by: "app"answers an error. The generic host tools (net.fetch,storage.*, …) are admitted but implemented by no shell. Code:crates/shell/src/host_tools/{mod,script_apps,files,relay}.rs.storageblock (accounts,agent_workspace,cache_max_bytes; App Hub fix(plan): drop a redundant borrow the 1.97 clippy gates on #44). Also covers the account folder layout the system apps adopted (#229), per-account agents (#233) andread_parent(#249).sys.digest: was "coming". Now the checker is merged (OctoScript ci: add clippy-gated CI; zero out own-crate warnings #40, OM Implement Attrs.elevation: the first shadow the renderer has drawn #50, in the shells' pin); the host side is still Unify on the org mains: Octoscript, Octoscript-Makepad and one makepad line #87 (open).os.*apps that declareresearch(none do yet), and has the toolstoolbox.search/web_read/deep_crawl(crates/ai-host/src/toolbox_peers.rs,phone/Cargo.toml).ask_user_question, host read tools, per-account agents and purge, the Mail and Calendar agents' card tools (#267), and model text plussys.chat(#263, OctoScript Mono glyphs and single-hue bars in every mood, not just photo #53, OM The photo hero needed stroke weight, not scrim strength #68).outwardandauto_approvable(App Hub fix(plan): drop a redundant borrow the 1.97 clippy gates on #44). Adds the router order and that rule conditions fail closed (#215), that every argument row must be seen before Approve (#218), and the audit tologs/tool-calls.jsonl(#222). Adds that an app'strigger: "person"does not count as the person's turn for approval rules (#215), and the relay budget of 32 calls a turn and 1000 a day.script(interactive Splash) cards,notify, tiles as background surfaces (#204), host services publishing for an agent (mail.notify,calendar.notify/agenda, #267), andOCTOSENSE_GLANCE_DEMO=mail(crates/shell/src/glance.rs).model-copyand text-slot rules and the AI mark, thesys.chat/ChatEntryexample from OctoScript'schat.card, and the host rules (publisher only, the host's transcript, user-only appends, limits, storage inaccounts/<account>/chat/). It also says where chat is answered: the desktop card window and AppCard, not the Card runner or the phone's glance page. Code:crates/l0-chat/src/lib.rs,crates/shell/src/glance_chat.rs, OctoScriptdocs/ui-profile-l0.md§4.2 and §5.15.58c3c8ae, and the manifest rules now come fromoctosense-app-contract1.x (ADR 0005). Also: this repository'snative-runtime.lock.json(OMcb66de07→ Octoscriptdbd48cfb) predatessys.digest,sys.chatand model text in text slots.Add an account in the app before using its assistant,This app's manifest does not declare that assistant service. New peer methods:peer/tools/unregister,peer/purge.KNOWN_CAPABILITIESmoved tocrates/app-contract/src/manifest.rs.docs/CAPABILITIES.md
researchandcrawl. They need theresearchscope object, and the shells grant them only toos.*apps for now.prompt: points toask_user_question. #204 is now merged.agentrow: was "Nothing runs this agent yet …, which the shells' pinned App Hub refuses". Now it says what the shells actually give the agent.storage.*fields and for reserved names (RESERVED_NAMES, App Hub fix(plan): drop a redundant borrow the 1.97 clippy gates on #44).docs/HOST-SERVICES.md
may_promptis false for tiles and tool calls.calendarservice row and amail.notifyrow.secrets/os.mail/(#223).KNOWN_CAPABILITIESpath.docs/GLOSSARY.md
sys.chat.researchandcrawlto the capability list. Updates the manifest schema path.docs/SCRIPT-API.md: #204 is merged.
README.md, README.zh-CN.md (kept in sync)
card-host.researchandcrawl. Removes "nothing yet". Adds storage fields and reserved ids.AGENTS.md
hub check.sys.chat,sys.digestor model text cannot be verified with this repository's runtime.Verified
python3 tools/check-links.py:0 broken, 0 pending. A local anchor check over every changed file (en and zh-CN headings) found no missing anchors.python3 -m unittest discover -s flows/tests -p 'test_*.py': 11 tests OK.hubfrom App Hubmain41bc959(theapp-contract,app-policyandapp-hubcrates) and ranhub stampandhub check --allow-unsignedon atools/octo newbundle. Every output marked ✓ run 2026-10-01 comes from this run:ask_user_questionagent: accepted.web_searchinagent.tools: refused.mail.sendinagent.tools: refused.outwardon a read tool: refused; on an act tool: warned.dev.example.terminal: refused as reserved.researchwithout a scope: refused.schema_minor0: refused.storage.accountsandagent_workspace: accepted.Not verified
f52620c, and the PRs it cites state what they ran.accounts/device/is marked unverified.Open questions for reviewers
native-runtime.lock.jsonmove to an Octoscript-Makepad that has OctoScript Mono glyphs and single-hue bars in every mood, not just photo #53 (for example8f103d0c), so thatcard-hostandcard-studiohere can checksys.chat,sys.digestand model-copy cards? That is a runtime change, not docs, so it is left out of this PR.sys.digesthost side (Unify on the org mains: Octoscript, Octoscript-Makepad and one makepad line #87) is still open, so the docs mark it "coming".🤖 Generated with Claude Code