Commit Graph
174 Commits
Author SHA1 Message Date
sam 8edf57c688 feat(state): unified org-scoped audit feed and AuditService 2026-10-25 21:37:56 +11:00
sam c4c58225f6 fix(state): resolve identity audit org in one statement 2026-10-25 21:37:50 +11:00
sam daa7ccb249 fix(state): attribute identity events to the subject's single org 2026-10-25 21:35:19 +11:00
sam b30139c849 feat(state): audit access reset, org, membership and EDA writes 2026-10-25 21:33:28 +11:00
sam 6cfea6c2e9 fix(state): serialise source writes and keep binding workspaces audited 2026-10-25 21:33:08 +11:00
sam e2a268aef1 fix(state): classify audit coverage rows and keep unknown identity orgs private 2026-10-25 21:25:55 +11:00
sam d8cd9ffec7 fix(state): close residual audit coverage gaps 2026-10-25 21:24:50 +11:00
sam 691002eb9b fix(state): harden the audit feed against audit findings 2026-10-25 21:23:52 +11:00
sam dd9b378431 feat(state): org-scoped audit feed contract and read model 2026-10-25 21:23:52 +11:00
sam e5e35a3fdd feat(state): audit access resets, org and EDA writes 2026-10-25 21:10:38 +11:00
sam 876c98406e fix(postgres): skip unchanged authority in package audit 2026-10-25 21:10:02 +11:00
sam f8c610ea5f fix(postgres): correct package and secret audit coverage 2026-10-25 21:03:00 +11:00
sam e63680afb9 feat(postgres): audit package and harness secret writes 2026-10-25 21:00:27 +11:00
sam b397329de0 fix(state): correct audit backfill scoping and policy write races 2026-10-25 20:59:04 +11:00
sam e3478ec400 feat(state): shared audit write helper for domain tables 2026-10-25 20:49:47 +11:00
sam 9bedaaefb4 feat(state): org-scoped audit trail and complete policy write audit 2026-10-25 20:49:20 +11:00
sam c265b07ec7 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 ccef626118 feat(workflow): approve a PRD as one structured document
The prd step returns the PRD as structured fields and human.approve takes
them as its document. The plan text every surface reads and the approval
card's layout are both rendered from that one document, so what the human
approves is what the implement workflow is handed. Replaces the separately
generated OpenUI view, which could drift from the plan.
2026-10-25 16:53:17 +11:00
sam 181915313e feat(workflow): render a PRD's generated view on the plan approval card
agent.run gains views: the agent may return an OpenUI Lang view of its
answer through an optional view tool, read as steps.<id>.view. human.approve
stores it as the task's plan_view, and the approval card renders it with
the dashboard's own components, falling back to the plan text when there
is no view or it does not parse. The feasibility prd step uses it.
2026-10-25 16:33:04 +11:00
sam 5c922038f9 fix(access): check the policy version before each decision
archied, archie-ui and the tool gateway re-read the stored policies on a 30s
ticker, so a forbid written seconds earlier did not stop a run. One
instance-wide revision now moves inside the transaction of every policy write,
and a decision reads it first and rebuilds the engine only when it moved.

