Commit Graph
3709 Commits
Author SHA1 Message Date
sam 95ce309b3a fix(connectors): leave a package with no declared egress on the host's network
Confining it was pointless: the relay the namespace exists for is only started
when egress is non-empty, so the package got loopback and a proxy address
nothing served. Any client honouring the proxy variables then reported a dial
refused at the relay rather than reaching the host it was configured for.

Fixes #2152.
2026-11-27 20:06:45 +11:00
sam 34482c8b0c fix(dashboard): re-read on the live stream instead of polling
Every view listing runs or approvals polled on a timer: the home page made
four requests every five seconds per open tab, two of them the same run list,
and the needs-attention card asked for 200 runs to render five.

A run or an approval request moving is now published on the hub and framed on
the dashboard stream, so those views re-read on the change. A reconnect still
re-reads everything, and the hub drops a reader that falls behind, which ends
its stream and reconnects it.
2026-11-27 19:44:21 +11:00
sam ace8c1be44 chore(deploy): wire the age secret engine into the staging stack
The engine reads AGE_FILE and AGE_IDENTITY from its environment, so the
compose file names both paths in the mounted state directory and the deploy
creates the identity when the host has age-keygen.
2026-11-27 19:42:20 +11:00
sam bf17e2471b fix(ui): stop offering an organisation the binary cannot create (#2150)
The organisations page could create one, and POST /api/orgs is not served: the
binary resolves a single organisation from the credential. The dialog and the
client method go, and the page lists what exists.

The gateway test missed it because it compared paths, not methods. It now reads
each request the client makes with the method it asks for, so a call to a path
the binary serves for another verb fails the gate.
2026-11-27 19:40:21 +11:00
sam 61d486fdc0 fix(ui): count what needs a person from served reads (#2145)
The shell's attention badge counted the task board's summary, which the binary
does not serve, so #2121 removed the badge with the board and nothing said, on
every page, how much work waits on a person.

The count now comes from the two operations that answer it: pending approval
requests and parked runs. The rule lives in ui/src/lib/needs-attention.ts, so
the dashboard's list and the shell's badge agree on what waiting means, and the
count is read through a small store so both read it once.
2026-11-27 19:37:46 +11:00
sam 77e291fdfc fix(governance): report only the dashboard sections that exist (#2147)
#2121 removed the pages behind sixteen sections and both capability handlers
still named them, so GET /api/capabilities advertised sections nothing can
render and the old service probed for pages that are gone.

The single binary now reports an organisation as unavailable (its page exists,
its writes do not) and lists nothing else it has no page for; the old service
reports only the sections and probes its pages still make.
2026-11-27 19:35:01 +11:00
sam 6a25153659 docs(vale): reject em dashes, and remove the ones on the tree (#2149)
AGENTS.md forbids em dashes in prose, comments and user-facing strings, and
nothing checked it: Google.EmDash only flags a dash with a space on both sides,
so a bare U+2014 passed.

Archie.EmDash rejects U+2014 for Markdown, templates and Go, with a message
naming the alternatives. The 40 occurrences it finds are rewritten as a comma,
a colon, brackets or a second sentence, and scratch trees are out of scope so a
run over the repository reports on what the repository holds.
2026-11-27 19:33:06 +11:00
sam 15efad9ad7 fix(ui): render system identity as System in UserReference 2026-11-27 19:28:48 +11:00
sam fa96ee852c fix(governance): refuse to delete a model alias a saved workflow names (#2097)
The delete refused only a missing alias, so removing the default model, or an
alias a saved workflow still names, succeeded and those workflows failed at
their agent step.

The runs module now reports the saved workflows that give an agent step a
model, treating a step that names none as the default, and the delete is
refused with a conflict that names them. The dashboard already shows a delete's
failure inline beside the alias, so the operator sees which workflows to move
first.
2026-11-27 19:28:13 +11:00
sam a101b64703 fix(runs): a cancelled run's trail records who stopped it (#2100)
Cancelling a run moved it and the runs it called to cancelled and wrote nothing
to either trail, so a stopped run could not say when it stopped or who asked.

The stop now returns the runs it stopped and records one cancel entry on each,
in the same transaction, naming the principal that asked. The entry is a step
named cancel with the caller's identity, so the run detail shows it with the
rest of the trail.
2026-11-27 19:24:19 +11:00
sam 5e53e8ec0e fix(ui): keep the tab title until the route resolves (#2115)
Opening a page by URL showed "Page not found" in the tab while the router was
still at its start location, which carries no label, so the not-found copy
stood in for the page for as long as the resolution took.

The title is now written only once the router has resolved the address, and the
rule lives in ui/src/lib/page-title.ts so the start location's silence is
tested.
2026-11-27 19:21:04 +11:00
sam 65cd993ee6 fix(events): keep a mapped number's exact text (#2118)
The payload was decoded into float64, so an integer id past 2^53 was rounded
before it reached the run: the event named one record and the run acted on the
one next to it.

The mapping now decodes with json.Number, which marshals back as the exact
digits the event carried, and the type check accepts it for a number field.
2026-11-27 19:18:21 +11:00
sam 27cd2d0df1 fix(memory): reach every note a person may read (#2141)
maxNotes bounds what a conversation is given, and it was also the only bound on
the inspection read a person makes and on the shared list, so past 200 notes of
one class the oldest ones were unreachable, with no total and no offset to say
the list had been cut.

The conversation read keeps the bound. The read of a person's own notes and the
shared list pass no bound, which the store reads as LIMIT NULL, so both reach
everything the caller may read.
2026-11-27 19:16:08 +11:00
sam f1c595d39b fix(ui): name only the pages the sidebars can open (#2148)
Removing the old services' pages left their entries in the sidebar specs, and a
nav entry with no route threw during the first render, so the shell drew
nothing and every page was blank. The chat browser test caught it, which is
the failure #2148 recorded; it passes again.

The spec list moves to ui/src/lib/nav-specs.ts, which imports nothing, so a
test can check every address it names against the generated page catalogue.
That is the guard: deleting a page without updating the sidebars now fails
the gate instead of the browser.
2026-11-27 19:13:33 +11:00
sam 5cc59c31c6 fix(ui): edit the approvals that earn an autonomy proposal (#2124)
propose_autonomy_after is part of the organisation settings but the approvals
page had no control for it, so the value could only be read and changed through
the API, against the rule that every setting is editable in the dashboard.

The page now edits it within the 1 to 100 the server accepts and shows the
saved value after saving. The draft and the save body live in a page-local
module so the shape of a save is tested without a browser.
2026-11-27 19:10:16 +11:00
sam 35688b449a fix(governance): invite a member by email without an identity provider (#2110)
Adding a member by email refused with a 409 whenever no OIDC issuer was set,
so an install with local accounts only could not invite anyone by address.

An address now reserves the identity under a local issuer instead, and a local
account made with that address adopts it: the invitation's roles carry over and
the organisation shows one member, not two. A provider subject still needs the
provider that asserts it, and the refusal says so.
2026-11-27 19:08:08 +11:00
sam ea6385879f fix(ui): stop calling operations the binary does not serve (#2121)
The dashboard is embedded in the single binary, which serves api/openapi.yaml.
It was still calling the old services' routes, so pages that read them answered
with a not-found: the task board, its activity feed and setup panel, logs,
alerts, audit and its export, bindings, schedules, channels, repositories,
skills, curators, the control-plane settings pages, identities and org agents,
the org switcher, secret-reference checks, task metadata, and the audit, usage,
summary and version reads.

Each of those surfaces is removed, and a test compares every /api path in the
dashboard's source with api/openapi.yaml so the next one fails the gate
instead of the browser. Settings that the binary does serve (model providers,
instructions, policies, members) keep their pages.
2026-11-27 19:03:02 +11:00
sam a23417f392 docs(agents): prompts live in internal/platform/prompts
The five module files that read prompts already use internal/platform/prompts, and modules may only reach internal/platform. The old internal/prompts serves the six services until they go.
2026-11-27 18:31:33 +11:00
sam db2cfe172e Merge pull request '2069 scoped chat memory' (#2142) from 2069-scoped-chat-memory into main
Reviewed-on: #2142
2026-11-27 07:29:06 +00:00
sam 79be5aad96 fix(webui): hide the memory pages this process cannot serve (#2069)
Quality / check (pull_request) Successful in 3m7s
The dashboard is served by both binaries, and internal/webui serves no
/api/memory route. Reporting the memory sections as unavailable drops both pages
from the navigation there instead of offering pages whose every read and write
answers not found.
2026-11-27 18:25:20 +11:00
sam aa3568dd52 fix(memory): refuse a credential written out in prose (#2069)
A note saying "the deploy token is 1234567890abcdef" was neither redacted nor
refused, because the credential check only recognised a value after a colon or
an equals sign. The copula now counts as the separator, so a credential written
out in a sentence is refused the way an assignment is.

The version read is scoped to the organisation as every other note read is, so a
note id from another organisation answers nothing, and the doc comments on
Forget and Revoke describe the order the code actually commits in. The
deletion-recording schema constant had no consumer and is removed.
2026-11-27 18:25:20 +11:00
sam 368d484410 test(memory): cover the shared half of the read boundary (#2069)
The fake's Notes filter modelled only the owner half of store.Notes, so a
regression that stopped sharing published notes would still pass. It now mirrors
the statement, and the test asserts a published note reaches both people, a
proposal reaches neither, and a disabled note is left out of a conversation read.
2026-11-27 18:19:33 +11:00
sam 9b8de57a33 refactor(ui): colocate Events files and split Extensions into nested routes 2026-11-27 17:08:31 +11:00
sam 6356aa5d52 feat(api): filter lists by sys_query
sys_query is conditions joined by ^, each field=value, field!=value or fieldLIKEtext. A bad condition or a field a list does not offer is a 400 naming the fields it accepts, so a typo never reads as an empty page. Runs, workflows, proposals, guards and action types take it, and the dashboard keeps the filter in the URL so a filtered list is a link.

The guard control API is list-guard-controls at /api/controls/guards: list-guards belongs to the connectors extension list, and the resource is a guard. JudgeStanding keeps its name, since it is the model judgement a guard recorded.
2026-11-27 17:06:30 +11:00
sam 6a3bf1e200 refactor(ui): split Events tabs into nested file-based routes 2026-11-27 16:45:42 +11:00
sam a8628de625 fix(ui): merge folder parent routes so nav shows labels; drop dead legacy redirects 2026-11-27 16:38:02 +11:00
sam 0d267170c6 refactor(ui): add page layout system under src/layouts 2026-11-27 16:34:05 +11:00
sam ccb36a1ca9 refactor(ui): drive sidebar and topbar breadcrumbs from file-based routes 2026-11-27 16:32:06 +11:00
sam 936c5267f0 refactor(ui): adopt vue-router file-based routing under src/pages 2026-11-27 16:29:38 +11:00
sam 1e105ff4c8 Merge pull request 'Staging/ui regressions' (#2134) from staging/ui-regressions into main
Reviewed-on: #2134
2026-11-27 05:03:28 +00:00
sam 2e9d14412e fix(ui): keep proposals visible during background refresh
Quality / check (pull_request) Successful in 3m9s
(cherry picked from commit 7334f659fd14f68186f009279dc6cda4c4cd56fd)
2026-11-27 15:59:18 +11:00
sam f6eff43ca4 fix(ui): restore staged review for models and instructions
Apply reviewed edits through the module APIs one request at a time. Keep failed and untouched drafts for retry, and remove successful edits from the review.

(cherry picked from commit 952215e36325b76f6e3364d713263f502acf6d02)
2026-11-27 15:51:34 +11:00
sam a2141ed4bb fix(ui): let settings saves recover from version conflicts
Keep the conflict visible after reloading the resource so the draft rebases onto the latest version. Require another Save to submit it, and keep the draft against its original version if the refresh fails.

(cherry picked from commit 0d4b63c906363c4343e8f8a8f4163c96b0c3378f)
2026-11-27 15:51:34 +11:00
sam 90e58a67e9 fix(ui): link user attribution to member records
(cherry picked from commit d30901653a181041b2424389baceb056f16ec7c9)
2026-11-27 15:51:34 +11:00
sam 5dc5dbbafc fix(ui): preserve modal focus rings and discard policy drafts
(cherry picked from commit a2eff9938d1d2c22c16e73f790a7c32f9c150a23)
2026-11-27 15:51:34 +11:00
sam 74deeb74d5 Merge pull request 'fix(ui): preview extensions and modal-edit policies' (#2133) from fix/ui-screen-consistency into main
Reviewed-on: #2133
2026-11-27 02:57:57 +00:00
sam 3afc693063 fix(ui): preview extensions and modal-edit policies
Quality / check (pull_request) Successful in 3m0s
2026-11-27 13:47:40 +11:00
sam 2794416272 Merge pull request 'fix(ui): include base URL when creating providers' (#2132) from fix/provider-url-input into main
Reviewed-on: #2132
2026-11-27 01:44:04 +00:00
sam 21980f9ced fix(ui): include base URL when creating providers
Quality / check (pull_request) Successful in 3m2s
2026-11-27 05:17:07 +11:00
sam 08988692c1 docs: standardise british spellings in ui docs 2026-11-27 03:14:53 +11:00
sam 6b4ff8101a fix(governance): ask for the public URL during owner setup (#2076) 2026-11-27 02:33:15 +11:00
sam 24a3efcf60 fix(connectors): keep published settings and let admins reset the catalogue (#2119) 2026-11-27 02:29:39 +11:00
sam bc4ac4436d docs(connectors): clarify catalogue and guard comments (#2119) 2026-11-27 02:21:13 +11:00
sam c538017523 fix(connectors): verify the default catalogue and roll back failed updates (#2119)
Adapt OCI reads from internal/infrastructure/signedoci and internal/infrastructure/storepkg. Keep the legacy readers while their callers still use them.
2026-11-27 02:19:21 +11:00
sam 2ea0062bef feat(ui,judgement,system): unify nav, surface built-in guards, readiness and decision reasoning 2026-11-27 02:13:28 +11:00
sam 5dc2d79fdb Merge pull request 'fix(events): scope mappings to source owners' (#2131) from fix/events-private-source-mapping-visibility into main
Reviewed-on: #2131
2026-11-26 10:49:47 +00:00
sam f0f09e9189 fix(events): enforce source ownership for mappings
Quality / check (pull_request) Successful in 10m21s
2026-11-26 20:35:40 +11:00
sam 8bf3ace96b feat(governance,chat): size a model's chat history by its own window (#2018)
The replay budget was fixed at half of an assumed 128k window, so a small
local model was still handed more history than it accepts.

A model now carries the context window and output limit the published
catalogue gives it, read once into the state directory and cached on
disk. Chat holds its replay to the window minus the reply and an eighth
for the system prompt and tools, and keeps the assumed budget only for a
model the catalogue publishes nothing about.
2026-11-26 04:20:11 +11:00
sam 8dd28b90be feat(chat): hold a long conversation inside the model's window (#2018)
A reply was replayed with a fixed twenty earlier turns, so a long
conversation either lost its older context or, with large replies, sent
more than the model accepts and failed the request. The replay now reads
up to two hundred turns and replaces the middle of what it cannot carry
with one summary message, keeping the newest twenty messages and always
the question being answered.

Carried from internal/gateway's compression.go before that package is
retired: the same conservative token estimate (four ASCII characters or
one non-ASCII rune), the same 50%-of-window budget, and a summary that
says what was dropped. The budget is fixed rather than derived from the
model because the module is told a model's name and nothing about its
window.
2026-11-26 04:17:16 +11:00
sam e4663c22c0 fix(ui/events): frame the Map and Bind steps as cards
Both steps drew their actions in a bare row above a bare empty state, so
they looked like nothing else on the page. Each is now one card with its
actions in the header, and the Installed playbooks link is a button
rather than a stray underline beside one.
2026-11-26 03:47:57 +11:00