Repository navigation
[1.195.0] - 2026-11-24
Security
- The release binary signs an OAuth client in with the pasted token (T1287). With
OAUTH_ISSUERset, example/server wires smeldr.dev/oauth'sResolveBearerandTokenActivetoTokenStore.ActingUser. The access token then stands for the pasted token, and a revoked or expired token ends the client's access at its next refresh. Clients signed in before this sign in again.
Changed
- The release binary is built with smeldr.dev/mcp v1.78.0 (it was v1.77.3). It brings
record_close, the OAuth sign-in that stands for the pasted token (T1287), clearer refusals inretry_webhook(T1266) and the grant tools (T1248), and tool descriptions that name no record of smeldr.dev's own instance (T1222); see smeldr.dev/mcp's CHANGELOG. - The release binary checks
OAUTH_ISSUERat start (T1286). Before, any value was published as given, sonot-a-urlgave the endpointnot-a-url/oauth/authorize.- Now the start stops, naming
OAUTH_ISSUER, when the value is not an absolute http or https URL with a host, or has a query or a fragment. With these, every OAuth endpoint answered 404. OAUTH_ISSUERwithoutENABLE_TOKENSis refused, since an access token stands for a Smeldr token.- Public http, user info and a trailing slash still start, each with a warning from smeldr.dev/oauth.
- An issuer on another origin than
BASE_URLstarts, with one Info line naming both values.
- Now the start stops, naming
- The taken-URL condition names the item by its address (T1308). Its message said
Decision 01a1... is scheduled, but its URL "about" is taken; it now names the item's address where its type has one (Decision D9 ...), and its ID otherwise. The type, the receiver and the values are unchanged; a message written before stays as it is.
Fixed
-
A program that serves
app.Handler()itself answers HTML likeapp.Run(T1317). ThroughHandler()a module withTemplatesanswered JSON to every request, also toAccept: text/htmland to a request with noAccept, because onlyRunparsed the templates; it now answerstext/htmlto both, and a client that wants JSON sendsAccept: application/json.Handler()parses the templates and the partials once, asRundoes;Runstill refuses to start on a template that does not parse. UnderHandler()such a template is logged once at ERROR, naming the module's prefix and the file, and that module keeps answering JSON. The doc comment and REFERENCE say whatHandler()still does not do: the webhook worker pool, scheduled publishing, the version line and graceful shutdown belong toRun. -
A token holding only
approverreads a Domain made after setup, and what is placed in it (T1321). On v1.194.0 an approver read nothing in such a Domain:create_domain(andPOST /domains) stored the Domain withoutbelongs_to_organization, so it lay outside the Organization and D191's approver, who reads the Organization's hierarchy, read none of it (get_domainanswereditem.not_found,get_area,get_decisionandlist_decisionscapability.denied). A Domain is now created in the Organization, in the same transaction. At the first boot on this release, a Domain made before it is placed in the Organization too, and one Info line names how many and their addresses; a Domain whose edge was ended on purpose is left alone. An unplaced record stays unread by the approver, as D191 says: it is placed before it is ratified. -
A grant of a role with a dynamic scope must name its anchor (T1248).
Grant(andgrant_role) with an empty or blankScopeAnchorIDon a dynamic role is refused with the newgrant.anchor_required(422, fieldscope_anchor_id, valuerole), and nothing is stored. Send the place the grant is over asscope_anchor_id(its address, slug or ID). Before, it was stored and reached nothing: no read, no ratify or approve-change, andApproversOfnever listed it, so a caller who misspelt or left out the anchor was told a right had been granted when none was. A static or global role is unchanged, and an agent or job still gets the agent rule's own refusal first. Grants already stored this way are not deleted: the server logs their count and grant IDs once at boot (smeldr: dynamic grants with no anchor authorize nothing; revoke them); revoke them withrevoke_grant. -
A PUT cannot clear
PublishedAt(T1300). A PUT whose body had noPublishedAtsaved the zero time, also on an item that stayed published: RSS showed it as 1 January 0001 and sorted it last, the sitemap gave it year 1, and the AI doc left out its "Published:" line. A PUT now keeps the stored time when the body has none, and keeps a time the body sends. The move intopublishedstill stamps now. -
An
OnSignalhandler registered afterApp.Runruns (T1300). With no handler, listener or event stream at start, no module got the signal hook, so a handler added later never ran; with one, it did. The hook is now always set; a write with nothing listening costs about half a microsecond and three small allocations.AddSignalListenerstill belongs beforeApp.HandlerorApp.Run, as its doc comment now says. -
A webhook retry never makes two workers deliver one job (T1304). A worker's claim only moved
next_retry_at, so a job a worker held looked like one in its backoff: retrying it made it due, a second worker claimed it, both delivered, and the first then wrote over the row. Now the claim names its holder (claim_id) and its lease (claimed_until), the holder's update after its attempt applies only while its own claim is on the row, and a retry of a held job only leaves a request (retry_requested): the job is due now right after the attempt in flight if that attempt fails, and not sent again if it succeeds. If the holder dies, the next worker to claim the job after the lease honours the request. A job table without the new columns works as before.
Added
App.SignalsAddressedTo(ctx, state, limit, offset)lists the Signals addressed to the caller (T1308). It returns the Signals whose receiver is one of the caller's routing names, newest first, and the total: itsUser.ID, the operations it holds under governance (such asratify) and the receivers its subscriptions name (a role subscription names its band), the same names theaddressed_to_mesubscription filter matches. So a caller can list what waits on it without knowing the receiver words.stateempty means open and pending together, aslist_signals. The read scope applies before the page and the total: a holder ofratifyover one Domain sees that Domain's ratification conditions, not another's. One query over the names, on SQLite and Postgres. A caller with no identity is refused with the refusal typesignals.no_caller(403).EnsureOutboundJobClaimColumns(ctx, db)andOutboundClaimHolderSQL(T1304). The function addsclaim_id,claimed_untilandretry_requestedto a job table from before them;CreateWebhookTablescalls it, so example/server's boot adds them.OutboundClaimHolderSQLis the worker pool's claim with a holder;OutboundClaimSQLis unchanged.
Docs
- Every environment variable the release binary reads is listed (T1310). main.go's doc comment gains
CHANGE_CHECK_RECHECK_SCHEDULE(the re-check of open pull request Checks, default*/5 * * * *, read when governance records are on). AGENTS.md's table gains the 25 variables it did not list, fromENABLE_GOVERNANCE_RECORDSandORGANIZATION_NAMEto the five cutover dates, each with its default written as its value;ENABLE_SIGNAL_EXPIRY_SWEEPis listed as retired, only logging that it does nothing. A new test in example/server reads everyos.Getenv,os.LookupEnv,envOr,requireEnvandgetenvcall and fails, naming each variable and the file, when one is missing from main.go's doc comment, docs/SELF_HOSTING.md or AGENTS.md. - What a PUT keeps, and who the scheduler is (T1300).
updateHandler's doc comment and REFERENCE say a PUT keeps the stored ID, slug and address, so aSlugin the body is ignored with a 200 (a PATCH refuses it), and keepsPublishedAtwhen the body has none.SignalEvent.ActorRoleisguestalso for a system path with no actor, such as the scheduler's publish:ActorIDis empty andSurfaceistrigger.