A version read that fails, or a policy list that fails after a bump, refuses
with ErrChainUnavailable instead of standing on the last chain, so three call
sites now treat unavailable as availability rather than denial: dispatch leaves
the capture for the next cycle, a task start parks transient, and the tool
gateway reports the tool as unavailable.
2026-10-25 16:21:01 +11:00
sam 49277babe4 fix(store): post open chat task states once after the posted-status migration 2026-10-25 02:46:43 +11:00
sam 6f0ea530aa fix(archied): post each reportable status a chat task reaches, recorded by status not by flag 2026-10-25 02:42:31 +11:00
sam 55e68f536b feat(archied): tell the chat when its task opens a pull request 2026-10-25 02:39:34 +11:00
sam 6a412a3b24 feat(archied): post approval requests to the chat that started the task 2026-10-24 23:59:25 +11:00
sam c7c1861ee7 refactor!: waiting_human becomes waiting_approval, with the approval kind on each task 2026-10-24 23:45:20 +11:00
sam a78690fb84 fix(postgres): repin parked and queued tasks that still name the root identity 2026-10-19 01:45:48 +11:00
sam e57a5fd689 fix(postgres): task alert body carries the truncated task title, not a restated title 2026-10-18 23:46:48 +11:00
sam 66ec3437fc fix(ui): Instructions replaces SOUL in routes and agent pages; terse alerts; missing-key hint 2026-10-18 19:27:11 +11:00
sam e8f4963a36 fix(postgres): run stored workflows that name the root identity as the seeded agent 2026-10-18 00:29:14 +11:00
sam 4c69994851 fix(postgres): allow the agent org upgrade phase 2026-10-17 21:55:42 +11:00
sam 51145eda78 refactor(servicekit): stop linking the State Store and control plane into archie-messaging 2026-10-17 17:22:53 +11:00
sam 660e75ec80 fix(identity): emit RFC 4122 shaped stable IDs and migrate stored ones 2026-10-17 17:16:20 +11:00
sam 4e56a9a05f feat(webui): link parked tasks to the page that fixes their blocker 2026-10-17 17:08:24 +11:00
sam b96e432841 feat(identity): seed a narrow agent identity and run shipped workflows as it 2026-10-17 17:04:43 +11:00
sam 3b1860f7c9 feat(taskactions): retry a parked task on the current workflow definition 2026-10-17 13:35:12 +11:00
sam fd833aefec chore(postgres): delete unused queries 2026-10-17 10:17:14 +11:00
sam 567f484483 refactor(postgres): split lifecycle exit side effects out of Apply 2026-10-17 10:10:02 +11:00
sam c99e09d665 fix(postgres): keep every organisation an active owner 2026-10-17 10:07:45 +11:00
sam 78e162fa0a refactor: remove personas
Personas were a misread requirement: SOUL is the chat identity and
identities are per action. The selected persona's prompt never reached the
model. Drops the resource, /personality, the chat selector, the settings
page and ChatService.SetPersona, and deletes stored persona documents.
2026-10-16 03:57:08 +11:00
sam d3e2a67222 feat(identity): add browser setup and user accounts 2026-10-16 02:41:24 +11:00
sam 39de0e2ac5 fix(webui): attention vocabulary no longer addresses a single user 2026-10-13 17:42:11 +11:00
sam 91fd383bdb fix(eda): the undispatched-capture batch lists only captures an enabled binding still owes
Issue: archie-core-kfjz1
2026-10-13 16:21:21 +11:00
sam 81e878c2bb fix(postgres): age retention spares captures still waiting to be dispatched
Issue: archie-core-jrh2m
2026-10-13 16:19:12 +11:00
sam dc6db30576 fix(postgres): assign bootstrapped agent identities to the default org on every start
Issue: archie-core-n5yj5
2026-10-13 16:18:19 +11:00
sam a5041f0b24 fix(postgres): clamp event, token and denial limits to int32
Issue: archie-core-g14d
2026-10-13 15:27:36 +11:00
sam 132152f545 fix(daemon): run-time workflow check sees the binding event's signature and address
Issue: archie-core-bmro8
2026-10-13 15:10:31 +11:00
sam 815a151c55 fix(postgres): confine identity writes and GetPrincipal to the caller's org
Issue: archie-core-wkey2
2026-10-13 15:07:48 +11:00
sam c832257fda fix(workflows): callees of a test run inherit the test source 2026-10-13 12:46:48 +11:00
sam d54f4af11e feat(workflows): test-run unsaved drafts and browse workflow version history
A test run pins a validated draft, runs with forge and push writes
suppressed and recorded per step, and is excluded from workflow stats.
The History tab lists revisions that changed a workflow, diffs them as
YAML and on the canvas, restores into the editor, and ties runs to the
revision they used.
2026-10-13 12:27:40 +11:00
sam b391e8a9bf fix(postgres): quote the alert lock key so a NUL cannot reach Postgres text 2026-10-13 03:15:06 +11:00