Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"displayName": "Agent Stack",
"source": "./plugins/agent-stack",
"description": "Four skills: agent-orchestrator — tool-calling loops, pipelines with checkpoints, provider routing with fallback, memory architecture, plus the wallet side of reselling LLM access; agent-evals — run/trace/thread evals, LLM judges, and fixtures grown from production; agent-interop — MCP servers and clients, A2A agent cards, the MCP Registry, and gateways; agent-harness — system prompts, tool shaping, workflow-vs-agent, and auditing an agent system.",
"version": "0.32.1",
"version": "0.33.0",
"author": {
"name": "ssheleg",
"url": "https://x.com/sshlg93"
Expand Down
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## v0.33.0: every MCP server we build has two doors, `search` and `execute`

The operator's rule of 2026-11-18 (fabric-agents-database session b590fc74): an MCP server we
build or run lists only `search` and `execute`, best practice for every MCP design, data rooms
first.

- **agent-interop `references/mcp-two-doors.md`** (new): the rule and its scope; why (context,
selection, one gated path, a stable surface); the `search` catalogue (operation name,
`purpose`, `inputSchema`, `effect`, `gate`, `example`, deprecation; paged, ranked, filtered
by the caller's scope); `execute` (one path through the interface's gate, idempotency key
for effects, typed refusals `unknown-operation`, `invalid-arguments`,
`idempotency-required`, `idempotency-conflict`, AN-7 gates; not a shell or code mode); at
most three direct tools, each with a recorded measurement, protocol-required tools such as
the Fabric kit's `fabric.job.get` counted among them; moving an existing server (inventory,
both doors, one release of aliases for the old names, callers moved); the contract
snapshot (the whole catalogue); conformance tests; traps.
- **agent-interop SKILL.md** gains "Rule one" with the rule in short, a dispatch row and the
index row.
- **agent-surface.md**: AN-3's capability owes an operation in the catalogue; the MCP snapshot
of a two-door server includes the whole `search` catalogue. Its `tools.md` citations moved
by five lines with the new paragraph there (anchors in
`test/audit_regressions/ai-native-agent-surface.py` updated).
- **agent-harness `references/tools.md`**: "Fewer tools than you think" points at the two
doors; its advice now applies to each operation.
- **mcp.md**: the tools paragraph points at the rule (same line, no citation moved).
- **`test/audit_regressions/mcp-two-doors.py`** holds the contract parts, the pointers and
the no-em-dash rule.

## v0.32.1: the host's model map, a pinned interop revision, fresh source dates

Family audit of 2026-11-11 (findings A1, A2, A4, A5; A3 filed as board row B-162).
Expand Down
2 changes: 1 addition & 1 deletion SKILL-CARD.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Field | Value |
|---|---|
| Pack | `agent-stack` |
| Version | `0.32.1` |
| Version | `0.33.0` |
| Skills | `agent-orchestrator`, `agent-evals`, `agent-interop`, `agent-harness` |
| License | MIT |
| Source | https://github.com/ssheleg/agent-stack |
Expand Down
17 changes: 17 additions & 0 deletions docs/HANDOFF.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## v0.33.0: two doors for every MCP server we build (2026-11-18)

