Commit Graph
190 Commits
Author SHA1 Message Date
sam da01f2cbe1 feat(access): denial retention knob, State Store sweep and dashboard denials page (#1842)
Add [access].denial_retention (default 90 days, matching the audit-retention
seed) wired through config defaults and validation; the State Store sweeps
denial records older than the configured age hourly via the new
access.DenialPruner / PruneDenials store query. The dashboard gains
GET /api/access/denials (read_audit-gated, so org admins/owners see their
org's records; the store scopes by the credential's org) and an
/org/denials page backed by a Pinia store.
2026-10-31 14:23:31 +11:00
sam c59f9336a5 feat(identity): name, lifetime and last-used on personal API tokens 2026-10-27 15:37:44 +11:00
sam 6c78358c7b fix(postgres): carry org, park class and park blocker on task list rows so a parked task's recovery link shows 2026-10-27 11:44:23 +11:00
sam 0880f703d7 fix(webui): resolve a selected org's workspaces as the caller, wire selection into gateway and harness, and let a member start tasks in the org they selected 2026-10-27 11:06:18 +11:00
sam 1a8b442acd 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 c465d58713 fix(postgres): let every org read a built-in mapping so a non-system org can arm a schedule trigger 2026-10-27 10:13:03 +11:00
sam 334bb8cc40 fix(scheduling): fire a schedule's capture into its owning organisation 2026-10-27 10:03:29 +11:00
sam 9855f5820e fix(webui): report a workflow's running count and last status from its own runs 2026-10-27 02:52:38 +11:00
sam 5815c383c6 feat(scheduling): schedules and runs in the State Store with grid timing and run history
Schedules leave the schedules control-plane resource for State Store tables
behind a ScheduleService contract. A run is claimed per schedule slot, missed
slots fire once, the next run stays on the schedule's grid, cron is read in the
schedule-settings time zone, and failed runs are recorded and advance. Three
failures in a row raise a schedule.failing alert. A fired run records a
schedule-fired capture. Run history is pruned by age and count.

Removes the chat and spawn-task runners, the dangerous-payload guard and the
old schedules settings page.
2026-10-26 00:49:24 +11:00
sam 0ef73d8f0e feat(eda): capture schedule firings on a reserved source for bindings 2026-10-26 00:38:55 +11:00
sam aa6de6eb86 refactor(logging): log with the caller's context so records carry trace ids 2026-10-25 23:30:01 +11:00
sam c23f92802e fix(audit): filter count aliases outside the projection and clean identity detail 2026-10-25 23:00:44 +11:00
sam edffc529dd fix(audit): close the feed union and repair denied and retention controls 2026-10-25 22:42:00 +11:00
sam 83f333876f fix(audit): harden export, scope history and derive feed targets 2026-10-25 22:39:22 +11:00
sam 717f9d5219 feat(webui): audit feed API, export and read_audit grant 2026-10-25 22:01:02 +11:00
sam 045f8c427d feat(state): apply audit retention to observability events 2026-10-25 21:42:38 +11:00
sam 655068db70 feat(state): unified org-scoped audit feed and AuditService 2026-10-25 21:37:56 +11:00
sam 9314b02eb1 fix(state): resolve identity audit org in one statement 2026-10-25 21:37:50 +11:00
sam 9a3060d4f7 fix(state): attribute identity events to the subject's single org 2026-10-25 21:35:19 +11:00
sam bcdd4bb531 feat(state): audit access reset, org, membership and EDA writes 2026-10-25 21:33:28 +11:00
sam 135007b5f8 fix(state): serialise source writes and keep binding workspaces audited 2026-10-25 21:33:08 +11:00
sam 06da6a8334 fix(state): classify audit coverage rows and keep unknown identity orgs private 2026-10-25 21:25:55 +11:00
sam 82df7cee1a fix(state): close residual audit coverage gaps 2026-10-25 21:24:50 +11:00
sam deb136652e fix(state): harden the audit feed against audit findings 2026-10-25 21:23:52 +11:00
sam f873368080 feat(state): org-scoped audit feed contract and read model 2026-10-25 21:23:52 +11:00
sam 99b1f8a2d9 feat(state): audit access resets, org and EDA writes 2026-10-25 21:10:38 +11:00
sam 4319298868 fix(postgres): skip unchanged authority in package audit 2026-10-25 21:10:02 +11:00
sam 36cd4b09b4 fix(postgres): correct package and secret audit coverage 2026-10-25 21:03:00 +11:00
sam f7caf2c40e feat(postgres): audit package and harness secret writes 2026-10-25 21:00:27 +11:00
sam 6120c38e7f fix(state): correct audit backfill scoping and policy write races 2026-10-25 20:59:04 +11:00
sam 3e9948960e feat(state): shared audit write helper for domain tables 2026-10-25 20:49:47 +11:00
sam 5816c5cc53 feat(state): org-scoped audit trail and complete policy write audit 2026-10-25 20:49:20 +11:00
sam 4de8b67ba8 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 3915441cdf 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 cf2942c97a 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 cc7bc90ff3 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 952187eb2c fix(store): post open chat task states once after the posted-status migration 2026-10-25 02:46:43 +11:00
sam 4e2edc911f 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 1a386dae7e feat(archied): tell the chat when its task opens a pull request 2026-10-25 02:39:34 +11:00
sam 348c08cebb feat(archied): post approval requests to the chat that started the task 2026-10-24 23:59:25 +11:00
sam 28033a25e9 refactor!: waiting_human becomes waiting_approval, with the approval kind on each task 2026-10-24 23:45:20 +11:00
sam dba0b278e8 fix(postgres): repin parked and queued tasks that still name the root identity 2026-10-19 01:45:48 +11:00
sam bde67cc438 fix(postgres): task alert body carries the truncated task title, not a restated title 2026-10-18 23:46:48 +11:00
sam b3e055245b fix(ui): Instructions replaces SOUL in routes and agent pages; terse alerts; missing-key hint 2026-10-18 19:27:11 +11:00
sam cf8071af1a fix(postgres): run stored workflows that name the root identity as the seeded agent 2026-10-18 00:29:14 +11:00
sam 18bde4dbb8 fix(postgres): allow the agent org upgrade phase 2026-10-17 21:55:42 +11:00
sam 98e7378f2d refactor(servicekit): stop linking the State Store and control plane into archie-messaging 2026-10-17 17:22:53 +11:00
sam 6f4c03896a fix(identity): emit RFC 4122 shaped stable IDs and migrate stored ones 2026-10-17 17:16:20 +11:00
sam 721e43c5e4 feat(webui): link parked tasks to the page that fixes their blocker 2026-10-17 17:08:24 +11:00
sam 8785456e44 feat(identity): seed a narrow agent identity and run shipped workflows as it 2026-10-17 17:04:43 +11:00