Commit Graph
557 Commits
Author SHA1 Message Date
sam 9b97adc64b feat(modelloop): run a step's tool calls in parallel as each tool's classification allows 2026-10-25 16:45:34 +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 559ac3a00f 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 cbef950e96 fix(daemon): archied --once drains until callees of a waiting call finish 2026-10-25 02:46:16 +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 6f3ffd6303 fix(archied): post dashboard chat task outcomes into the conversation through the gateway 2026-10-24 23:22:11 +11:00
sam 1c6281d098 feat(archied): update agent-image sets the image new tasks run 2026-10-24 23:16:13 +11:00
sam ae7b4a2081 refactor!: remove the diff-size cap and its gate.diff-size step 2026-10-24 22:19:23 +11:00
sam 9387cb1f5e feat(chat): show each tool call where it happened in the reply 2026-10-24 20:48:43 +11:00
sam e100b01c52 feat(gateway): record how long each chat tool call took and show it per row 2026-10-24 20:44:40 +11:00
sam e2c79d3f67 fix(archied): stop retrying task outcomes for a channel messaging does not have 2026-10-24 17:02:50 +11:00
sam e99c49cee6 fix(archieui): reach the sandbox and setup terminal on the daemon's listener 2026-10-24 11:24:49 +11:00
sam 01cd599ef7 fix(configuration): keep named instances under the archie- namespace 2026-10-22 17:38:40 +11:00
sam da9b8209c3 fix(daemon): relay a loopback State Store with external NATS, and only for the task's container 2026-10-22 17:35:24 +11:00
sam 095ccc58dc fix(archiegateway): confine non-operator chat identities to their own tasks 2026-10-22 17:32:55 +11:00
sam b30122309a fix(controlplane): keep an org's own provider credential reference 2026-10-22 17:31:54 +11:00
sam 4d4f30b719 fix(egress): bind a task's model providers from their api_key_ref
A container task parked when a provider carried an api_key_env but no
credential binding named after it, even though the task's models never
reached that provider. Egress pre-bound every provider the instance
configures and ignored api_key_ref, so the credentials an operator stores in
provider-settings were never used.

A task's config now carries only the providers its model aliases resolve to,
each with the variable its credential is read from: the operator's
api_key_env, or a name derived from the provider when its credential is a
secret reference. modelEgress resolves that reference once for the session
and the proxy substitutes the session's key for the sentinel, so the
container still holds no key. A provider that only declares an env var keeps
resolving through its org credential binding.
2026-10-20 06:56:38 +11:00
sam e1a7481bc6 fix(controlplane): resolve the default org's providers with its aliases 2026-10-20 03:44:21 +11:00
sam eea1743119 fix(archiegateway): create the chat workspace before enabling its tools 2026-10-19 11:15:20 +11:00
sam 6c74e1849f fix(gateway): chat acts as the control-plane operator and sees every task 2026-10-19 11:12:34 +11:00
sam fb1099c973 feat(webui): scope cookies to the instance and show non-default instance names 2026-10-19 10:17:05 +11:00
sam ce0d50a451 feat(install): install and update a named instance side by side 2026-10-19 10:16:49 +11:00
sam e3ca6c536c fix(container): scope agent containers, volumes and the egress relay to the instance 2026-10-19 10:15:47 +11:00
sam 1a9b84614e feat(configuration): name the instance with ARCHIE_INSTANCE and scope default paths by it 2026-10-19 10:12:48 +11:00
sam 39b6deba4c fix(archied): stop flagging embedding and transcription aliases as retired models 2026-10-19 01:07:39 +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 53db182e97 feat(gateway): read instructions and access policies from the workflow tools
settings_get now reads three more kinds:
- soul, the instruction text layered into a workflow run;
- task-policy, the diff cap and alert delivery settings;
- org-model-policy, which models an org may use.

None of them holds a secret value: task-policy's notify_secret and the
secrets elsewhere in the readable kinds are SecretRef references (engine and
key), never the resolved value.

access_policies_list is new: the caller org's Cedar policies (id, level,
scope, text), and the instance policies when the caller owns the instance,
which is what the dashboard lists for the same read. It is guarded as
access.ActionRead on access.KindPolicy, the check the dashboard makes.
IntegrationSource gained Policies, implemented over the State Store's
ListPolicies.

workflow_get now says how its instructions field layers: after the
instance's and the organisation's, before the repository's.
2026-10-18 02:39:25 +11:00
sam c19889ac47 fix(gateway): workflow and integration tools ask the access policies as their caller 2026-10-18 02:35:59 +11:00
sam 0b12b5d387 feat(gateway): workflow and integration tools for chat and Kit harnesses alike 2026-10-18 02:32:30 +11:00
sam a97877e50b feat(workflows): edits save as a draft and reach the running workflow only on publish 2026-10-18 02:21:54 +11:00
sam 6f19c616a3 feat(credentials): grant credential services to dashboard identities, chosen from pickers 2026-10-18 00:43:31 +11:00
sam a6eb136f66 feat(instructions): layer instance, organisation, workflow and repository instructions into every agent stage 2026-10-17 23:42:39 +11:00
sam 3ec7a60aa9 feat(kit): central tools for harnesses through the egress proxy and gateway task-tool RPCs 2026-10-17 23:42:37 +11:00
sam 27114e4a7b feat(repos): access check reports the operations the agent can perform 2026-10-17 22:58:01 +11:00
sam 27cb53005d fix(staterpc): derive harness secret org from caller grants 2026-10-17 21:44:08 +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 7ad1788235 fix(archiemessaging): announce READY after channels bind; run notifying units as Type=notify 2026-10-17 17:15:34 +11:00
sam 9045dd04e4 fix(config): treat a [[curators]] entry without enabled as on 2026-10-17 17:15:34 +11:00
sam 94cb569f01 feat(workflow): configure review precision and approval on the review.pr step 2026-10-17 17:00:55 +11:00
sam 846ed68c5b fix(releaseupdate): run the release's watchdog and bound control-plane calls 2026-10-17 17:00:04 +11:00
sam 96aaeec06b refactor(archied): discover issues through organisation connections 2026-10-17 13:38:46 +11:00
sam a229c2b8df feat(archied): dispatch every organisation's schedules 2026-10-17 10:19:32 +11:00
sam 078b7950e7 chore: delete code no binary or test reaches 2026-10-17 10:14:26 +11:00
sam 24ded57b4e feat(daemon): execute and verify organisation repository connections 2026-10-17 09:32:39 +11:00
sam d8569f26f5 fix(controlplane): name a migrated connection for its host
The seeded root connection was called "Instance forge", which names two
archie concepts an operator never chose. Name it for the host it points at
instead.
2026-10-17 08:59:57 +11:00
sam 2181dd8a48 fix(daemon): execute dashboard identities with scoped authority 2026-10-17 03:13:30 +11:00
sam 6a6db5737a feat(archied): a rotated connection reaches the next operation
The connections kind joins the live resource watches. On a new revision
archied re-resolves the instance forge from the settings it just published and
replaces every holder of the client: the boot forge, the worktree token, the
daemon's root forge and the root task RPC servers, which are now returned from
registration so a task that is already connected asks the new credential
rather than the one the process booted with.

This commit also carries the execution-identity agent's concurrent edits to
these three files, which the shared working tree had not committed yet.
2026-10-17 03:09:43 +11:00