- **Objective.** The operator's order of 2026-11-18 in the sshlg-skills session: «чтобы везде,
когда мы строим MCP, всегда было только два endpoints ... Search и Execute ... глобально для
всех»; make it the family's doctrine and tell every MCP owner on the board.
- **Done.** `agent-interop/references/mcp-two-doors.md`, Rule one in agent-interop, pointers in
agent-harness `tools.md`, `mcp.md` and `agent-surface.md` (AN-3 and the snapshot),
`test/audit_regressions/mcp-two-doors.py`, version 0.33.0.
- **Decisions.** The cap of three measured exceptions and one release of aliases follow the
operator's rule as recorded in the host's global instructions (2026-11-18). Tools a protocol
requires by name (Fabric's `fabric.job.get`, `fabric.job.cancel`) count among the three until
the protocol folds them into `execute`: the agents base raised the same case
(intake in-20261118-6b4cd4), and counting them keeps the cap honest.
- **Checks run.** `npm test` (all green, the new regression included).
- **Next task.** After release: the sshlg-skills pin bump; the board announcement to every
project that serves MCP (sent from sshlg-skills).

## v0.32.1: family audit fixes (2026-11-11)

- **Objective.** Findings A1 to A5 of the family audit ordered in the sshlg-skills session on
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ssheleg/agent-stack",
"version": "0.32.1",
"version": "0.33.0",
"scripts": {
"test": "python3 test/validate.py && python3 test/family_gate.py && python3 test/family_gate.py --self-test && python3 test/plant_guard_test.py && python3 test/member_owner_gates_test.py && python3 test/reap_own_test.py && node test/installer_test.js && npm run test:audit",
"test:audit": "for t in test/audit_regressions/*.py; do python3 \"$t\" || exit 1; done"
Expand Down
2 changes: 1 addition & 1 deletion plugins/agent-stack/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "agent-stack",
"displayName": "Agent Stack",
"description": "Four skills: agent-orchestrator — tool-calling loops, pipelines with checkpoints, provider routing with fallback, memory architecture, plus the wallet side of reselling LLM access; agent-evals — run/trace/thread evals, LLM judges, and fixtures grown from production; agent-interop — MCP servers and clients, A2A agent cards, the MCP Registry, and gateways; agent-harness — system prompts, tool shaping, workflow-vs-agent, and auditing an agent system.",
"version": "0.32.1",
"version": "0.33.0",
"author": {
"name": "ssheleg",
"url": "https://x.com/sshlg93"
Expand Down
5 changes: 5 additions & 0 deletions plugins/agent-stack/skills/agent-harness/references/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ two round trips.
tool applies to a case, the model cannot either.* Ambiguity between two tools is a design
defect, not a prompting problem.

**An MCP server we build lists two tools: `search` and `execute`.** The functions become
operations in a catalogue `search` returns on demand; `execute` runs one by name through one
gated path. At most three measured exceptions. Everything in this file still applies, to each
operation's name, `purpose`, schema and errors: `agent-interop/references/mcp-two-doors.md`.

## Namespacing

Group related tools under a common prefix — `asana_search`, `asana_create_task`,
Expand Down
11 changes: 11 additions & 0 deletions plugins/agent-stack/skills/agent-interop/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,23 @@ because nothing on the page says otherwise.
for and what changed; they are not a substitute for the document. Read the pinned revision,
then check whether a newer one exists. Every entry in the link map below is fetchable.

## Rule one: every MCP server we build has two doors, `search` and `execute`

`tools/list` of a server the estate builds or runs answers `search` (find operations by
words, each with its schema, effect and gate) and `execute` (run one by name through the same
gate, idempotency and audit as the interface). Nothing else, unless a measured case needs a
call to skip `search`: at most three such tools, each recorded with its measurement. Old tool
names keep working for one release while callers move. Data rooms first. Contract, migration
and tests: `references/mcp-two-doors.md`.

---

## Which protocol answers which question

| The question you actually have | The answer | Where |
|---|---|---|
| I want to give a model a capability against a live system | **MCP server** | `references/mcp.md` |
| What tools does my server list? | **`search` and `execute`** | `references/mcp-two-doors.md` |
| My server is written and the client cannot connect to it | mounting and transports | `references/mcp-ship.md` |
| I want my application to consume other people's tool servers | **MCP client** | `references/mcp.md`, then `references/mcp-scale.md` |
| I have more servers than fit in a context window | client scaling patterns | `references/mcp-scale.md` |
Expand Down Expand Up @@ -111,6 +121,7 @@ an index; the trigger lives in the file, so the two cannot drift apart.
| File | Read it when |
|---|---|
| [`references/mcp.md`](references/mcp.md) | you are **building or calling an MCP server** — the layers, per-request `_meta`, `server/discover`, the three server primitives and the one surviving client primitive, notifications, caching, transports, and the full deprecation register |
| [`references/mcp-two-doors.md`](references/mcp-two-doors.md) | you **build, adapt or review a server we run**: the two doors `search` and `execute`, the operation catalogue, the gated path, at most three measured exceptions, moving an existing server, the snapshot and conformance tests |
| [`references/mcp-ship.md`](references/mcp-ship.md) | the server is written and **cannot be reached** — mounting inside an existing web app, transport-level auth, client config, and the 404 that is really a double path |
| [`references/mcp-scale.md`](references/mcp-scale.md) | the host has **more servers and tools than context** — progressive discovery, programmatic tool calling, cache interaction, and the security surface each one opens |
| [`references/a2a.md`](references/a2a.md) | the other side is **another agent, not a tool** — agent cards and discovery, the task lifecycle and its terminal states, three protocol bindings, streaming versus push |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ surface, or each extra one is marked `internal` with a reason.
definition: `internal: <reason>`. Accepted reasons: a sync transport (offline replication),
a render-only endpoint (thumbnails, layout data), a session-plumbing call (token refresh).
- [ ] A marker whose reason is a user action is not accepted: that action is a capability and
owes a tool.
owes an operation (on a server we build, an operation in the `search` catalogue behind the
two doors, `mcp-two-doors.md`).

## The contract source, its snapshot, and the diff that classifies a change

Expand All @@ -81,7 +82,7 @@ the source or is generated from it.

| Surface | Snapshot |
|---|---|
| MCP | the `tools/list` result (plus `resources/templates/list` and `prompts/list` where used) from a local stdio build, sorted by name, caching fields (`ttlMs`, `cacheScope`) removed |
| MCP | the `tools/list` result (plus `resources/templates/list` and `prompts/list` where used) from a local stdio build, sorted by name, caching fields (`ttlMs`, `cacheScope`) removed; for a two-door server also the whole `search` catalogue, sorted by operation name (`mcp-two-doors.md`) |
| HTTP | the served OpenAPI document |
| CLI | `<cli> --help --json` for every command |

Expand All @@ -94,7 +95,7 @@ the source or is generated from it.
| `breaking` | a tool removed or renamed; input narrowed (a new required field, an enum value removed, a type tightened); an output field removed or its meaning changed; an effect class widened; an auth scope or effect ceiling changed; an error code renamed | a new contract version and the deprecation path in AN-8; risk and stage gates are task-pipeline's (`references/agent-surface.md`) |

A description or an agent-facing error body that changed is a contract change too: agents read
it (`tools.md:48-76`). The diff names it `additive` unless it changes what a call means.
it (`tools.md:53-81`). The diff names it `additive` unless it changes what a call means.

## AN-7: the gate protocol

Expand Down Expand Up @@ -140,14 +141,14 @@ continues. Gates and their evidence come from the capability row (AN-4).
- [ ] `human_steps[].url` opens the exact step, not a dashboard; the text a person reads goes
through the product's copywriting route.
- [ ] `digest` binds the approval to the exact arguments (`gateway.md:240-249`); changed
arguments need a new approval (`tools.md:130-133`).
arguments need a new approval (`tools.md:135-138`).
- [ ] The agent continues by polling the named read or receiving the `Emits` event, then
repeats the original call with the same idempotency key; the server consumes the approval
once.
- [ ] **How the server knows the approval is genuine:** it reads its own approval record,
written by the authenticated approver through the human surface, bound to digest, principal,
callee and expiry. Nothing the agent sends proves an approval. `confirm: true` is a syntax
guard, never an approval (`tools.md:127-133`).
guard, never an approval (`tools.md:132-138`).
- [ ] On an `internal` product, `approval` exists only with a recorded operator decision
(AN-4); otherwise the delegated agent acts.

Expand All @@ -163,7 +164,7 @@ continues. Gates and their evidence come from the capability row (AN-4).
(`Roles` on the capability row); the server checks the principal's role on every call, not
only at consent.
- [ ] **Effect classes declared** in the contract (annotations and `_meta`), using the effect
vocabulary of `gateway.md:191`; annotations alone decide nothing (`tools.md:135-153`).
vocabulary of `gateway.md:191`; annotations alone decide nothing (`tools.md:140-158`).
- [ ] **Idempotency key on every write.** A repeat with the same key returns the first result
and causes no second effect; a repeat with the same key and other arguments is refused.
- [ ] **Dry-run or sandbox** for every write: `dry_run: true` returns the planned effect
Expand All @@ -174,7 +175,7 @@ continues. Gates and their evidence come from the capability row (AN-4).
pseudonymised, the chain's shape is kept, and the person's agent grants are revoked.
- [ ] **Untrusted content marked.** Text written by third parties sits in fields the tool
description names as untrusted (for example `untrusted_text`); the lethal trifecta is a
session property (`tools.md:155-178`).
session property (`tools.md:160-183`).
- [ ] **Limits name their window.** Rate and spend refusals say which window ran out
(`gateway.md:231-238`).
- [ ] **A tool is never renamed.** Deprecate it: mark it in the description and `_meta` with a
Expand Down
Loading
Loading