Skip to content

Releases

Smeldr v1.195.0 - OAuth sign-in and approver reads

Choose a tag to compare

@xxwink xxwink released this 24 Nov 14:34

[1.195.0] - 2026-11-24

Security

  • The release binary signs an OAuth client in with the pasted token (T1287). With OAUTH_ISSUER set, example/server wires smeldr.dev/oauth's ResolveBearer and TokenActive to TokenStore.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 in retry_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_ISSUER at start (T1286). Before, any value was published as given, so not-a-url gave the endpoint not-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_ISSUER without ENABLE_TOKENS is 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_URL starts, with one Info line naming both values.
  • 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 like app.Run (T1317). Through Handler() a module with Templates answered JSON to every request, also to Accept: text/html and to a request with no Accept, because only Run parsed the templates; it now answers text/html to both, and a client that wants JSON sends Accept: application/json. Handler() parses the templates and the partials once, as Run does; Run still refuses to start on a template that does not parse. Under Handler() 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 what Handler() still does not do: the webhook worker pool, scheduled publishing, the version line and graceful shutdown belong to Run.

  • A token holding only approver reads 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 (and POST /domains) stored the Domain without belongs_to_organization, so it lay outside the Organization and D191's approver, who reads the Organization's hierarchy, read none of it (get_domain answered item.not_found, get_area, get_decision and list_decisions capability.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 (and grant_role) with an empty or blank ScopeAnchorID on a dynamic role is refused with the new grant.anchor_required (422, field scope_anchor_id, value role), and nothing is stored. Send the place the grant is over as scope_anchor_id (its address, slug or ID). Before, it was stored and reached nothing: no read, no ratify or approve-change, and ApproversOf never 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 with revoke_grant.

  • A PUT cannot clear PublishedAt (T1300). A PUT whose body had no PublishedAt saved 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 into published still stamps now.

  • An OnSignal handler registered after App.Run runs (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. AddSignalListener still belongs before App.Handler or App.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: its User.ID, the operations it holds under governance (such as ratify) and the receivers its subscriptions name (a role subscription names its band), the same names the addressed_to_me subscription filter matches. So a caller can list what waits on it without knowing the receiver words. state empty means open and pending together, as list_signals. The read scope applies before the page and the total: a holder of ratify over 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 type signals.no_caller (403).
  • EnsureOutboundJobClaimColumns(ctx, db) and OutboundClaimHolderSQL (T1304). The function adds claim_id, claimed_until and retry_requested to a job table from before them; CreateWebhookTables calls it, so example/server's boot adds them. OutboundClaimHolderSQL is the worker pool's claim with a holder; OutboundClaimSQL is 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, from ENABLE_GOVERNANCE_RECORDS and ORGANIZATION_NAME to the five cutover dates, each with its default written as its value; ENABLE_SIGNAL_EXPIRY_SWEEP is listed as retired, only logging that it does nothing. A new test in example/server reads every os.Getenv, os.LookupEnv, envOr, requireEnv and getenv call 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 a Slug in the body is ignored with a 200 (a PATCH refuses it), and keeps PublishedAt when the body has none. SignalEvent.ActorRole is guest also for a system path with no actor, such as the scheduler's publish: ActorID is empty and Surface is trigger.

Smeldr v1.194.0 — webhook retry and check reopen

Choose a tag to compare

@xxwink xxwink released this 16 Nov 14:51

[1.194.0] - 2026-11-16

Security

  • The bootstrap admin token is no longer kept by CaptureLogs or served at /_logs (T1299). It still shows once on standard error at start, unchanged. This affected a Go program that calls CaptureLogs before the token store creates the bootstrap token; the release binary does not call CaptureLogs.
  • What core needs so that an OAuth access token stands for exactly the Smeldr token pasted at sign-in (D195, T1287). This is the core part. The fix lands with smeldr.dev/oauth and smeldr.dev/mcp, and their CHANGELOGs say what a client and a server must do.
    • TokenStore.ActingUser reads a stored token by its fingerprint: the user it acts as, its role and class, and whether it is still valid.
    • User.Via and ProvenanceRecord.Via note the client a request came through, beside the token's own signature. CreateProvenanceTable adds the via column.

Changed

  • The release workflow builds nothing unless ci.yml is green on the tagged commit (T1297). A first job, ci-green, runs scripts/ci-green.sh with the workflow's own token (actions: read): green passes; red stops; a run still going is waited for up to 45 minutes; no run is waited for up to 10 minutes, then stops. When it stops, nothing is built or attached and the release stays a draft. It reads ci.yml only, not the macOS getting-started or pin-currency workflows. It gates a tag on a commit that carries it; a tag on an older commit runs that commit's workflow, ungated. A release on a green commit builds the same five binaries and SHA256SUMS and publishes as before. cli's release workflow has the same gate.
  • A change in the Decisions in force reopens the open pull request Checks of the Area (D196, T1294). Before, an approved Check stayed approved when a Decision for one of its Areas was superseded, retired or newly ratified, so a pull request could merge on an approval given against a Decision that no longer held. Now:
    • Every open Check of the Area is checked again as a new Check of the same commit. Where an Area requires approval it waits again, with new requests to its approvers.
    • The old Check is superseded, and its answers stay readable.
    • The host's status goes from passing to waiting.
    • It happens in the call that changed the Decision, and a sweep is the guarantee (App.RecheckChangeChecks; the example server runs it on CHANGE_CHECK_RECHECK_SCHEDULE, default every 5 minutes, whenever governance records are on). After a failed step, an approval can stand until the next sweep.
    • Checks made before this release are not reopened, since their changes may have been merged without core knowing.
    • Update smeldr.dev/github with core. Until then, a pull request closed without a merge is not reported, and its Check can be reopened when a Decision of its Area changes, asking approvers about a change nobody will merge.
  • The release binary lists the schema tools with ENABLE_DYNAMIC_CONTENT (T1292). Before, a server could define a runtime type but not show its schema without ENABLE_SCHEMA_TOOLS too, so smeldr-cli content-type get answered unknown tool: get_content_type_schema. Now get_content_type_schema and list_content_type_schemas are listed whenever ENABLE_DYNAMIC_CONTENT is on. They only read, and their role requirement is unchanged. Nothing is removed: ENABLE_SCHEMA_TOOLS and ENABLE_BLOCKS list them as before.
  • The three approval roles read the place they approve in (D191, T1247). Before, a domain-approver or area-approver with no reader grant beside it was refused the Decisions and Checks it was meant to approve, so an area-approver alone could not answer its change checks.
    • domain-approver and area-approver now hold read over their place, as domain-reader and area-reader do.
    • approver reads every place and what is placed in it: every Organization's hierarchy, not every record.
    • Nothing else widens: no write, manage or administer, and no read outside the place.
    • At the upgrade, existing grants of these roles read their place from the first boot. A token's event subscriptions may then deliver events they did not deliver before, because delivery follows read. To see who holds the three roles first, use approvers_of or smeldr-cli approvers <place>.
    • D97: nothing is removed. A call that was refused is answered.
    • A role you register yourself with ratify or approve-change is unchanged, and needs read to be usable.

Added

  • App.RecordClose and App.RecheckChangeChecks (D196, T1294).
    • RecordClose(ctx, CloseInput) records that a change was closed without a merge (capability item check_change). Its Check is no longer reopened, and its open requests are withdrawn.
    • RecheckChangeChecks(ctx) is the sweep behind the reopen, returning RecheckResult{Checked, Reopened, Failed}. Call it every few minutes if you use the change check.
  • ContradictionSweep.Stale: how many open contradiction rows written since T928 the sweep resolved because their contradiction no longer holds (T1242).

Fixed

  • Webhook retry refuses a delivered job and an id that names no job (T1266). WebhookJobQueue.RetryDead (and so retry_webhook and smeldr-cli webhook retry) set any job it was given back to pending with no condition: a delivered job was delivered a second time, and an unknown id answered "retried": true. It now updates only a dead or pending job, in one conditional statement. A delivered job is refused with webhook.job_delivered (409, ErrConflict, values job and status) and an unknown id with webhook.job_not_found (404, ErrNotFound, value job); nothing changes then. Still retried as before: a dead job, a pending job in its backoff (sent now) and a pending job past its delivery window (sent again). A claim is not visible to a retry, so retrying a job while a worker delivers it can still deliver it twice, as before.
  • A Standalone() module now starts beside a default or APIOnly module (T1295). Before, the program panicked at start: the GET /{slug}/aidoc pattern conflicted with every module's GET /{prefix}/{slug}. A Standalone item's AI doc is now served by the catch-all, after the modules' own routes. So /posts/aidoc is still the posts item with the slug aidoc, and nothing that answered before answers differently.
  • app.Content(&T{}, smeldr.Repo(...)) with a typed Repo panics with what to write (T1295): app.Content(smeldr.NewModule(&T{}, smeldr.Repo(...), smeldr.At(...))). Before, it said "use smeldr.Repo(...) or App.Content", which is what the reader had done. NewModule without a Repo now says to pass smeldr.Repo(...) to smeldr.NewModule.
  • A Decision's ratification-required request is placed with the Decision (T1289). Before, it had no place, so a domain-approver or area-approver (who read their place since T1247) did not see the request they are there to answer. It now moves with the Decision as its other conditions do. Requests already open, and those MigrateSignalKinds opens at boot (it does not place them itself), are placed by App.SweepContradictionConditions, which example/server runs at boot and on the structural sweep's schedule. On a server that runs neither, such a request is placed when its Decision's place changes, or when the server calls SweepContradictionConditions or SweepPremiseFlags. A request for an unplaced Decision stays unplaced until the Decision is placed.
  • A contradiction holds its conflict-detected rows only while both Decisions can still hold (D192, T1242). A Decision that is proposed, ratified or pending-re-evaluation can still hold; superseded, retired and archived cannot. Before, an edge asserted when a side was already superseded opened two rows that nothing would close, and a proposed side archived without being ratified left both rows open, because only a move out of ratified resolved them. Now such an edge opens nothing, and any move out of play resolves both rows: D5 can no longer hold (archived) on its own row and the contradicting Decision can no longer hold on the other. A move ratified -> pending-re-evaluation no longer resolves them, since the Decision still holds. App.SweepContradictionConditions also resolves open rows written since T928 whose contradiction no longer holds. Also: ratification-required names the Decision by its address instead of its internal ID, and re-asserting a live contradicts edge from its other end is the same edge for the rev check (rev_missing without a rev, rev_conflict with a stale one); before, it skipped the check.
  • Field and flow descriptions, Signal-kind descriptions, provenance reasons and a problem type's title no longer name a record of Smeldr's own instance (T1222). Texts such as "Required (D112): one line ..." or the reason "founder of the organization (D142)" cited a record on smeldr.dev's instance; on a self-hoster's instance that address is another record or none. Each text now says what it means without the address: the smeldr_description of title, the deprecated number fields, sources, amendment_type, pilot and external_ref ("an address such as D1"), the Task and Goal flow descriptions, the premise-flagged and change-unapproved Signal kinds, the no_commit field and the task_plan schema change reason, the reasons core writes on the founder's grants, the approval-role rename, the default places, a reworded contradiction, a restored edge and a resolved premise flag, and the schema.field_invalid title ("title over the 120-character limit"). Reasons already stored stay as they are. Tool and argument names, the rule of each problem type and the D110 value of the deprecated-field warning are unchanged. A guard test now reads every string literal in the package, with an allow-list of five, each with its reason: four log lines and the D110 wire value.
  • **An agent or a j...
Read more

Smeldr v1.193.2 — Grant anchors resolved

Choose a tag to compare

@xxwink xxwink released this 14 Nov 21:41

[1.193.2] - 2026-11-14

Fixed

  • Dynamic grant anchors are resolved on write (T1213). RoleStore.Grant and GrantAt now resolve a dynamic grant's anchor (RoleGrant.ScopeAnchorID) to the item's ID, whether the caller gives the ID, the address (such as an Area's ARE1) or the slug. Before this, the anchor was stored as given, so an address or slug was accepted and the grant then read nothing, with no error. When the candidate types hold no match, the grant is refused with the new problem type grant.anchor_not_found (422, with the values anchor, role and types), and a slug that matches in two candidate types is refused with ident.ambiguous. When the role's relation kind can anchor any type, only an address with a registered prefix is resolved, and any other anchor is kept as given. The agent rule's Area check uses the same resolution. Existing grants are not rewritten: a grant made before this release with an address or slug as anchor still reads nothing, so revoke it and grant it again.
  • Corrects an article in five agent-rule refusals (T1213). Five refusals of the agent rule said "an job token" for a job grantee; they now say "a job token".

Smeldr v1.193.1 — Messages without our addresses

Choose a tag to compare

@xxwink xxwink released this 14 Nov 16:38

[1.193.1] - 2026-11-14

Changed

  • Error and warning messages no longer name records of Smeldr's own instance by address (T1211). Before this change, 22 messages ended with a record address such as "(D142)", "(D156)", "(D112)" or "(T273)", and the place-authority refusals (ratify.automated_class, place.authority_required) appended "(D145)", "(D146)", "(D148)", "(D149)" or "(D189)". Those addresses name records on smeldr.dev's own instance, so on any other instance they point at other records or at nothing. Each message still says what is refused and what to do. Examples of the form now describe the record in words (for example, "a D followed by a number") instead of citing it. Messages are not part of the API contract (the problem type id is), so this changes no API. Code that matched message text should match the problem type id instead (smeldr.ProblemTypeOf).
  • Refusals of job tokens now read "a job token" instead of "an job token" (T1211). This is a grammar fix in the refusal text only. There is no behaviour change.
  • ProblemTypeInfo.Rule, the rule wire field and docs/PROBLEM_TYPES.md now say what rule means (T1211). rule names the records of Smeldr's own design (Decisions and Tasks on smeldr.dev's instance) that a refusal rests on. It does not name records on the instance that answered, and it is not meant for end users; the type URI remains the stable name for users. The field stays and is not deprecated. The value decision sent by the D110 refusal of a server-assigned number field is documented the same way.
  • A test now fails when a message names a record address (T1211). TestMessagesNameNoRecordAddresses reads the calls that build messages (errors, refusals, warnings) and fails on a new message that cites a record address.

Smeldr v1.193.0 — Supersede in one write

Choose a tag to compare

@xxwink xxwink released this 13 Nov 19:34

[1.193.0] - 2026-11-13

Added

  • App.SupersedeDecision replaces a Decision in one write (D189, T1187). It takes a SupersedeRequest and returns a SupersedeResult, in one transaction or not at all: the Decisions, the place and the relation commit together, and standing is recorded after the commit, as on any transition. The move is written only while the replaced Decision is still in the state the checks read, so two overlapping supersedes cannot both commit, with or without a rev; the later one is refused with decision.replacement_state. Exactly one of SupersedeRequest.Replacement (an existing, ratified Decision) and SupersedeRequest.New (a replacement this write creates, places where the replaced Decision is placed and ratifies) must be set. The relation is asserted and the replaced Decision moves to superseded in the same write. New requirement: with an existing replacement, the caller needs ratify over the replacement's place as well as the replaced Decision's; asserting supersedes alone never required it. App.SupersedeDecisionVia names the surface. Capability item supersede.
  • retired is a new final state on the Decision flow (D189, T1187). It marks a Decision taken out of force with no replacement. Standing ceases. A Decision moves into retired from ratified, pending-re-evaluation or superseded, and needs ratify over its place and a reason. A retired Decision can move to archived.
  • App.RetireDecision and App.RetireDecisionVia move a Decision to retired (D189, T1187). A reason is required. Agents and jobs are refused. From superseded, the call is refused with decision.repair_not_needed when the replacement is already recorded. Capability item retire.
  • App.RepairSuperseded and App.RepairSupersededVia repair a superseded Decision with no replacement recorded (D189, T1187). The request is a RepairRequest. The caller either names a replacement, and the relation is asserted onto the superseded Decision with the reason in provenance, or retires the Decision. Capability item repair_superseded.
  • App.SweepStructural runs a new detector, decision-replacement (D189, T1187). It records a finding for a Decision superseded with no replacement recorded, and for one still in force under a live supersedes relation. Findings are deleted once they stop firing, and flagged counts them.
  • New problem types (D189, T1187). decision.replacement_required (409), decision.repair_not_needed (409) and decision.supersede_form (400). No HTTP route is added in this release: the acts are Go functions and MCP tools, and their HTTP door comes with the application-layer authorization work (T1185).

Deprecated

  • A plain transition to superseded with no live supersedes relation (D189, T1187). Until 2027-02-15 the transition still works, and its result carries the warning decision.supersede_without_replacement, which names that date. From 2027-02-15 it is refused with decision.replacement_required. Use SupersedeDecision or RetireDecision instead. A plain transition to superseded is unchanged when the supersedes relation is already recorded.

Smeldr v1.192.0: additions to existing reads

Choose a tag to compare

@xxwink xxwink released this 13 Nov 15:35

[1.192.0] - 2026-11-13

Added

  • SignalHistory and SignalKindOf classify every signal type (T1183). SignalHistory is a new SignalKind constant next to SignalCondition and SignalRequest. SignalKindOf(t string) SignalKind returns the catalog kind of a signal type, or SignalHistory for a type that is not in the catalog. It follows SignalTypeOf, so the two never disagree.
  • PlaceApprover.IsCaller and InstanceAdministrator.IsCaller say whether a holder is the caller (T1183). Both are JSON is_caller fields, set by App.ApproversOf and App.Administrators. A holder is the caller when it is the caller's own identity (D165), so the flag is true whichever of the identity's live tokens made the call.
  • App.RestCountsWith adds the ratified split, a caller's limit and a page of addresses (T1183). RestCounts now calls it with zero options, and its answer is unchanged. RestCountsDetail adds RestsOnThisDetail and ThisRestsOnDetail, each with a ratified count and the page of addresses RestCountOptions asks for; RestCount itself is unchanged, so it stays a comparable value. Out-of-range options return ErrBadRequest with problem rest_counts.limit_invalid. The sweep stores a nullable ratified_count column in smeldr_rest_counts, added by EnsureRestCountTable, and StoredRestCounts.Ratified.Known stays false until a sweep fills it.
  • SearchQuery.Narrow and SearchQuery.After search by address and external reference (T1183). A narrow search matches only the record's address and its external_ref, from one character, and never reads a text field. SearchQuery.After continues it from a previous SearchResult.Next, and each hit carries ExternalRef and MatchReason. Each search reads at most 201 rows per type and phase (SearchNarrowCountCeiling is 200, D183), and above that SearchResult.AtLeast is set. A reference matches case-insensitively for ASCII letters, and references are ordered in byte order on both databases. New indexes on every addressed table: idx_<table>_address_no, and idx_<table>_narrow_ref on the reference key and the id (under the C collation on PostgreSQL, whatever the database's own collation).
  • App.PremiseFlags lists the premise-flagged pairs of a resting Decision (D149, T1183). It returns PremiseFlag values, each saying whether a condition is open (ConditionOpen), the condition's address (only when the caller may read that Signal), the premise (only when the caller may read it), and the last confirm_premise. An unknown or unreadable Decision returns ErrNotFound, and an empty decision returns ErrBadRequest with problem premise.decision_required. Capability item premise_flags.
  • LatestSweepRuns returns the newest sweep run of each detector (T1183). It is a package function, not a method on SweepRunStore, and it returns the records sorted by detector, with skipped and err set. A database with no sweep table returns an empty list, and a failed read returns ErrInternal. The new index idx_smeldr_sweep_runs_latest on (detector, ran_at, id) serves it, so the read follows the number of detectors, not the number of runs.

Smeldr v1.191.2: go1.26.11 and re-evaluation on SQLite

Choose a tag to compare

@xxwink xxwink released this 13 Nov 08:40

[1.191.2] - 2026-11-13

Fixed

  • Date-based re-evaluation of Decisions now queues on SQLite (T1196). Ratifying a Decision with next_eval_at set never queued its re-evaluation on SQLite. The schedule-eval trigger read the field into a sql.NullTime, which fails on SQLite because the driver returns the TIMESTAMPTZ column as a string. The trigger now uses core's shared time scanner, which accepts either form, so the Decision is queued in smeldr_eval_queue and moves to pending-re-evaluation once its time has passed. The warning is now two messages, "eval_field unreadable" (with the error) and "eval_field empty"; PostgreSQL was not affected, and Decisions ratified on SQLite before this fix need a one-time backfill.

Security

  • Core now builds with the Go toolchain go1.26.11, which fixes GO-2026-6859 in net/http (T1191). govulncheck reported GO-2026-6859 against core, and go1.26.11 fixes it in the standard library's net/http. The toolchain line in go.mod and in the example modules now names go1.26.11 instead of go1.26.10. The release binaries of this version are built with go1.26.11. The go 1.26.5 line is unchanged, so consumers need no newer Go.

Smeldr v1.191.1: revoked tokens refused on HTTP

Choose a tag to compare

@xxwink xxwink released this 11 Nov 12:47

[1.191.1] - 2026-11-11

Security

  • Behaviour change: on an App with a TokenStore, a bearer token signed with smeldr.SignToken but never stored is now refused on HTTP routes too (T1176). MCP already refused such a token. To keep working, mint bearer tokens through the store: TokenStore.Create, TokenStore.CreateClassified, smeldr-cli token create, or the create_token MCP tool.
  • HTTP routes now check bearer tokens against the TokenStore, so a revoked token is refused at once (T1176). Before this fix, a revoked token could still read, and write on record routes, until its signed expiry. When the App has a Config.TokenStore, every route that authenticates a bearer token asks the store, the same check MCP makes. That covers the App middleware (so every module's record routes), /packet, /reachability, /_content, /_audit, /_logs, /_stats, the first connect of /_events/stream, and the AuthFunc given to App.CookiesManifestAuth and App.RedirectManifestAuth. A revoked token, a token whose identity is suspended or retired, and a token the store does not hold are refused like a bad signature. If the store query fails, the token is refused. Not changed: an App without a TokenStore, session cookies (CookieSession), custom AuthFuncs, ?preview= tokens, and upload tokens. A request with a revoked bearer token is refused even if it also carries a valid session cookie. Cost: one SHA-256 and one primary-key query per request that carries a bearer token signed with the App's secret. There is no cache, so a revocation takes effect on the next request.

Smeldr v1.191.0: application sitemap fragments

Choose a tag to compare

@xxwink xxwink released this 06 Nov 13:27

[1.191.0] - 2026-11-06

Added

  • Application pages can now be listed in the sitemap with App.SitemapFragment (T1168). Before, only content modules with SitemapConfig had sitemap fragments, so a home page or topic page served by the application's own handlers could not be listed. SitemapFragment adds a fragment at a path you choose, and /sitemap.xml lists it next to the module fragments. The entries function runs on each request, so a new page is listed at the next crawl. A Loc that starts with / is joined to Config.BaseURL.

Smeldr v1.190.1: one worker per webhook job

Choose a tag to compare

@xxwink xxwink released this 06 Nov 10:44

[1.190.1] - 2026-11-06

Fixed

  • Outbound webhook deliveries are no longer duplicated by parallel workers (T1146). The default pool of 10 workers read the same due jobs without claiming them, so a receiver could get one delivery up to 10 times with the same X-Smeldr-Delivery. The delivery log, the delivery stats and the circuit breaker counted every copy too, so a failing job showed one attempt after several hits and the breaker could open early. A worker now claims a due job with one conditional update before it delivers, on SQLite and Postgres, and a worker whose read of the job is out of date does not claim it. A claim holds the job for 2 minutes; a job whose worker stops is due again after that, with its attempt count unchanged. Delivery is still at least once, so receivers should deduplicate on X-Smeldr-Delivery. The new exported constant OutboundClaimSQL exists only for the Postgres integration test. docs/REFERENCE.md now shows smeldr-cli webhook commands instead of the old forge webhook ones.