Commit Graph
2300 Commits
Author SHA1 Message Date
sam cea6af4ea3 refactor(controlplane): make layerResource decode into a typed value 2026-10-10 11:05:59 +11:00
sam 76953d1061 refactor(eda): use slices.Sorted over maps.Keys for ordered keys 2026-10-10 11:05:58 +11:00
sam 2aacac2495 refactor(webui): decode JSON request bodies with generic decodeBody 2026-10-10 11:05:58 +11:00
sam 3f76f15daa refactor(domain): share one generic lifecycle registry for curators and memory engines 2026-10-10 11:05:58 +11:00
sam 4d70c40f33 feat(ui): lanes for parallel and switch steps on the workflow canvas 2026-10-10 10:52:52 +11:00
sam 28032ddbd4 feat(workflow): switch step runs the case matching a reference 2026-10-10 10:52:52 +11:00
sam 8a2354447e feat(ui): step roles, numbers and run trace on workflow canvas 2026-10-10 10:37:47 +11:00
sam 91bfb0ee44 build(ui): refresh dashboard bundle 2026-10-09 20:06:01 +11:00
sam 38b4d71f7a Merge branch 'main' into codex/control-plane-4q28 2026-10-09 20:03:52 +11:00
sam 4de078d38c style: remove space between icons and labels 2026-10-09 19:56:27 +11:00
sam a6ea539282 fix(kit): migrate runtime to sandbox kit m8 2026-10-09 18:31:56 +11:00
sam c70228940f feat(ui): author parallel workflow branches on canvas 2026-10-09 18:18:45 +11:00
sam 2c56b9ce2a docs(agents): omit status the maintainer can already see 2026-10-09 18:16:45 +11:00
sam 12783c91e0 docs(agents): post externally only when told 2026-10-09 18:09:11 +11:00
sam 700289f837 docs(agents): act on clear direction and keep replies short 2026-10-09 18:04:38 +11:00
sam a568e0093d feat(ui): edit workflow call interfaces on the canvas 2026-10-09 18:04:08 +11:00
sam 6b7718a264 fix(daemon): reconcile call waits from durable steps 2026-10-09 17:56:15 +11:00
sam cd35bb9da1 chore(release): v1.52.0 2026-10-09 13:09:59 +11:00
sam 97afa76685 feat(harness): create the setup PTY at the browser's size
The setup terminal created its PTY at a fixed 24x80 while the browser
measured its own box and threw the measurement away, so a full-screen CLI
login drew into a corner of a much larger xterm.

OpenRequest now carries a ConsoleSize with the target frame; the route
reads cols/rows from the WebSocket URL, falling back to 24x80 when they
are absent or out of range, and the daemon creates the PTY at that
geometry. The component sends the size it measured before connecting.

Live resize is the follow-on: it needs a control channel on the WebSocket,
which today is a raw byte copy.
2026-10-09 13:07:29 +11:00
sam 6110693aa8 fix(harness): keep the setup container alive with archie's own binary
A setup session started its container with "sleep infinity" and opened the
PTY with "sh -l". Neither binary is guaranteed: the spec capability whose
floor is a shell and bash is com.docker.sandbox/sbx@1, and archie's
supported map does not list it, so a Kit image need not provide either. A
missing sleep killed the container at start and a missing sh failed the
exec, both as an opaque error.

The container now runs archie-agent hold as its entrypoint. The agent
binary is archie's own and already mounted into every Kit, so the
keepalive needs nothing the image may lack and the container env stays
empty. Before opening the PTY, harnesssession probes for bash then sh and
returns ErrNoShell naming the Kit reference when neither is present.

Test: TestPickShell covers bash-preferred, sh-only, neither, and a probe
that cannot run.
2026-10-09 13:05:05 +11:00
sam 70e076825d fix(channels): normalize stored settings and deduplicate save errors 2026-10-09 13:02:23 +11:00
sam b4ce447b1c test(ui): prune brittle checks and document agent rules 2026-10-09 12:51:57 +11:00
sam d5f0853676 fix(ui): clean dependencies and add task table sorting 2026-10-09 12:46:05 +11:00
sam 11a3560346 chore(lint): pin the linter to 2.14.0
The setup task is the only installer, so the pin follows the version in
use rather than holding it back, and CI follows the pin.
2026-10-09 12:32:05 +11:00
sam 954413d426 fix(egress): use context-aware dial and request in the token-endpoint test
net.Dial and httptest.NewRequest fail the noctx linter, so the gate was red
on the commit that added the test.
2026-10-09 12:27:45 +11:00
sam db730ce311 chore(task): install the pinned tooling with task setup
task setup installs the golangci-lint CI pins, the protobuf generators and
the dashboard dependencies, and warns by name about the tools it cannot
install (Go, Task, Node, Docker).

