Skip to content
Back to skills

Rule Daemon Host Tools Render

ASecurity

Host tools — the sink broker base, tools kept past the turn, receipts, the render tools, show_artifact, propose_plan, notify_user, description audit and member sinks. A repository rule for apps/daemon/src/v1/mcp/*.ts, apps/daemon/src/v1/mcp/controllers/**, apps/daemon/src/v1/mcp/services/**, apps/daemon/src/v1/mcp/tools/*.ts, apps/daemon/src/v1/mcp/tools/show-*/**, apps/daemon/src/v1/mcp/tools/artifact-answers/**, apps/daemon/src/v1/mcp/tools/propose-plan/**, apps/daemon/src/v1/mcp/tools/noti...

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsgo

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add geniro-io/geniro-app --skill rule-daemon-host-tools-render --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rule Daemon Host Tools Render?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rule Daemon Host Tools Render
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/geniro-io-rule-daemon-host-tools-render/badge)](https://www.skillsdirectory.com/skills/geniro-io-rule-daemon-host-tools-render)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rule-daemon-host-tools-render
description: "Host tools — the sink broker base, tools kept past the turn, receipts, the render tools, show_artifact, propose_plan, notify_user, description audit and member sinks. A repository rule for apps/daemon/src/v1/mcp/*.ts, apps/daemon/src/v1/mcp/controllers/**, apps/daemon/src/v1/mcp/services/**, apps/daemon/src/v1/mcp/tools/*.ts, apps/daemon/src/v1/mcp/tools/show-*/**, apps/daemon/src/v1/mcp/tools/artifact-answers/**, apps/daemon/src/v1/mcp/tools/propose-plan/**, apps/daemon/src/v1/mcp/tools/notify-user/**, apps/daemon/src/v1/agents/**/host-*, apps/daemon/src/v1/agents/**/*.broker*, apps/daemon/src/v1/agents/**/artifact-*, apps/daemon/src/v1/agents/**/chat-artifacts*, apps/daemon/src/v1/agents/**/gallery-*, apps/daemon/src/v1/agents/**/remote-image*, apps/daemon/src/v1/agents/**/surface*, apps/daemon/src/v1/agents/**/a2ui/**, apps/daemon/src/v1/agents/**/write-containment*; read it before editing a file there."
---
<!-- GENERATED by scripts/sync-agent-rules.mjs from .claude/rules/daemon-host-tools-render.md. DO NOT EDIT: edit the source, then run `pnpm sync:agent-rules`. -->

# Host tools

geniro's render and card tools (`show_chart`, `show_metrics`, `show_comparison`, `show_gallery`, `show_ui`, `show_artifact`, `artifact_answers`, `propose_plan`, `notify_user`, `publish_action`, `remove_action`, `monitor`, `stop_monitor`, `list_monitors`, `team_note`, `team_notes`, `record_outcome`, `milestone`, `goals`, `move_stage`, `read_teams`, `propose_team`; the shared memory's four tools are in `.claude/rules/daemon-memory.md`, the knowledge store's three in `.claude/rules/daemon-knowledge.md`). Layout and wiring: `mcp-tools.md`. Brokers live in `v1/agents/services/` over `HostSinkBroker`.

- `HostSinkBroker`: the disposer is identity-checked (per entry) and `deliver` never throws. Keep both in the base only. Per-sink facts go in `register`'s options (`answersAtOnce`) and leave with the sink; never keep a side set beside it.
- A chat's tools that hold nothing of the turn (`show_chart`, `show_metrics`, `show_comparison`, `show_gallery`, `show_ui`, `show_artifact`, `notify_user`, `publish_action` / `remove_action`, `record_outcome`, `milestone`, the monitor tools, and an analysis's own tools — `.claude/rules/daemon-thread-analysis.md`) stay registered past it (`ChatService.keepHostTools`, each row written on its own fork), because the CLI opens a stretch by itself when a background command reports. A team's stay between passes on the same terms. The next turn's registration replaces them; a start that failed and a deleted run drop them. A card that parks on the user (`ask_user_question`, `propose_plan`, `propose_team`, `save_project_instructions`) still dies with its turn, which sweeps it, and answers that no turn is running. The monitor tools stay only where the call is put to the user first (`hostToolCallUngatedReason` null), since the approval chip can move while no turn runs.
- The tool result is a receipt; the row is the only copy of the payload.
- A card is attributed to a delegate only when the turn is held, exactly one delegate is open, and its launching call is known (`attributableDelegate`). Otherwise null; never guess.
- Positional payloads (`show_chart` series vs `labels`, `show_comparison` cells vs `options`): blank an unreadable entry, never drop it, and re-align on both sides (renderer twin). A gallery is a set; drop unreadable entries.
- `show_metrics`: figures are preformatted strings (never coerce); sentiment is stated, and an unknown value reads as absent.
- `show_comparison`: recommendation is matched to an option by name (case- and whitespace-insensitive).
- `show_gallery` carries paths only; the daemon never opens a local one, and the renderer reads them through the image route's guards. An http(s) entry is downloaded by the daemon when the tool is called (`GalleryImageService` over `utils/remote-image.ts`, public hosts only — `.claude/rules/network-constraints.md`, item 7), stored with the run's attachments, and the row names that file with the URL as `source`; a failed download drops that tile and the receipt names the URL and why. Outside `auto`, a call naming a URL is put to the user (`hostGalleryDownloads` in `autoApproves`, the between-turn approval included); a call that cannot be drawn or was cancelled deletes what it downloaded. `MAX_GALLERY_IMAGES` bounds reads and downloads per call.

