Repository navigation
v0.23.0
Rust: ported in tronc-rs v0.5.0; TS: ported in tronc-ts v0.3.0. Each entry names the port's
counterpart.
Added
mcp.AppSpec.Scopes, so a read-only server (sonar) goes throughNewAppwith
Scopes{Read: "<app>.read"}instead of copying it. Rust: tronc-rsApp::new. TS: has
read-only servers already.mcp.StateKey(app, secret): SHA-256 over<app>-mcp-state:<secret>, byte for byte the key
the thirteen apps derived by hand, so signed questions survive the move. Vector
mcp_state_key.json. Rust:state_key. TS:stateKey.- Bounded pending actions.
Requestasks about the person's open action of the same kind,
target and digest instead of inserting another, on the link and the MRTR paths.
PostgresPending.Openreads at mostOpenLimit+ 1 rows;Confirmations.Listkeeps
OpenLimit(100) and reportstruncated, whichPendingListcarries as
"truncated": true.PostgresPending.Prune,PrunePending(ctx, exec, olderThan)and
KeepPruned(ctx, store, every, olderThan, logger)delete the actions resolved or expired
more than 30 days ago, hourly. No migration or index. A Postgres-backed test pins that prune
spares open, recently resolved and recently expired actions. The dedupe is best effort, and a
reused action keeps its first client and expiry. Rust: dedupe, limit, prune. TS: same. - Confirmation text.
Outcome.Messagecarries the standard "Nothing happened yet…" text
(Confirmations.Waiting(), naming the pending lifetime, or the time a reused action has left)
on a link, andMessageDeclinedon a declinedResume, the text eight apps each kept a copy
of. Rust: ask/resume helper. TS: same. PendingPage.Mount(router, auth...)mounts the confirm page API at/mcp/pending
(PendingAPIPath) behind the app's auth, nil-safe for docs tests. Rust:PendingPagerouter.
TS: Go-only for now, tronc-ts has no confirm page.- Offset pager
Page(items, cursor, size),Offset(cursor)andCursor(offset, total), the
copies in Plume, Casier and Echo. Rust: pager. TS: same. mcp.PlanLimit:Failuremaps any error withPlanLimit() (feature, upgradeURL), such as
porte'sforfait.LimitErroronce it gains the method, to "The plan limit for is
reached. Upgrade at ". Rust and TS: same text.- Typed Bulle AI calls.
bulle.Client.Complete(ctx, CompleteRequest{System, Prompt, Input, Schema, MaxTokens, SpaceID})forPOST /api/ai/completeas the user, and
DecideAI(ctx, DecideRequest{ActingFor, State, Questions})forPOST /api/ai/decideas the
app's service withX-Bulle-Acting-For.SpaceIDis omitted when empty, so it is safe before
Bulle accepts it.Request.Headeradds headers toCall.PlanRequired.Limitcarries a
402'slimit. Rust:complete(space_id). TS:complete,decideAI. - Conformance vectors for
mcpandbulle:mcp_http(401 and 403 challenges, write gate,
Origin refusal, 405, RFC 9728 metadata),mcp_rate_limit(default burst 120, burst equal to the
per-minute limit, one bucket per user, none depending on replay speed),mcp_digest,mcp_state_key,mcp_failure,bulle_errors(402 bare and
enveloped, upgrade URL filter, 4xx, 5xx, redirect) andbulle_paths. Theirsourceis
tronc@v0.23.0; the eight older files are unchanged. Rust: consume in CI. TS: same.
Changed
mcp.Failurekeeps anunavailableerror's message instead of the generic text, and
re-checks apayment_requiredupgrade URL witherrors.SafeUpgradeURL. Rust and TS: align.bulle.Clientnever follows a redirect: a 3xx fails asErrUnreachable, so the token
never leaves for another URL. It works on a copy ofConfig.HTTPClient. Rust: redirect-refusing
client. TS: same.- Annotations rule written into
mcp.Annotationsand docs/api.md: overwriting or removing
the user's data, or silencing an alert, isDestructive; only a tool with no further effect
on a repeat call isIdempotent. Docs only; Rust and TS: annotation presets. - build(deps): the root module requires
jackc/pgx/v5v5.9.2 for the Postgres-backed prune
test, which runs whenTEST_DATABASE_URLis set (CI sets it), and movesgolang.org/x/textto
v0.41.0 andgolang.org/x/syncto v0.22.0, the versionstestdbalready uses. No package
outside the tests imports pgx.
Fixed
mcp.Failurecapitalised one byte, so a message starting with an accented letter
("échec") came out garbled. It now uppercases the first rune. Rust and TS were already right.