Skip to content
Merged
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
387f037
refactor(auth-credentials): add manifest/config modules and standardi…
ytallo May 7, 2026
fd1efb2
refactor(harness): add manifest/config modules and standardize worker…
ytallo May 7, 2026
f6ec94d
refactor(hook-fanout): add manifest/config modules and standardize wo…
ytallo May 7, 2026
5dbde91
refactor(llm-budget): add manifest/config modules and standardize wor…
ytallo May 7, 2026
8b9c276
refactor(models-catalog): add manifest/config modules and standardize…
ytallo May 7, 2026
62f12f2
refactor(policy-denylist): add manifest/config modules and standardiz…
ytallo May 7, 2026
4f4a22f
refactor(provider-anthropic): add manifest/config modules and standar…
ytallo May 7, 2026
138871d
refactor(provider-openai): add manifest/config modules and standardiz…
ytallo May 7, 2026
4112860
refactor(provider-router): add manifest/config modules and standardiz…
ytallo May 7, 2026
cb3d91b
refactor(session-inbox): add manifest/config modules and standardize …
ytallo May 7, 2026
2935f77
refactor(session-tree): add manifest/config modules and standardize w…
ytallo May 7, 2026
4f4f52d
refactor(shell-bash): add manifest/config modules and standardize wor…
ytallo May 7, 2026
4800df3
refactor(shell-filesystem): add manifest/config modules and standardi…
ytallo May 7, 2026
af3bc92
refactor(subagent): add manifest/config modules and standardize worke…
ytallo May 7, 2026
e3178e3
refactor: rename function namespaces to match crate names
ytallo May 7, 2026
6933298
refactor(subagent): enhance skill registration and update start comma…
ytallo May 7, 2026
8cf1397
fix(ci): clippy duration_suboptimal_units in retry/backoff loops
ytallo May 7, 2026
a4720f6
fix(ci): cargo fmt subagent/src/lib.rs (SUB_SKILLS one-liner)
ytallo May 7, 2026
53cdc52
fix(ci): clippy duration_suboptimal_units in subagent retry loop
ytallo May 7, 2026
6cf62d2
refactor: update trigger types and function IDs for durability
ytallo May 7, 2026
8883b1b
feat(harness): add approval-gate to EXPECTED_WORKERS + iii.worker.yaml
ytallo May 7, 2026
387d7a8
feat(session-tree): add session-tree::list bus function with paginati…
ytallo May 7, 2026
38f7086
feat(session-tree): add entry_id to session-tree::messages response (…
ytallo May 7, 2026
7d529c9
test(session-tree): bus-level integration tests for list + messages e…
ytallo May 7, 2026
1bb5382
test(session-tree): serialize bus tests to avoid iii port collision
ytallo May 7, 2026
6fc2c5a
feat(session-tree): add session-tree::ensure for caller-supplied idem…
ytallo May 7, 2026
181a41d
feat(turn-orchestrator): dual-write messages to session-tree (best-ef…
ytallo May 7, 2026
371761c
test(turn-orchestrator): dual-write delta + lazy-create tests; abort …
ytallo May 7, 2026
2ceb673
feat(session-tree): add session-tree::reconcile to repair state↔tree …
ytallo May 7, 2026
3132e19
feat(harness/web): add loadMessagesWithEntryIds helper with state::* …
ytallo May 7, 2026
069689a
feat(harness/web): rewrite reducer to entry-id-keyed Map; idempotent …
ytallo May 7, 2026
6d7e11d
test(harness): Phase A E2E acceptance — dual-write + fork + reconcile
ytallo May 7, 2026
41ec33b
feat(harness): add bridge::info, ui::subscribe/unsubscribe, fanout sk…
ytallo May 7, 2026
283a57b
feat(harness/web): per-session workspace cwd with header field
ytallo May 7, 2026
bfb5a75
feat(harness/web): headless useCommandMenu + menu items reducer (slas…
ytallo May 7, 2026
d79cb00
feat(harness/web): rewrite Composer with slash/at/history modes
ytallo May 7, 2026
989bd10
feat(harness/web): bus function palette (Cmd-J) with JSON editor
ytallo May 7, 2026
8c37fd4
feat(harness/web): migrate session reads to session-tree + loadMessag…
ytallo May 7, 2026
4a5877f
feat(harness/web): /repair, /fork, /export md|json + fork-from-message
ytallo May 7, 2026
25e5f67
feat(harness/web): add iii-client + useConnection over iii-browser-sdk
ytallo May 7, 2026
47ec9e4
feat(harness): wire harness-ui-fanout subscribers (agent events + ses…
ytallo May 7, 2026
39ed53c
feat(harness/web): replace SSE + 4s poll with WS-pushed handlers
ytallo May 7, 2026
41fb984
feat(harness): fanout pushes for approvals + cost + workers with back…
ytallo May 7, 2026
22ebb54
feat(harness/web): live status strip + status tab
ytallo May 7, 2026
cde05d6
chore(harness): add approval-gate to demo.sh WORKERS; commit session-…
ytallo May 7, 2026
0312ce4
chore(harness/web): tsc noEmit so Vite owns the JS emit
ytallo May 7, 2026
deead38
fix(harness/web): agent_end shape, dedupe, and main layout
ytallo May 7, 2026
89460d1
feat: iii-native harness (agent_call dispatcher)
ytallo May 7, 2026
328ce81
feat(harness): add Makefile for local demo harness operations
ytallo May 7, 2026
e152802
iii-native harness: slim agent_call + Tier 2 polish (#104)
ytallo May 8, 2026
2f4263d
refactor: rename tool→function + browser eviction + Makefile cleanup …
ytallo May 8, 2026
b7c7e4a
merge: bring origin/main into feat/iii-native-harness
ytallo May 8, 2026
1d515c2
feat(harness): consolidate shell-bash + shell-filesystem into shell w…
andersonleal May 8, 2026
1494cc0
fix(provider-anthropic): merge parallel function results into single …
ytallo May 8, 2026
f236f13
style(provider-anthropic): cargo fmt the parallel-results regression …
ytallo May 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ target/
.idea/
.DS_Store
docs
!harness/docs/
.worktrees
node_modules
package-lock.json
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ matching GitHub Release asset for the host's target triple.
| [`models-catalog`](models-catalog/) | Rust | Model capabilities knowledge base under `models::*` (list/get/supports/register). |
| [`oauth-anthropic`](oauth-anthropic/) | Rust | Anthropic Claude Pro/Max OAuth (PKCE localhost flow) under `oauth::anthropic::*`. |
| [`oauth-openai-codex`](oauth-openai-codex/) | Rust | OpenAI Codex OAuth (PKCE localhost flow) under `oauth::openai_codex::*`. |
| [`policy-denylist`](policy-denylist/) | Rust | Hook subscriber on `agent::before_tool_call` that blocks calls whose name is on a configured denylist. |
| [`policy-denylist`](policy-denylist/) | Rust | Hook subscriber on `agent::before_function_call` that blocks calls whose function id is on a configured denylist. |
| [`proof`](proof/) | Node | AI-driven browser testing — diffs changes, generates test plans, drives Playwright. |
| [`provider-anthropic`](provider-anthropic/) | Rust | Native Anthropic Messages API streaming provider under `provider::anthropic::*`. |
| [`provider-openai`](provider-openai/) | Rust | OpenAI Chat Completions provider under `provider::openai::*`. |
Expand Down
28 changes: 6 additions & 22 deletions TODOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,14 @@

**Tracked here because:** the original skill-registration plan deliberately deferred the CI gate. Capturing the design here so it isn't re-derived when we decide to enforce.

## harness: migrate tool filter from prefix denylist to `metadata.mcp.expose`
## mcp: extract `unwrap_function_list` + `format_to_input_schema` (harness side gone)

**What:** Replace the prefix denylist in `turn-orchestrator/src/tools_catalog.rs::DENIED_PREFIXES` with `metadata.mcp.expose === true`. Touch each LLM-callable function's `register.rs` to set `metadata.mcp.expose = true` alongside the existing `metadata.tool.label`.
**What:** `mcp/src/tools.rs:67-94` still has the two helpers. The harness's copy in `agent_call.rs` was deleted as part of the Tier 2 thin-dispatcher refactor (spec `docs/superpowers/specs/2026-05-07-tier2-iii-pure-harness-design.md`).

**Why:** Single shared advertise-selector across mcp + harness. The denylist forks the convention — every new control-plane prefix has to be added by hand to the harness list. `metadata.mcp.expose` already exists in `mcp/src/tools.rs:44-63` with passing tests at `:280-292`.
**Why:** Drift risk dropped — only one copy now — but if any future caller in workers/ wants the same pattern, it's worth extracting before the second copy comes back.

**Fix:** ~3-5 LOC per affected register site (shell-bash, shell-filesystem, subagent, skills::skill::fetch). Then collapse `should_advertise` in `tools_catalog.rs` to a one-line metadata read.
**Fix:** When a second caller appears, move the helpers into `harness-types`, a new `iii-tool-catalog` crate, or upstream into `iii-sdk`. Until then, leave the mcp copy where it is.

**Effort:** ~30 LOC of register-site touches + ~10 LOC of harness filter rewrite + test updates.
**Effort:** ~15 min when triggered. Picking the home is the bulk of the decision.

**Tracked here because:** plan-eng-review D3 chose denylist for the slim-harness PR to minimize register-site churn. After D6 added `metadata.tool.label` to the same files, the marginal cost of `expose: true` is one JSON line per call.

**Depends on:** the slim-harness PR landing (denylist must exist as the thing being replaced).

## harness: extract `unwrap_function_list` + `format_to_input_schema` to a shared crate

**What:** Move the two helpers from `mcp/src/tools.rs:67-94` and the copy in `turn-orchestrator/src/tools_catalog.rs:48-82` into a shared module — `harness-types`, a new `iii-tool-catalog` crate, or upstream into `iii-sdk`.

**Why:** Plan-eng-review D5 chose copy-paste; the copies will drift the first time the engine envelope changes or `format_to_input_schema` gets a bug fix. mcp tests pass while harness silently breaks (or vice versa).

**Fix:** Pick a home, move the two functions + their mcp tests, import from both crates. The functions are pure, stateless, ~20 LOC total.

**Effort:** ~15 min once the home is chosen. Picking the home is the bulk of the decision (harness-types is a types-not-utilities crate; new crate adds a workspace member; iii-sdk needs an upstream PR + version bump).

**Tracked here because:** the slim-harness PR copy-pasted intentionally to keep crate dep edges flat. Drift risk is real but contained; consolidate when the next bug or schema-format change touches either copy.

**Depends on:** the slim-harness PR landing (so there's a second copy to consolidate).
**Tracked here because:** the iii-native + Tier 2 refactors made this less urgent. Capturing the design here so it isn't re-derived when the second caller emerges.
4 changes: 2 additions & 2 deletions approval-gate/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# approval-gate

Subscriber on `agent::before_tool_call`. Pauses tool calls whose name appears
Subscriber on `agent::before_function_call`. Pauses function calls whose id appears
in the run's `approval_required` list, emits `ApprovalRequested` onto
`agent::events/<session_id>`, and waits for the UI to call `approval::resolve`
(or for the configured timeout, default 5 minutes).

## Functions
- `approval::resolve { tool_call_id, decision, reason? }` — flip a pending entry to `allow` or `deny`.
- `approval::resolve { function_call_id, tool_call_id?, decision, reason? }` — flip a pending entry to `allow` or `deny` (`tool_call_id` accepted for backward compatibility).
- `approval::list_pending { session_id }` — return currently-blocked calls (used by the UI on tab refresh).

## Config (env)
Expand Down
4 changes: 2 additions & 2 deletions approval-gate/iii.worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ language: rust
deploy: binary
manifest: Cargo.toml
bin: iii-approval-gate
description: Hook subscriber on agent::before_tool_call that pauses tool calls listed in approval_required until the UI resolves them via approval::resolve.
description: Hook subscriber on agent::before_function_call that pauses function calls listed in approval_required until the UI resolves them via approval::resolve.
config:
topic: agent::before_tool_call
topic: agent::before_function_call
approval_state_scope: approvals
default_timeout_ms: 300000
Loading
Loading