Commit Graph
3726 Commits
Author SHA1 Message Date
sam d0d79cbf91 feat(audit,approvals,deliveries): wire audit producers, ITSM change requests, and fix Dockerfile.archie (#2153) 2026-11-28 00:42:37 +11:00
sam fdfcbab4bd feat(catalogue,helm,ci): add private OCI auth, offline catalogue mirror, CI image/SBOM, metrics config, and OpenShift overlay (#2153) 2026-11-27 22:13:30 +11:00
sam dd38d93a29 feat(archie): wire enterprise rekey, OIDC/SoD, audit, telemetry, and bundles (#2153, #2154, #2155, #2156, #2157, #2158) 2026-11-27 21:20:33 +11:00
sam 07d30c95ca Merge branch 'swarm/oidc-sod' 2026-11-27 21:14:37 +11:00
sam 0999b7d84d feat(governance,approvals): add enterprise OIDC controls and four-eyes SoD (#2155) 2026-11-27 21:13:52 +11:00
sam 6bc78bdce8 Merge branch 'swarm/bundles' 2026-11-27 21:12:13 +11:00
sam 16abc47613 feat(archie): add declarative multi-stage promotion bundles (#2157) 2026-11-27 21:11:28 +11:00
sam 81278b37e3 Merge branches 'swarm/rekey', 'swarm/audit-otel' and 'swarm/helm-docs' 2026-11-27 21:08:07 +11:00
sam 571254dbf7 docs,deploy(enterprise): add Helm chart, hardened Compose, and enterprise runbooks (#2158) 2026-11-27 21:07:25 +11:00
sam 5c3b0b9714 feat(audit,telemetry): add append-only audit module, OTel tracing, and /metrics (#2156) 2026-11-27 21:06:32 +11:00
sam e80b18208e feat(connectors): pick a local or remote runtime for every extension
Track 2 of the enterprise readiness plan. Extensions now start through a
Runtime: RemoteGRPCRuntime dials an endpoint the operator mapped, over mTLS for
TCP, and LocalNamespaceRuntime runs the verified binary in its own user and
network namespace. A mapped endpoint is the only runtime that may serve that
extension, so a broken endpoint refuses instead of quietly falling back to a
subprocess.

Local availability is checked instead of assumed: user and network namespace
limits read from /proc/sys/user report a stage that disabled them, which is what
restricted Pod Security Standards and hardened kernels do. A host where the
chosen runtime cannot run refuses the extension and names why both runtimes
declined, so the operator learns to configure a remote endpoint.
2026-11-27 21:04:49 +11:00
sam efd71ff71f feat(archie): add age sealing key rotation (#2154) 2026-11-27 21:04:21 +11:00
sam 47e8db7453 feat(archie): add headless bootstrap command and remote extension wiring 2026-11-27 20:51:52 +11:00
sam 6791125aab feat(connectors): add remote gRPC mTLS runtime and default catalogue override 2026-11-27 20:51:52 +11:00
sam 86b89a5957 feat(archie): add container runtime, migrate command, secret files, and proxy egress 2026-11-27 20:36:52 +11:00
sam 7630a14705 docs(enterprise): lock in v1 and v2 enterprise readiness decisions 2026-11-27 20:36:52 +11:00
sam cb6e2a039c docs(enterprise): add enterprise readiness design and plan 2026-11-27 20:11:15 +11:00
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