Commit Graph
586 Commits
Author SHA1 Message Date
sam 3854580640 fix(configuration): raise the default max uptime above the task limit 2026-10-26 18:32:25 +11:00
sam 394f396b6b fix(controlplanerpc): attribute chat workflow drafts so saves succeed 2026-10-26 18:24:46 +11:00
sam 8026c07319 feat(workflow): message.send step delivers text through archied's messaging client 2026-10-26 00:56:07 +11:00
sam cc5789eb5f 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 d1d6301fc2 feat(eda): capture schedule firings on a reserved source for bindings 2026-10-26 00:38:55 +11:00
sam e951dbd6cd fix(extension): log go-plugin output through the service slog logger 2026-10-26 00:25:37 +11:00
sam 220302b41e fix(logging): route ui, messaging and playbook logs through the service log 2026-10-26 00:18:39 +11:00
sam d8b1fac72c fix(webui): name API spans after their route 2026-10-25 23:42:44 +11:00
sam 97655323b9 refactor(logging): log with the caller's context so records carry trace ids 2026-10-25 23:30:01 +11:00
sam 812f1bdd9e feat(agent): export container spans over NATS through archied 2026-10-25 23:17:34 +11:00
sam 4b7e843ead feat(servicekit): OpenTelemetry tracer provider and RPC propagation 2026-10-25 23:11:03 +11:00
sam 37a3ccdef5 fix(memory): rotate a full section's oldest records to history 2026-10-25 23:10:15 +11:00
sam 74b11b331d feat(natsrpc): propagate trace context across NATS and into task runs 2026-10-25 23:03:55 +11:00
sam 51d57a0e71 fix(audit): filter count aliases outside the projection and clean identity detail 2026-10-25 23:00:44 +11:00
sam 29a2a782c9 refactor(controlplane): move the store-backed server out of internal/app 2026-10-25 22:49:27 +11:00
sam 81f379346e fix(channelext): bound the extension broker server with service limits 2026-10-25 22:46:47 +11:00
sam 9928a86cdc fix(audit): close the feed union and repair denied and retention controls 2026-10-25 22:42:00 +11:00
sam 3912d7e3e0 fix(audit): harden export, scope history and derive feed targets 2026-10-25 22:39:22 +11:00
sam c95ff24f23 feat(webui): audit feed API, export and read_audit grant 2026-10-25 22:01:02 +11:00
sam 5705833c0b feat(state): apply audit retention to observability events 2026-10-25 21:42:38 +11:00
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 44ac3a568d feat(state): audit package and harness secret writes 2026-10-25 21:10:08 +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 8807e7fa5b refactor(staterpc): one file per State Store service 2026-10-25 21:00:19 +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 a971947c39 refactor(state)!: split StateStoreService into per-domain services
One gRPC service per domain in state.v1 (tasks, executions, accounts, identities, packages, captures, bindings, access, orgs, alerts and so on), each with its own server type in staterpc. RPC and message names and numbers are unchanged.
2026-10-25 19:54:27 +11:00
sam eabb7886f8 fix(workflow): review a task's own pull request as a comment
GitHub refuses REQUEST_CHANGES from a pull request's author, so a blocking
finding on the PR a task opened lost every finding. The retry's identical
refusal is now reported once, and forge errors drop the gRPC framing.
2026-10-25 17:57: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 e4560c9f44 test(egress): a recording session performs no central tool call 2026-10-25 16:02:46 +11:00
sam 64ab228658 feat(egress): record a test run's deliveries instead of sending them
A test run used to suppress only forge and push writes, which named one
destination among many. Deliveries now have one seam: TaskContext.Deliveries
records each as "would ..." and performs none, and a recording egress
session does the same for a Kit run's HTTP writes and central tool calls,
answering them synthetically. Provider hosts stay live, since model traffic
is how a test run reads. Native containers have no proxy (archie-core-n8d3).
2026-10-25 16:01:06 +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