- `show_ui` (A2UI v1.0, basic catalog; `utils/a2ui/`, `SurfaceService`, `SurfaceMediaService`):
  - One call carries the messages for ONE surface, validated whole before anything is stored (`readA2uiMessages`: the vendored schemas through `@cfworker/json-schema`, draft 2020-12, the catalog's `components`/`functions` re-homed into `$defs`), then applied to the stored snapshot (`applyA2uiMessages`: root, dangling ids, cycles, the caps). A refusal names a JSON pointer and a reason, never a stack; nothing is written. v0.8 names, `callRendererFunction`/`agentFunctionResponse`, a regex that backtracks badly, a bound media url and a Button `functionCall` other than `openUrl` are refused.
  - One row per draw (`{surfaceId, version, op, title}`); the card is the `ui_surfaces` row, drawn where its `create` row stands and redrawn in place. A card belongs to the member that drew it; another member's update is refused.
  - Media urls are literal strings: an http(s) one is downloaded (`.claude/rules/network-constraints.md`, item 7), a local path is copied from the run's folder or the temp dirs (`openArtifactFile` over `localMediaRoots`), each judged by bytes, and the stored card names `geniro-media:<file>`. A file a later version stops showing is removed after its row lands.
  - Saved field values are drafts on the row (`PUT …/surfaces/:surfaceId/drafts`, quoting `version`, `409 UI_SURFACE_CHANGED`); an obscured TextField's value is refused there and never stored. An agent's write to a pointer the user changed wins and is listed in `overriddenDrafts` (user decision).
  - A press (`POST …/surfaces/:surfaceId/press`, the chat's and the team's) sends the button's event as a user message: its words, the data-not-instructions line and a `randomFenceTag` fence holding the A2UI `action` envelope with the context the renderer resolved. Every obscured value in the changes or the context is registered as a secret and masked in the stored row (`storedText`); a `geniroOneShot` button presses once. A member's card is pressed into its call while it runs, else to the lead, prefixed with who drew it.
- `show_artifact`:
  - An optional `kind` (`ArtifactKindSchema`: plan, report, acceptance, review, comparison, prototype, other; an unknown one is ignored) names what the page is for the Inbox card's page buttons. It is sticky: `meta.json` keeps it beside `key` and `version`, a revision that leaves it out keeps the previous one (`readMeta` reads it back), and the announcing row (`hostArtifactRowOf`, the one row builder both publish sites share) carries the effective kind, which the listing (`RunArtifact.kind`) and the renderer's `readPublishedArtifact` read like `title`.
  - Never `srcdoc`, except inside a share envelope (`v1/shares`), where the page is decrypted in the reader's browser under the same CSP as a meta tag. The frame's sandbox and CSP: `.claude/rules/network-constraints.md`, item 3.
  - `share: true` (listed only while agents may share) shares AFTER the publish; a refused share is a `Not shared:` line in the receipt and never fails the publish. `ShareService.shareForAgent` re-checks the switch itself, because a kept CLI can hold a description listed while it was on.
  - Caps refuse, never truncate. A refused page image, audio or video file refuses the whole page.
  - Audio and video (`<audio>`, `<video>`, `<source>` `src`) are opened and judged before anything is written (`utils/artifact-page-media.ts` over `utils/artifact-media-policy.ts`, the picture's path rules through `openArtifactFile`), then streamed from that same descriptor into `media/<sha256>.<ext>` under the artifact — the one await inside a publish, so the version and the run's removal are read again after it. The served page points each at the media route under the page's key (`withMediaRoute`) and is served under `ARTIFACT_SERVED_PAGE_CSP` (`media-src 'self'`); a saved or shared copy keeps the stored name, keeps the portable `ARTIFACT_PAGE_CSP` and plays nothing.
  - The page runtime closes a `<dialog>` from a submit button of its `method="dialog"` form itself (validity, a cancelable `submit`, then `close` with the button's value), and on Enter in the one text field of such a form with no submit button, where a browser submits it implicitly, cancelling the click or the key: the frame and the share envelope are sandboxed without `allow-forms`, which refuses that submission too, and a saved file takes the same path. Never add `allow-forms` for it.
  - `data-geniro-open` and the page's answers ride the frame wrapper, never the page runtime (which ships in saved files): `open-path` and `answer` messages, acted on by the host only while the frame holds focus, and `open-path` only on a fresh click (`navigator.userActivation`, one per click). Each `answer` carries the page's save count; the host hands the merged set back to the saving page with the counts it confirmed (`answers` with `confirmed`), so the runtime keeps only picks not yet confirmed over a set another frame saved, and a refused batch is sent again (`ANSWERS_RETRY_MS`) before the frame says it was not kept. A merge refuses (`ARTIFACT_ANSWERS_UNREADABLE`) rather than write over an answers file it cannot read. The answers are kept in `answers.json` beside the versions, each save MERGED into them (`ArtifactStoreService.mergeAnswers`: only the names a page changed, null forgets one, under `MAX_ARTIFACT_ANSWERS_BYTES`) so two frames of one page never undo each other, written through the token-gated chat routes, and read by the agent with `artifact_answers` (auto-approved, `isHostArtifactAnswersCall`; offered wherever `show_artifact` is).
  - `edits` + `base_version` revise a page without resending it (`ArtifactStoreService.resolvePatch`, `utils/artifact-edits.ts`): applied in order, all or nothing, to that version's source (else its served page); a base that is not the latest is refused, checked again in the write's synchronous section.
  - The serving key is registered with `registerSecret` at its mint site.
  - Team members publish too; publishers are dropped with the run, not at pass end.
  - Ids are the run's (`<runId>/<artifactId>`), whichever member publishes. A team page's row names the call its publishing conversation answers (`CallBroker.callAnsweredBy`, resolved once), and that call's envelope plus every ancestor call's still running lists it under `artifacts` (`notePublishedArtifact`, noted before the write so a call settling meanwhile still names it, undone if the row fails). The notes start from `CallBroker.callToNoteOn`: the answered call, else — a callee carrying on after its call settled — its conversation's newest call, so a page or button published then still reaches the running calls above. A page row never fetches its call as an anchor (`anchorNeedsOf` / `unplacedStructureOf`), since it is drawn outside the call's card. The tool's run-wide wording keys on `ArtifactBroker.inTeamRun`, never on call registration (a team of one registers no calls).
- `utils/write-containment.ts` judges every write geniro lets through unasked (codex `acceptEdits`): lexical and real-path, under both readings; hard-linked targets are refused.
- A transcript row naming a tool geniro no longer serves (`propose_patch`, `report_findings`, `backup_team`) renders as an ordinary row; a stored `report_findings` item is skipped, and a `kind: 'patch'` deferred card reads as null and is cleared at boot.
- `propose_plan`: no `stale` outcome; a blank note is normalized to absent; caps truncate.
- `notify_user` writes no row; it publishes on `run_status`.

- Descriptions are audited as a set (`mcp-server.service.spec.ts`). `propose_plan` says to use either plan mode or this tool, never both.
- No team member registers a chart/metrics/comparison/gallery/notify sink; `show_artifact` and `show_ui` are the render tools members get, and `publish_action` / `remove_action`, the monitor tools, the team-note tools, `record_outcome`, `milestone`, `move_stage` and `answer_review_comment` (a sent review comment's answer, offered on every endpoint and auto-approved: `agents/utils/host-review-comments.ts`) the other host tools; the shared memory's and the knowledge store's tools are offered on every endpoint (`.claude/rules/daemon-memory.md`, `.claude/rules/daemon-knowledge.md`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.