Repository navigation
v0.1.0-alpha
Pre-release
Pre-release
·
2 commits
to master
since this release
The first release of the 0.1 line, for macOS and Linux (amd64 and arm64). Setup moves from the terminal to a page: the agent runs basalt init and the person finishes on the page it links. The CLI only starts things. Expect bugs and breaking changes between alpha releases, and read "Breaking for alpha installs" before you upgrade.
Added
- The local setup page (
/setup/onhttp://localhost:8787). On your own computerbasalt initinstalls the engine service through the system's administrator dialog, one password and nothing typed in the terminal, then prints and opens the setup link. On the page you type the admin connection string, which is used once and never written or logged, pick the tables the agent gets (read and change, or read only; a table without a primary key is read only), label the columns that hold personal data, create a passkey, read the SQL and run the install in one transaction. A service engine with noengine.jsonyet serves only this page and waits. - The check-up.
basalt initon a computer already set up opens the page on a check-up. Problems that stop BasaltDB working (a guard update, a new database certificate, a certificate that does not match the ledger, no passkey, an agent that cannot log in) each have their own fix button, which asks for the admin connection string or your passkey. Columns without a label are a warning that never blocks, and leaving them unlabeled is remembered. With nothing critical open the page says "Ready", and Done ends on an "All set" screen that says to go back to your agent. The passkey list removes a lost device's passkey and adds one on this device. - Passkeys work without Touch ID: the prompts accept a fingerprint, face, the computer's password or PIN, a phone or a security key.
- Remove BasaltDB on the setup page, with one press: the agent runs
basalt init --remove, and its page has one box and one button. It shows what goes (the ledger, the guard, the agents by name; your tables stay) with the SQL, and its button names the database and its host (Remove BasaltDB from <database> on <host>): the admin connection string you pasted is the confirmation, with no name to type. On your own computer the setup installs a small removal job with the engine, so the same press then removes the engine service and its files from the computer too, with no second password, no terminal and no trip back to the agent; the page ticks the database and this computer as each is done. macOS keeps the engine's hidden system account_basalt(a background job cannot delete a user there without Full Disk Access) and a new setup uses it again;docs/install.mdgivessudo sysadminctl -deleteUser _basaltandsudo dseditgroup -o delete _basaltto delete it. Afterwards the agent'sstatusanswersREMOVEDand tells the agent to remove its own MCP entry. The service stays while the engine still serves an agent of another database. - The connect page (
https://portal.basaltvault.app/connect), for an agent on a computer you cannot reach.basalt init --remotemakes a connect-only setup code and prints its link. The code names no database, so you give the agent nothing about it. The page checks that the code matches the one in the chat, takes the passkey step, and asks for the admin connection string, which it sends to the hosted connect service for that one setup and keeps nowhere. It checks that the bot can reach the database, shows it by name with its tables, and lets you untick tables and label personal data. - The engine collects a connect-only setup's address itself and logs in with the agent's real password only after you confirm the database in the chat, through the new
confirm_databasetool. - The connect page runs the update for a bot that is already set up (the guard, labels, passkeys, a changed certificate), and has a Remove BasaltDB tab that needs only the admin connection string: no bot and no setup code.
- Remove BasaltDB from a bot's computer with one press: ask the bot, and
basalt init --removeon its agent-operated engine prints a removal link to the connect page. There you paste the admin connection string (the page checks it by itself, with no name to type) and press Remove BasaltDB from on . The bot's engine then removes itself: once a fresh login shows its role is gone, it stops, deletes its config, state and credential files (thebasaltbinary stays) and reports back, and the page ticks the database and the bot's computer. Afterwards the bot'sstatusanswersREMOVED. - Both setup pages ask one question after you paste the admin connection string: "Is this your database?", with the database, its host, the user the string signs in as and how its certificate was verified.
- Trust profiles: which root certificates verify a database's certificate, as data. The engine now connects to Supabase and Amazon RDS with full TLS verification (
sslmode=verify-full, host name checked) from built-in profiles of their roots, and each provider's roots verify only its own hosts. An operator can place a profile file intrust.dnext toengine.json.statusreports which trust verifies the agent's database and warnsTRUST_ROOT_EXPIRING,TRUST_PROFILE_REFUSEDandCERTIFICATE_NOT_VERIFIED. - A connection string that is encrypted but doesn't check the certificate (
sslmode=require,preferorverify-ca) gets a warning in three places. BasaltDB keeps thesslmodeyou gave it and changes it only on your click. "Is this your database?" warns and, for Supabase and Amazon RDS, offers Check the certificate, which switches onlysslmodetoverify-fulland checks again; if the certificate isn't the provider's, nothing is sent and you go back or continue without checking. The check-up shows a Certificate not checked row whose Check it rewrites the agent's saved connection toverify-fullafter a check that passes.statuswarnsCERTIFICATE_NOT_CHECKED. A connection with no encryption at all (sslmode=disable, orpreferon a server without TLS) gets the same treatment:statuswarnsCONNECTION_NOT_ENCRYPTED, and the check-up shows Connection not encrypted. On Supabase and Amazon RDS hosts, Check it switches the connection toverify-full. - Pinning on first use. For a database whose certificate no authority on the machine signs (Cloud SQL, DigitalOcean, Aiven, self-signed), confirming "Is this your database?" pins its certificate authority for that host only. From the connect page the engine pins only when its own reading of the chain matches what you trusted. A chain from a public authority is never pinned. The pin is recorded in the ledger, and a pinned host that presents another certificate is refused with
TRUST_ROOT_CHANGEDuntil you accept it on the Update check. basalt engine --superviserestarts a crashed engine with a backoff and gives up after five fast crashes in a row, recording why.basalt mcpstarts a same-user engine it finds down, so a bot's computer that lost its engine after a reboot or an update needs no step.--started-bysays why an engine started, andstatusreports it.- The engine restarts itself onto an upgraded binary installed at the path it was started from, with or without a service manager, once running calls finish.
basalt mcpwaits for the restarted engine and sends a dropped read once more; writes, approvals and reverts are never sent twice.basalt mcpand the engine agree on a protocol version when they connect. - A daily check for a newer release.
basaltprints one line on stderr when one is out, and the agent'sstatusanddescribecarry anupdatemessage for it to pass on. It sends nothing but the request. Turn it off withBASALT_UPDATE_CHECK=offor"updateCheck": "OFF"inengine.json. - On an engine you operate,
basalt mcpopens a link to the engine's own local pages in the browser when a result carries one, such as a held write's approval page or a revert to sign. It opens no other URL, and nothing on an engine an agent operates. - When
basaltpanics it saves a scrubbed crash report on the machine, andstatusnames the newest one with a link to file it on GitHub yourself. Nothing is sent. A tool call that panics ends withINTERNALinstead of stopping the engine. - The
statustool lists the tables the agent can read and write and names each passkey with a check code.describenames the agent's database and host. - The CLI's help and the MCP instructions say that one engine serves many agents, each on one database, and that another database needs another agent.
- The portal has a home page and a not-found page.
- A database whose BasaltDB install is too old to update is replaced on the setup page. The page says so first, from what it found ("It was set up by BasaltDB (guard version N)", or "It has guard version N" when no release is recorded, and the guard version this release needs), then runs the normal install steps. The last button, Remove the old install and set up, asks for the database's name and removes the old install and installs in one transaction: if the setup fails, the old install stays as it was. Your tables and rows stay; the old install's agent history and undo, held approvals and passkeys go. An update is still refused there.
- Guard version 14 records, in
basalt_meta.schema_version, the BasaltDB release that wrote each version (release), so a later release can name the one that set a database up. Non-breaking: an engine serves agents on a guard without it. - Guard version 15 records a held write, revert or plugin approval its agent withdrew, with the agent's reason, and never takes a signature for it: the approval, revert and plugin pages say "The agent withdrew this request: . Nothing changed." and offer nothing to sign, on the engine's own pages and on the portal alike, and a write sent with a withdrawn approval writes nothing. A held write the agent withdrew reads
APPROVAL_WITHDRAWNinrun_history, andstatusreports a plugin entry whose approval the agent withdrew asPLUGIN_APPROVAL_WITHDRAWN. Breaking: an engine of this release needs guard version 15, andbasalt initupdates a guard at version 14 in place. - A
withdrawMCP tool: the agent takes back its own held write, revert or plugin approval that still waits for the person, with the reason it heard (for example when the person says to cancel it). The link stays and its page shows the request withdrawn with that reason and nothing to sign. Withdrawing a revert or a plugin approval is a safety step, since signing either takes effect on its own. Another agent's request isNOT_FOUND, and one that no longer waits keeps its state.list_pendingno longer lists a withdrawn request, and therequest_revert,revert_planandrequest_pluginwait forms answerWITHDRAWNat once instead of still waiting. engine.jsonrecords the breaking epoch it was written in ("breaking": 1).basalt init(andbasalt init --remote) on a computer whose config is from before the last breaking release moves the config folder aside to<folder>.old(never deleting it), removes the old engine service in the administrator dialog it already shows, says so in one line and sets the computer up as a first install, printing thebasalt mcp --agent NAMEline to register again.http://localhost:8787/shows that BasaltDB is running instead of an empty 404: how many agents and databases (the kind only: Supabase, Amazon RDS or Postgres), whether the engine, the guard and the passkeys are fine, and a button per database that opens its check-up. It has no login, so it never shows an agent's name, a database's host or name, a table or any record of what an agent did.
Changed
- Homebrew installs BasaltDB as a cask, not a formula (GoReleaser deprecated Homebrew formulas). The command stays
brew install basaltdbhq/tap/basaltdb. The cask clears macOS quarantine onbasalt, which is not notarized;SHA256SUMSand its cosign signature still cover the archive. - Every next step, warning and person message hands the person a link, never a
basaltcommand. A setup job is an agent step that runsbasalt init(basalt init --remoteon an agent-operated engine), which prints the link. - Approvals and reverts are signed only on a page with a passkey: the engine's own pages on your computer, or the portal on a bot's computer, whose signature the hosted relay carries to the engine. Nothing is pasted. A whole-task revert is
request_revertwithtaskId, widened on the signing page, and a revert too large to prepare in one call is split withrunsortables. - A portal short link (
/approvals/*,/reverts/*) opens an end-to-end encrypted session to the engine through the BasaltVault relay (wss://relay.basaltvault.app). The page shows the engine's fingerprint to compare before you sign, and the engine's receipt for the signature. basalt init --remoteprints thebasalt mcpline with the absolute path of the running binary, so an agent app whosePATHlacks it can still start it. A binary in a temporary folder gets a warning to move it.- The README,
llms.txtanddocs/describe the simplified product. No guide asks a person to type abasaltcommand or to paste an admin connection string into a terminal. - Release builds are reproducible: the same tagged commit built with the Go toolchain set in
go.modgives byte-identical archives, packages andSHA256SUMS. docs/RELEASING.md explains how to check a release. - Release binaries embed
golang.org/x/cryptov0.59.0, so binary scanners no longer flag GO-2026-5932. BasaltDB never called the package involved. - The setup page and the engine refuse more spellings of an admin connection string in a tool call: JSON text with
\u0026for&, a percent-encodedpasswordname or scheme, a password with a space,postgresql+psycopg2://and a libpq key and value string. The connection string pasted on the local setup page takes only the parameters the engine needs and refuses file-path keys such assslrootcert, so the engine no longer reads files a pasted string names. Error and status messages no longer advise addingsslrootcert. - A database whose host a built-in trust profile knows (Supabase, Amazon RDS) is checked with
sslmode=verify-fullwhen the admin connection string names nosslmode, which Supabase's own copy of the string does not. The confirm step shows "Verified by Supabase" (or Amazon RDS) and the agent's connection string checks the certificate too. Ansslmodein the string is kept as given. An RDS host in the China or GovCloud regions, whose roots BasaltDB does not carry, needssslmode=requirein the string. statuscounts only the passkeys registered on the origin the agent's links open, and it is notreadyuntil one can sign there. The tools keep working meanwhile.- A repair keeps the role's grants.
basalt init --remoteno longer saves the agent's tables, prefix or timeout inengine.json, and the database's grants are the only record. A role that was dropped, or that holds no table, asks the person to tick tables on the connect page, which shows the ticks from the connect service's answer. preview_revertsays its timeout is the agent's statement timeout, not the 100 seconds ofrequest_revert.- A tool call that panics now answers
INTERNALwith anerrorId, like every otherINTERNALandUNAVAILABLEerror, and the engine logs the panic under that id (the tool and the crash report's id, never the panic's value), whether or not the crash report could be saved. describenames what the agent may do with Basalt's ops: a resource'sactions, andaccessin the overview's and search's lists, sayREADwhere they saidSELECT(the grant that allows a read);INSERT,UPDATEandDELETEdo not change. An agent or tool that looks forSELECTthere needsREAD.- A write sent with an
approvalIdthat is not the held write is refused withAPPROVAL_INVALIDDIFFERENT_WRITEand the message "the request must be exactly the held write's" (was "sql and params must be exactly those of the held write"); its next step's text andlist_pending's step after it name the held request instead of its sql and params. The step's call arguments do not change.list_pending'srequest.kindis now read from the held write (stillSQLon Postgres). - Change records, tool errors and the plugin feed name things in words that fit any store.
run_history's records carryresourceandshapein place oftarget,store: {kind, verb}(the store's own command, such asSELECTfor a read), andrequest: {kind, statement, params}in place ofstatementandparams; a read'sopisREAD(wasSELECT), and each row change carriesresourceandshapein place oftable. Tool errors answerSTORE_ERROR(wasSQL_ERROR) and carrystoreCode(wassqlState) whenever the store raised the error.list_runsgivesresourcesandresourcesTruncated(weretablesandtablesTruncated);list_pendinggives a held write'srequestandassignedFields(werestatement,paramsandassignedColumns). The plugin messagesfeed/1anddeliver/1name the agentagent:<name>in the params,subjectanddata.agent, and the feed's write events carryresource(wastable) andstore. A plugin built with the Go SDK needs the SDK release that reads them. - The engine and the approval, revert and plugin approval pages read what a person signs in the store-neutral form of guard version 10:
store,request,resource,shapeandagent:<name>, and the conflictTARGET_GONE(wasROW_GONE). The engine checks that every text it relays follows the text rules and refuses one that does not. A page refuses to offer signing for data it cannot draw (shapeOBJECTor unknown) or arequest.kindit has no view for, and names the store fromstore.kind. Links in the old#1.form are no longer read; ask the agent for a new link (list_pendingorrequest_revertwithreissueLink). Plugin approvals name agentsagent:<name>. The guard'shold_actiontakes the request's own command, so an upsert's ledger rows carryverbINSERT. - The guard gets schema version 10 (breaking): what a person signs names things in words that fit any store. An approval's binding carries
store,request(the statement and its parameters),assignedFieldsand the agent asagent:<name>; its lines, and a revert's lines, carryshape,storeandresourcein place oftable(a revert line's SQLSTATE isstore.code, and the conflictROW_GONEisTARGET_GONE); a revert's binding carriesstore,resourcesin its select and every agent asagent:<name>; a plugin approval's binding carriesstoreand its agents asagent:<name>. The ledger records a read asREADand the store's word for each operation asverb(none on a revert, or on a refused DDL statement). Texts in the earlier form are not read, and the ledger's chain does not verify rows written before the upgrade: reinstallbasalt_metaon a dev or demo database (remove BasaltDB on the setup page, then runbasalt init). - Two more agent-facing names fit any store: the
RLS_HIDES_ROWSwarning'stableisresource(for Postgres stillschema.table), and alargeValuesentry'scolumnisfield. The receipt,queryanddescribedescriptions, and the person's pages, say the store and resources where they said Postgres and tables. describe's overview names what it counts in words that fit any store:counts.schemasis nowcounts.namespaces,counts.tablesiscounts.resources, the large overview'sschemaslist isnamespaces, each item{ namespace, resources }(was{ schema, tables }), andotherSchemasisotherNamespaces,{ namespaces, resources }(was{ schemas, tables }). The resource and search forms do not change. An agent or tool that reads these keys needs the new names.describe's resource form names its foreign keys and size in words that fit any store: each item offoreignKeyscarriesfields(wascolumns) and the otherresource(wastable, for Postgres still aschema.tablename), andstats.resourceBytesreplacesstats.tableBytes. An agent or tool that reads these keys needs the new names.- A badly formed name in the
resourcesfilter (wastables) ofpreview_revertorrequest_revertnow gets the database's own refusal:INVALID_ARGUMENTreasonSCOPE_FILTER, message "the revert filter is not valid, nothing was prepared: " and the store's text, which names the first bad entry ("leadsis not a schema.table name"), where it wasINVALID_ARGUMENTwith no reason and the tool's own message. The tool schemas no longer carry a name pattern for the filter. A name with a semicolon, such aspublic.leads;drop, is no longer refused up front: it reads "public.leads;drophas no change of yours in this scope", like any table the agent did not write. - The guard gets schema version 9 (non-breaking): a revert scope's table entry that is not one
schema.tablename is refused with its own detail,NAME, and a hint that names the entry. - The revert tools name things in words that fit any store.
preview_revertandrequest_reverttakeresourcesin place oftables(for Postgres stillschema.tablenames); the lines ofpreview_revert, and the items ofrevert_planand theirplan, carryresourcein place oftable; and the lines and items ofpreview_revert,revert_planandapply_revert_batchcarrystoreCodein place ofsqlState(for Postgres still the SQLSTATE). Messages and next steps that name the filter sayresources, the next steps of a refused filter point to the resources the agent wrote, and theselectthatpreview_revertdescribes is the descriptor as the store normalized it. The signed revert line, the binding the person signs, the person's page and the tool error'ssqlStateare unchanged. - The guard gets schema version 11 (breaking): the refusals the engine tells apart carry a code as their detail and the sentence as their hint. A signed revert's
REVERT_INVALIDisALREADY_APPLIED,ALREADY_SIGNED,PASSKEY_REVOKEDorROWS_CHANGED, andNOTHING_TO_REVERTfor a scope that changed no rows isREADS_ONLY, so the engine no longer matches the guard's words. A revert scope refused for a badagents,runsorresourcesentry now names the first such entry, for example "the revert scope was refused: x is not a run id". The engine needs this version: runbasalt initagain and update the guard on the page it opens. - The engine's warning "pii: a column the agent read is not classified" logs the column as
field(the store's ref for it, for Postgres<table oid>/<attnum>) in place oftableOidandattnum. A log filter or alert that reads those two fields needs the new one. - The engine's warning "plugin feed paused" gives a database refusal's class as
STORE_CODE <code>(wasSQLSTATE <code>); for Postgres the code is still the SQLSTATE. A log filter or alert that matches the old class needs the new one. describe's search names what matched in words that fit any store:matchedisresource,namespaceorfield <name>(wastable,schemaorcolumn <name>);commentdoes not change. The approval and revert pages' request, served by the engine, carriesfields(wascolumns), each resource to its field names in the store's order, for display only.describe's messages and next steps, a revert's person message ("only resource ", was "only table ") and the plugin feed's revert headline, and the descriptions ofdescribe,preview_revert,run_history,run_start,statusandwritesay resource, namespace and field where they said table, schema and column. An agent or tool that readsmatchedneeds the new values.engine.jsonmust hold only its one JSON object. A file with anything after the closing brace, such as a second object, a//comment or stray characters, was accepted before. The engine now refuses to start withconfig <path>: data after the JSON value. To fix it, remove everything after the closing}.- Go API:
pkg/trustprofiletakes a host and its*tls.Config(TrustTLS,ExplainTLS) in place ofTrustandExplain, which took a*pgconn.Config, so the package no longer links the Postgres driver. CallTrustTLSonce for each host of a connection. - A setup code run against the wrong database (
TARGET_MISMATCH) now tells the person to paste the admin connection string of the code's database on the page, or to ask the agent for a new code. It no longer says to run a command. The refusals that told the person to fix or update "this computer" now say what to do on the connect page:UNSUPPORTED_FORMATsays to try again later andBINARY_TOO_OLDto try again shortly, since the connect service runs the code;SETUP_ID_IN_FUTUREandEXPIRY_TOO_FARsay to check the clock of the agent's machine; and a code the database's clock refuses says to check the database's clock, no longer "this computer's".
Removed
- The commands
basalt log,status,access,approve,revert,passkey,classify,upgrade,uninstall,tunnel,portal verify,service uninstall,engine listandengine revoke, with their flags. What they did is in the agent's MCP tools and on the pages. The portal check runs in the release workflow. - Every
basalt initflag but--agent,--remoteand--demo:--write,--read,--prefix,--statement-timeout,--os-user,--engine-user,--socket-dir,--credential-file,--config,--no-service,--rotate-password,--skip-passkey,--passkey-label,--passkey-origin,--add-passkey,--agent-rls,--operated-by,--person-uid,--vault,--database-url,--new-code,--direct-addr,--dev-local-pages,--json,--yesand--dry-run. Tables, labels and passkeys are set on the page. basalt init --setup-code, with--engine-urland the laptop half of the setup code, and the terminal setup: the admin connection string prompt and the passkey hand-back with its pairing code.basalt mcp --config,--socket-dirand--socket, andbasalt engine --userwith the engine's own privilege drop.write'sapprovalargument andrequest_revert'ssignature, with the pasted approval and revert codes on every page.- The direct transport: the engine's direct listener (
directAddrinengine.json), the engine address recorded with its key, and the portal's engine pin pages (/engines,/engines/add). Portal pages reach the engine through the relay only. - The person socket, and the
/passkeys/checkand/passkeys/forgetpages. - The
remote-init-resultandportal-verify-resultJSON schemas, anddocs/setup-from-laptop.md. - The
DIRECT_NOT_SERVEDproblem fromstatus, and the last mentions of the direct transport in the tool schemas. - The environment variables
BASALT_DATABASE_URL,BASALT_ADMIN_DATABASE_URL,BASALT_CACHE_DIRandBASALTDB_ALLOWED_HOSTS. The engine reads its connection fromengine.jsononly, and the update notice keeps its cache in the user cache folder. - The passkey registration request no longer takes
handBack(api/mcp/approval/registration-request.schema.json), and the registration page no longer shows a pairing code; the shared pairing-code vectors are gone. Both went with the terminal setup's hand-back tobasalt init; the page shows the code to paste, as before. - The plugin person schema (
api/plugin/approval/person.schema.json) no longer listsPLUGIN_APPROVEor its params and result: a plugin approval is signed on its page, which relays the signature. - The Go setup package (
pkg/setup) gains the replace of an install too old to update: a caller setsRequest.Replaceto offer it,Checkthen returnsChecked.Replace(the old guard version, its recorded release, the floor, this release and the first screen's words) and checks the rest as after the old install's removal, andRunremoves it and installs in one transaction onceRunInput.ConfirmNameis the database's name. A caller that does not setRequest.ReplacegetsGUARD_UNUSABLEas before. - The Go setup package (
pkg/setup) dropsRequest.ConnectPageand theCONNECT_ONLYrefusal (CodeConnectOnly), left from the removed laptop setup command. Every request is run the way the connect page runs it: a code without a target is accepted,Checkalways returns the column labels (and, for a code with a target, the passkeys), andRunrefuses a code with ticks and noIncludedwithNO_TABLES. The laptop's passkey step goes too:RunInput.AskPasskey,RunInput.AddPasskeyand thePASSKEY_NOT_REGISTEREDrefusal (CodePasskeyNotRegistered). A run needsRunInput.Passkeywhenever the database has no active portal passkey. The contract no longer promises OSC 8 terminal hyperlinks, which the CLI never printed.
Fixed
- Every box that takes a database admin connection string (the setup page's, its fix screens' and the connect page's two) is hidden by default and has the eye button that shows or hides it, locked with the box while an action runs. Before, only the connect page's paste box had it.
- Every admin connection string box has the same Check button, on for a string that parses as a Postgres URL with a user and a host. A pasted string is checked for you 400 ms after the paste; a typed one is checked when you press Check, so typing a password never sends a login attempt. A refused string is not sent again until you press Check. The setup page's and connect page's Continue buttons for the string are now Check.
- The setup's Done screen for the sample data now says
The sample data is ready: 30 leads and 20 notes.where it saiddemo ready: leads 30, lead_notes 20. - The setup page turns off every other control while a setup, update, removal or fix runs: the Check button, the connection string box, the OS-user box and the replace box stay off until the run ends and come back if it is refused.
- Every message, page and tool description now calls the product BasaltDB, not Basalt; the sample-schema note on the setup page is one sentence in the same list (The sample schema basalt_demo already exists: its rows stay as they are.).
- When the engine has left the computer, the removed screen says the basalt command stays where you installed it, and that Homebrew's brew uninstall basaltdb removes it.
basalt init --demoon an engine that is already set up says that the flag was ignored. It opens the page that updates or removes BasaltDB, as before, and now prints that a fresh demo needs a removal first: press Remove on the page, then runbasalt init --demoagain. Plainbasalt initprints nothing new.- The agent now knows
basalt initalso removes BasaltDB. Asked to remove it, an agent used to inspect the service and the system user and offer a sudo script; the MCP instructions andbasalt --helpnow say to runbasalt initand show the link, and never to remove BasaltDB by hand. - A write held for approval that uses
now(),current_timestampor one of the other time functions is no longer refused. The engine has Postgres evaluate the time once, when it holds the write, and holds the statement with that value, so the approval page, the preview and the applied rows all show the same time. The agent sends its own statement again with the approval id and it applies. Before, the agent had to retry with a literal timestamp.random(),gen_random_uuid()and other values that change on every run are still refused, and the message names the function. - A held
INSERTwithout a column list on a table with anow()column default can be applied. The approval binds every column of such anINSERT, so the default's time changed between the hold and the apply, and the approved write always failed. The engine now fixes that default's time too. A column left to an identity or to a default such asnextval(),gen_random_uuid()or any function the database marks volatile (an extension's or your own) is refused when the write is held, and the message names the column, instead of being held as a write that could never apply. - On the approval and undo pages, short values in the row tables (names, numbers, timestamps) stay on one line instead of breaking mid-value. Only long text wraps, and a wide table scrolls sideways inside its card.
- Row-level security no longer hides itself from the agent. A table whose rows row-level security hides from the agent now gives the
RLS_HIDES_ROWSwarning on every read and write that touches it, not only on an empty result: acount(*)returns one row holding 0, and the agent used to take that for an empty table. A write that row-level security refuses (new row violates row-level security policy, in its insert, update and delete forms) isPERMISSION_DENIEDwith guidance that names row-level security and sends the person tobasalt init, where they answer the row-level security question, instead of the generic "denied access" message. list_runsshows all of an agent's history. Besides runs it now lists the reverts the person signed (kindREVERT) and the reads the agent made outside any run, grouped per UTC hour (kindLOOSE_READS), in one time order with the same paging, andrun_historytakesfromandtoinstead ofrunIdto list the reads of one hour. Each item now carries akind(RUNfor a run). Thecursoroflist_runsis a new shape: a cursor from an older engine isINVALID_ARGUMENT; call again without it.- A release now counts as newer than its release candidates. The update notice offers
0.1.0-alphato someone running0.1.0-alpha-rc.3, andbasalt initfrom the release no longer refuses an engine service that runs the candidate as "newer than this basalt". basalt initinstalls the engine service from a Homebrewbasalt, or one unpacked in a folder of your own, with no manual step. The one password dialog now copiesbasaltinto a folder only root can change (/usr/local/libexec/basalton macOS,/usr/libexec/basalton Linux), checked against whatinitread, and the service runs that copy. Before,initrefused a binary in a folder your account owns and handed the agent twosudocommands, which an agent session cannot run. Afterbrew upgrade,basalt initcopies the newbasaltover the service's copy and restarts the engine in the same single dialog. Removing BasaltDB deletes the copy. No message tells you or the agent to runsudo.- A Vault session that a duplicated or otherwise refused frame ends now always closes with
FRAME_INVALID. It could close withPROTOCOLinstead and send the Vault a secondSESSION_CLOSE. - The engine no longer reports "ledger chain broken" on a new ledger after the database was recreated the same way, for example after running the quickstart again on a fresh Postgres container. The guard now identifies each install by a random id instead of the schema's oid.
- A program on your computer could finish the first setup with a database it controls and leave you unable to set up your own. Running
basalt initagain now asks "Is this your database?" first. After "No, this isn't mine",basalt initasks for your password in the system's administrator dialog and resets BasaltDB on this computer: it deletes the engine's config, credentials and certificate pins, restarts the engine and opens the first-install page. No database is touched. On macOS the dialog says what it asks for. - The engine opens its agents' sockets before it reads the database, so a slow database no longer makes the engine look down to the bot. The first guard read runs beside the serving and gives up after 15 seconds.
basalt initon a computer with the engine service installed moves the service to thebasaltyou ran, through the administrator dialog, when that build is newer than the engine's, for example afterbrew upgrade. Before, the old engine kept answering and the fix was not in effect. An olderbasaltnever replaces a newer engine:initstops and says which one is newer.basalt mcp --agent NAMEandbasalt init --agent NAMEuse the engine config that holds the agent when two exist, a service engine's and your own. Before, the MCP server never connected. They stop only when both hold the agent or neither does, and name the agent and both paths.- A setup that Postgres stops to break a deadlock (
40P01, most often autovacuum on a table the setup changes) says that a database maintenance task locked a table and that running the setup again is safe. Before, it showed the raw Postgres error. - Supabase pooler hosts under
.pooler.supabase.coare recognised as the pooler, like.pooler.supabase.com. - Setup refuses a database with an older or partial BasaltDB install (
GUARD_UNUSABLE) at the check, before you sign anything, and links docs/remove-old-install.md. Before, the check passed and the install failed withSETUP_FAILED. - The passkey label defaults to "Passkey on " when the setup page sends none, so the install and Add a passkey no longer fail.
- A failed setup run logs its step, its SQLSTATE and the database's reason, with passwords removed.
- Remove on macOS keeps the engine user and its group together, and says so when macOS refuses to delete the user.
- Reinstall repairs a missing engine group and gives root-owned leftover engine folders back to the engine user, so
basalt initno longer fails withchown: _basalt: illegal group nameor leaves the engine crash-looping. basalt initstops and names the log when the engine service keeps crashing, instead of waiting out the 30 seconds.apply_revert_batcherrors for a revert that is not signed yet point at the revert page instead of the removedbasalt revert.- The engine's systemd unit now escapes
%and$in the binary and config paths, so a path containing them starts the engine instead of being expanded by systemd. - Commands the CLI prints now quote an argument that starts with
=, so a zsh user can paste them: zsh expands=cmdto a path. - A tool call that panics names its saved crash report even when older reports could not be deleted; it said no report could be saved. A
basaltcommand that panics now names its saved report in that case too. - A read and a refused action are recorded with qualified resource names, as a write is: the agent's
leadsispublic.leadsinrun_historyand the ledger, resolved with the agent's ownsearch_path. A read recorded the name as the agent wrote it, and a refused action recorded no resource at all. The guard gets schema version 12 (breaking): runbasalt initagain and update the guard on the page it opens. - The next step of
APPROVAL_INVALIDDIFFERENT_WRITEnow repeats the held write's large integer params exactly. They were rounded through a float, so sending the step as it was refused the write again. - A tool call that panics and could not save a crash report now answers
INTERNALwith apersonMessagethat says so, as everyINTERNALerror does; it had none. - A list cursor the engine did not return now gets
INVALID_ARGUMENTreasonSTALE_CURSORfrom every paged tool. A cursor whose id was not a valid id reached the database fromrun_historyandlist_pendingand came back asSTORE_ERROR, with steps to fix a statement the agent never wrote;list_runsalready refused it. - The engine's key files (
channel.json,pii.key) and a remote plugin entry'sauth.credentialFileare refused when the file has a second hard link, as an agent's credential file already was: another link is another path to the same secret. Every key and credential file is now read with the same checks, and must belong to the user the engine runs as; an agent's credential file may also belong to root. A kept plugin approval, a trusted plugin key andlast-stop.jsonnow survive a crash right after they are written. - A refused action with a very long statement, intent, reason or parameters is now in the ledger. The guard used to refuse to record it, so the refusal was only in the engine's log; now it keeps the text cut to its limit (2000 bytes for an intent or reason, 64 KiB for a statement) and ending in
..., and parameters over 64 KiB as{"cut": true, "bytes": <size>}. This is guard schema version 13 (breaking): it also refuses a revert or an approval the agent does not have, or one that does not exist, with the codeNO_SUCH_REVERTorNO_SUCH_APPROVAL, which the engine reads in place of the words "no such revert" and "no such approval". The engine needs this version: runbasalt initagain and update the guard on the page it opens. - The setup page creates the passkey on the first try for an agent with a long name; before, it refused every passkey it made with "This passkey was made for another setup page". A long agent or database name in the name your password manager shows for the passkey is shortened to fit and ends with "…".
basalt initon an engine already set up ends as soon as the guard update on the page it opened is done: it printsthe guard is updated on the setup page. The agent NAME can go onand exits0. Before, it kept the agent waiting, with no output, for the full 90 seconds it waits for a Remove. A Remove and "No, this isn't mine" work as before.- The help of
basaltandbasalt initnow says to connect another database withbasalt init --agent NAME, and withbasalt init --remote --agent NAMEonly on a bot's machine. It named only the--remotecommand. basalt init --demoon sample tables an earlier demo left behind, with row-level security turned on (for example in Supabase's table editor), now gives the agent its policy on them. Before, the agent saw no lead and its writes were refused, while the page saiddemo ready: leads 30, lead_notes 20. Abasalt_demoschema that BasaltDB did not make still gets no policy.- An install from the local setup page records the engine's key in the database, as a setup code's install does, so
statusreportsengineRecord.stateRECORDED. It reportedNOT_RECORDED. - A statement with no placeholders sent with parameters is
INVALID_ARGUMENTthe statement uses no parameters but N were given, instead ofuses 0 parameters ($1..$0). - A button that starts a check, a job or a passkey prompt shows that it was pressed: a spinner and a working label in the button ("Checking the certificate…", "Waiting for your passkey…", "Setting up…", "Removing BasaltDB…"), on the setup, connect, approval, revert, plugin and registration pages. A second press sends nothing, and a refusal or a cancelled passkey prompt puts the button back with the reason shown. With reduced motion the spinner turns slowly and the label still changes.
describeno longer says that hundreds of resources "cannot be seen" when they belong to the host's own schemas (Supabase'sauth,storage,realtime). The message now splits the count: what is held back in the schemas the agent can read from ("3 resources in public"), and a count of the other schemas the agent has no grant in ("204 in 11 other schemas"), which are never named.countscarries the split asnotGrantedInGrantedNamespaces,notGrantedInOtherNamespacesandnotGrantedNamespaces.- The Remove page no longer shows setup words: the box says the string is used to remove BasaltDB from the database, and the passkey footnote shows only under a button that asks for a passkey. The same sweep fixed wording on the other pages and in
basalt init, the agent's instructions andstatus: the All set screen's "Left for later" line no longer shows code marks, the service is called BasaltVault everywhere, and the removal text says the engine goes only when no other agent uses it. basalt initnow tells the agent to register the MCP server line it prints, and its wait ends at once when the setup page finishes a fix (a certificate check, labels, a passkey, the agent's login) for that agent, as it does for an update. When the wait runs out it tells the agent to runstatus.statusreportsstartedBySERVICEfor an engine the computer's service manager started, notHAND.- A removal, update or check-up link no longer carries
"demo": false.
Security
- The agent's credential file is read without following a symlink at its path, and a file with a second hard link or owned by another user than the engine's or root is refused. Before, a symlink was followed and only the mode of the file it pointed to was checked. A credential file that is a symlink must be replaced by the file itself.
- An engine started as root on a config outside the service folder reads
engine.jsonthrough the same checked read at every change, not by following a symlink. - Finishing an install that was interrupted now revokes the agent's grants on tables you did not pick the second time. Before, the agent kept read access to them. On a database where that happened, check the agent role's grants and revoke the ones you did not pick.
- Row-level security covers only the agent's own tables. A setup with no read or no write tables also offered every RLS table the agent's role could already read through another grant, such as one to
PUBLIC, and a read table could get a write policy. Now only the agent's tables get the agent policy, and read tables get a read-only one. On a database where that happened, drop the agent's policy on each table it was not given:DROP POLICY <agent role> ON <table>. - Setup codes and their links expire 10 minutes after they are made (they lasted 24 hours), and a link is refused on open once used or replaced by a newer code. A link found hours later can no longer walk the setup.
- Every MCP tool refuses a call whose arguments hold a
postgres://orpostgresql://URL with a password (INVALID_ARGUMENT, reasonADMIN_CREDENTIAL), before it reaches Postgres. The value is never recorded or logged. - The release
SHA256SUMSis signed with keyless cosign, and the signature is attached asSHA256SUMS.sigstore.json.SHA256SUMSalso lists the portal checksum, so one signature covers every file. See docs/install.md to check it withcosign verify-blob.
Breaking for alpha installs
- From 0.0.1: Homebrew installs BasaltDB as a cask now, not a formula. Run
brew uninstall --formula basaltdb, thenbrew install basaltdbhq/tap/basaltdb(or install the new release), then ask your agent to runbasalt init. On the computer, init moves the 0.0.1 config folder aside to<folder>.oldand removes the old engine service in the administrator dialog, then sets the computer up again and prints the newbasalt mcp --agent NAMEline to register. On the page that opens, the setup replaces the database's 0.0.1 install: it removes it and installs in one transaction, once you type the database's name. The 0.0.1 install's agent history, held approvals and passkeys go; your tables and rows stay. docs/remove-old-install.md keeps the SQL for an install too broken for the page. basalt initon your own computer only starts setup. It installs the engine service through the administrator dialog when needed, prints and opens the setup link, and prints thebasalt mcpline the agent registers. It never asks for or reads the admin connection string. With no dialog, such as in an SSH session, it stops and never runs the engine as your user instead.basalt init --remotetakes--agentand no other flag, and its output is text only. A new engine is agent-operated with the Vault on, and the first run prints the connect link of a connect-only code. An expired or refused setup is forgotten on the next run, which makes a fresh code.- An agent's
credentialFileinengine.jsonmoves insidestore. Anengine.jsonwith an agent's owncredentialFile, or withdirectAddr, is from before this release: every command refuses it and says to runbasalt init, which moves it aside and sets the computer up again. - Every command finds
engine.jsonby itself: at the system path, else in your own config directory, and it stops with an error when both exist, unless you name an agent that only one holds.--configis a flag ofbasalt engineonly, so the MCP line isbasalt mcp --agent NAME; update the line your MCP client runs. The engine service's unit runsbasalt engine --config <system path> --supervise. - A database set up by 0.0.1 is not updated in place. Its guard is at version 1, below the lowest version this release updates, so an update refuses it with
GUARD_UNUSABLEand changes nothing, and the engine serves onlystatuson it and gives no update link. The setup page's install replaces it (above); the connect service does once it offers the replace (pkg/setup'sRequest.Replace). - An updated guard refuses a setup code made by an older
basalt, which carries a 24-hour expiry, withEXPIRY_TOO_FAR. Ask the agent for a new link.
Known limits
- A pin trusts the provider's certificate authority, so where a provider shares one across customers, another customer on the network path could pose as your database.
- A revert that is too large to prepare even when narrowed to one change and one table cannot be reverted through BasaltDB.
- A reboot between Remove on the setup page and its last step leaves the engine service installed until you remove it by hand, as docs/install.md shows.
- Resetting a setup you did not make needs your OS password. A program running as your user can still start a first setup before you do, and you undo it with "No, this isn't mine".
- On Linux, the administrator dialog shows the system's generic text instead of naming what it asks for.