36 Commits
Author SHA1 Message Date
samandCopilot 64dfad6d53 feat(runs): add typed results and model aliases (#2043)
Also fix repository-free message.send validation (#2046) and add a single-binary development smoke path (#1977).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-18 23:47:35 +11:00
sam 14e2474a49 feat(ui): workflow list shows triggers, steps, last run and delivery with an inline enabled switch; the workflow page header carries them too 2026-11-14 23:11:38 +11:00
sam c7ce32df3e feat(ui): split Workflows into a list page and a workflow page 2026-11-14 22:49:36 +11:00
sam cdfdf3a756 fix(e2e): workflow checks drive the reworked step cards (#1966)
A duration field with an id now takes its accessible name from its label
instead of a fixed 'Duration' aria-label.
2026-11-14 15:05:53 +11:00
sam 7a9f507e2d test(e2e): chat-dock-layout uses the v2 stored layout shape (#1964) 2026-11-14 04:09:20 +11:00
sam 104854da2a fix(ui): accessibility check targets the New task dialog; keep focus outlines on dock handles (#1963) 2026-11-14 04:09:20 +11:00
sam 82f5afaa6d feat(ui): History is the workflow's YAML editor, marking changes since the picked version; the YAML tab goes
A never-run workflow's Runs view shows one empty state. Browser checks open the editor through History; the stale parts are #1966.
2026-11-13 23:49:46 +11:00
sam 21dfb56e50 refactor(ui): the phone uses the topbar crumbs; the sidebar sheet goes 2026-11-13 22:21:17 +11:00
sam 3f092c0704 test(e2e): chat dock browser checks (#1886)
ci/woodpecker/pr/quality Pipeline was successful
Quality / check (pull_request) Canceled after 0s
2026-11-12 23:08:02 +11:00
sam 8082e200f2 test(e2e): chat composer check follows the combobox role and the # task picker (#1861)
Quality / check (pull_request) Canceled after 2m16s
ci/woodpecker/pr/quality Pipeline was canceled
2026-11-12 22:45:14 +11:00
sam b234a85090 feat(ui): attach tasks to a chat message with # (#1861) 2026-11-12 22:43:41 +11:00
sam c54d328f0d feat(store): run services as a non-superuser role and name every connection (#1857)
Every service connected to PostgreSQL as the database owner, which is a
superuser, so anything that compromised an app process owned the cluster, and
every connection reached the server with an empty application_name, so
pg_stat_activity could not say which service a session belonged to.

Split the DB credential into two login roles and name every pool:

- archie_migrator owns public and its objects and runs goose. Migrations run
  on a short-lived pool opened from the new migration_database_url, before the
  serving pool opens. It is not a superuser.
- archie_runtime serves requests with SELECT, INSERT, UPDATE, DELETE, sequence
  USAGE/SELECT and function EXECUTE only. It has no CREATE privilege, so it
  cannot change the schema.
- Every pool sets application_name: archie-state-store, archie-gateway, and a
  -migrate / -recovery / -schema / -provision suffix on the transient
  administrative connections. Existing one-URL installs keep working: an
  absent migration_database_url falls back to database_url and the migration
  runs on the serving pool exactly as before.

Provisioning is a new idempotent `archie-state-store provision` subcommand: it
needs an admin URL the services never hold (database owner or superuser),
creates or reconciles both roles, hands every public-schema object to the
migration role, revokes PUBLIC's CREATE on public, sets row-level grants, and
sets the migration role's default privileges so tables future migrations
create are usable without a hand-run grant. It stores SCRAM verifiers, refuses
superuser roles, and verifies the boundary before committing.

install.sh now provisions the bundled path and separates the credentials: the
superuser password the Compose database is created with lives only in a
compose-only postgres.env, while the env file the units load holds the
non-superuser PGPASSWORD. A bundled install that predates the split is
upgraded in place: the roles are created, the superuser password is rotated
out of the env file, and config.toml is moved to the runtime and migration
URLs. External databases keep their operator-managed credential; the
deployments README documents the one-shot provision command.

setup writes both bundled URLs, dev:postgres provisions the dev database, the
e2e stack provisions its throwaway server, and the deployment templates point
at the two roles.
2026-11-11 03:12:54 +11:00
sam 21b3591da1 fix(e2e+ui): e2e checks for the audit's failure classes, and the gaps they caught (#1767)
deploy / gate (push) Successful in 4m48s
Quality / check (push) Successful in 6m11s
deploy / archied-image (push) Successful in 3m31s
deploy / agent-image (push) Successful in 12s
deploy / dist-zip (push) Skipped
loading-errors now forces each list API (/api/tasks, /api/captures,
/api/event-types, /api/tokens, /api/access/policies) to fail and asserts
the page shows its error surface, never its empty-state copy.
accessibility gains two static-route sweeps: every input/textarea/select/
button must have an accessible name, and every keyboard focus stop's
indicator (ring var, outline, shadow or focus border) must clear 3:1
against the background behind it. phone-overflow sweeps every static
route at 390x844 for horizontal scroll. The sweeps caught real gaps,
fixed here: the DurationInput amount input had no accessible name and
its unit select no focus indicator, and TabsContent and CodeBlockContent
were focusable with outline-none and no ring. The stale 'Sections' list
selector now matches the nav landmark.
2026-11-07 17:08:10 +11:00
sam 461d3dc1f7 fix(ui): phone-width overflows in the audit's flagged rows, with an e2e check (#1757)
deploy / gate (push) Successful in 4m54s
deploy / archied-image (push) Successful in 3m23s
Quality / check (push) Successful in 6m36s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped
Grants rows and toggle groups wrap with a smaller phone label; the token
form wraps and its input flexes; the sources name column caps at full
width and its action buttons wrap; the rule-editor condition row wraps
with a full-width phone select; the payload tree indents less and breaks
long JSON leaves; the topbar instance badge truncates; org agent rows
keep Assign inline and move Rename/Suspend/Retire into a MoreMenu. New
e2e check phone-overflow.cjs visits these views at 390x844 with seeded
data and asserts no horizontal scroll.
2026-11-06 23:23:16 +11:00
sam 0b7ce448ab fix(e2e): checks follow the sidebar navigation; trim stray button and caption whitespace (#1789)
Quality / check (push) Successful in 3m52s
deploy / gate (push) Successful in 4m36s
deploy / archied-image (push) Successful in 3m16s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped
2026-11-03 09:35:19 +11:00
sam 3b33d164c7 test(e2e): per-run report.html, fix stale workflow-logic and audit-runtime, add org selector, org pages, setup, recovery, readiness and schedule-trigger checks 2026-10-27 11:44:23 +11:00
sam c3d49cbc6c feat(webui): park model credential failures with a recovery link, add Model setup step, readiness badges, and move audit to the organisation 2026-10-27 11:06:18 +11:00
sam 087aa45349 test(e2e): split overloaded checks, standardize screenshots 2026-10-26 22:57:15 +11:00
sam 7f0ecaa192 build: move the dashboard and e2e packages from npm to pnpm 2026-10-26 22:15:26 +11:00
sam 5498c97e3d fix(ui): e2e checks match the current dashboard; trim stray label whitespace, keep Home/End in suggest input 2026-10-26 20:59:48 +11:00
sam da7efa3f4e fix(ui): keep the chat dock open across navigation
Clicking any navigation control counted as an outside click, so the dock
collapsed on every route change and the conversation disappeared. Hide and
Escape remain the only ways to collapse it.

The e2e accessibility check referenced the removed outside-click launcher and
the old Close chat label; both now use the dock's real controls.
2026-10-26 18:28:32 +11:00
sam 92a74e4b7d test(e2e): wait for audit dialogs to close 2026-10-25 23:04:56 +11:00
sam f3c7555195 test(e2e): browser check for the audit page 2026-10-25 22:56:18 +11:00
sam f2b8681611 refactor(workflow): stop assuming a human decides
An approval, ask or park can be resolved by an operator, a rule, a
classifier or automatically, so the vocabulary stops naming a person:

- step type human.approve -> workflow.approve
- park class needs_human -> needs_decision (ParkNeedsDecision)
- event kinds human_* -> operator_*
- alert kind task.needs_human -> task.needs_decision
- status grouping "needs you" -> "needs attention"

0061 rewrites the stored values, including the approval step type in the
workflow-definitions resource and each task's pinned definition, with the
digest recomputed so resumed tasks still match.
2026-10-25 17:31:16 +11:00
sam c94a943854 fix(ui): improve keyboard access and add headed checks 2026-10-19 01:45:20 +11:00
sam 02d4e162b8 fix(ui): fit phone workflows and allow dynamic handoffs 2026-10-19 01:04:32 +11:00
sam a76c54d1ac feat(e2e): list checks by default and run all explicitly 2026-10-19 00:38:17 +11:00
sam 2cdf3b2c85 build(dev): serve the dev State Store over TLS on the Docker bridge so task containers reach it 2026-10-17 17:19:08 +11:00
sam 05987f04e2 feat(daemon): execute and verify organisation repository connections 2026-10-17 09:32:39 +11:00
sam 30216dd367 fix(e2e): build stack with release metadata 2026-10-17 08:47:05 +11:00
sam cbc4cf309d fix(webui): bind task requester to authenticated principal 2026-10-17 08:42:08 +11:00
sam fe97e92dd2 fix(daemon): execute dashboard identities with scoped authority 2026-10-17 03:13:30 +11:00
sam 41cd938748 fix(ui): repair settings editing and workflow diagnostics 2026-10-16 23:55:58 +11:00
sam 3229de9b3b fix(e2e): recover reliable local stack startup 2026-10-16 22:25:49 +11:00
sam 59645969ee fix(e2e): repository policy applies live, so seeding no longer restarts archied
Issue: archie-core-m5aqb
2026-10-13 16:15:07 +11:00
sam 94d2f98cc0 feat(e2e): local stack, seed and browser checks for release validation 2026-10-12 04:28:26 +11:00