The linter version now lives in one file read by both the setup task and
both workflows, so a local checkout and the gate cannot run different
linters.
2026-10-09 12:27:45 +11:00
sam 3777779acc test(archieui): restore the archie-ui import-boundary check
Only the daemon owns containers, and the dashboard consumes a harness
session over its gRPC contract. Go imports are atomic, so a single
reference relinks a runtime, and the boundary holds only while something
re-measures it. cmd/archie-ui/architecture_test.go enforced this until it
was purged with the test suite; nothing enforced it since.

The restored check runs go list -deps . and fails if the dashboard links
internal/container, internal/app/archied or internal/agentexec. It is
transitive, which is what "links" means, and runs in the existing test
step.
2026-10-09 11:42:39 +11:00
sam fbf48b4b48 fix(egress): refuse a token endpoint the run is not granted
forward intercepted a declared OAuth credential's token endpoint only when
the run was granted the service. For an optional credential it fell
through to the reverse proxy, so the provider's real access and refresh
tokens reached the container un-sentinelized, contradicting the harness
contract's "the real credential never enters the container".

A matched token endpoint is now refused when the service is not granted
(403 for an optional credential; a required one keeps its existing 502).
The table test drives forward against a recording upstream and asserts
both the status and that the upstream was never contacted.
2026-10-09 11:42:39 +11:00
sam 24baf259d5 fix(deps): pin sandbox-kit-spec to the API the code is written against
The dependency bump moved sandbox-kit-spec from v3.0.0-m.6 to m.8 without
adapting the code, so the tree no longer builds: CredentialCapability.Phase
is now spec.Phases, not a string (internal/infrastructure/egress), and
Client.Assemble became a package-level fetch.Assemble that takes a Loader
and a LayerValidator instead of spec.MergeOptions (internal/infrastructure/
kitrun).

Migrating to m.8 is not a version-string change: m.8 pushes kit integrity,
safe layer extraction and resource limits onto the caller, so it is
security-relevant work, not an unblock. Pin back to m.6, which the code is
written against, and leave the migration to a deliberate change.

Verified: go build ./..., go vet ./..., go test -short ./... all pass with
this pin. The gate's ui:check and lint steps fail for unrelated
toolchain reasons recorded separately.
2026-10-09 11:42:33 +11:00
sam fa9c61df93 ```
chore: update ui dependencies
```
2026-10-09 11:27:48 +11:00
sam 24938e68dd chore: bump Go dependencies and toolchain 2026-10-09 11:23:04 +11:00
sam 29baa82e1a fix(config): normalize default org for harness credentials 2026-10-09 10:01:35 +11:00
sam 645ab0ae9f feat(settings): classify startup and live runtime settings 2026-10-09 09:57:57 +11:00
sam eac34272ae feat(logging): aggregate recent service logs in dashboard 2026-10-09 09:57:57 +11:00
sam 66948c2deb fix(gateway): attribute chat settings to signed-in users 2026-10-09 09:57:57 +11:00
sam f865eb18b7 fix(webui): explain personal token availability 2026-10-09 09:57:57 +11:00
sam a057531bad refactor(webui): remove unused configuration schema 2026-10-09 09:57:57 +11:00
sam 445f0fec82 fix(settings): show configuration reload failures 2026-10-09 09:57:57 +11:00
sam 8f7c14e5c6 fix(gateway): read task logs through state store 2026-10-09 09:57:57 +11:00
sam e9e47bc408 fix(ui): render unknown routes and correct status description 2026-10-09 09:57:56 +11:00
sam 887ccd6943 fix(configuration): reject unknown conf.d files 2026-10-09 09:57:56 +11:00
sam 8c00d076f8 feat(curators): edit and apply definitions live 2026-10-09 09:57:56 +11:00
sam 82903f27a8 feat(settings): edit profiles bindings and playbooks 2026-10-09 09:57:56 +11:00
sam 9773b0a753 feat(settings): show resource consumers and apply status 2026-10-09 09:57:56 +11:00
sam 4fb021aa01 feat(presence): report workers and broker on status 2026-10-09 09:57:56 +11:00
sam 33a0928ac8 feat(presence): expose service dependency checks 2026-10-09 09:57:56 +11:00
sam 78d369435e fix(daemon): inherit live settings for identity tasks 2026-10-09 09:57:56 +11:00
sam f36510b791 test: verify enablement reports channel running 2026-10-09 02:24:47 +11:00
sam 41014335ff fix(workflow): enforce optional result booleans only when required 2026-10-09 02:22:19 +11:00
sam 1767672ce0 fix(messaging): refuse failed channels as enablement success 2026-10-09 02:22:19 +11:00