Commit Graph
160 Commits
Author SHA1 Message Date
sam 9c04b74e6f docs: fix Vale prose findings across comments, docs and prompts
Run Vale over every tracked Go, Markdown and template file and fix the remaining findings: long sentences, repetition, UI verbs, identifiers that should be backticked, and migration narration in comments.

AGENTS.md and CLAUDE.md keep their absolute rules; the prompt heuristic against repeated absolutes is disabled for rule files.
2026-11-24 03:26:16 +11:00
sam 911152c9d1 merge: proposals module (#1995)
# Conflicts:
#	internal/platform/pg/migrations/00008_drafts.sql
#	modules/drafts/drafts.go
#	modules/drafts/internal/store/store.go
2026-11-24 03:11:07 +11:00
sam 0d25c93ea0 merge: event source IDs and scopes (#2127, #2027)
# Conflicts:
#	api/openapi.yaml
#	modules/events/events.go
2026-11-24 03:09:12 +11:00
sam f24c2b4455 feat(connectors): separate packages from scoped installations (#2027)
Packages are accepted once by the instance. Installations configure them at the instance, an organisation or a person; bindings and credentials resolve the person's, then their organisation's, then the instance's. Decisions, approval requests and held chat actions record the installation and scope that acted.

The dashboard lists packages separately from installations, shows every installation's scope, and creates, edits and disables installations at their scope.
2026-11-24 03:05:27 +11:00
sam b47e98e25f feat(proposals): add the proposals module and fold drafts and memory proposals into it (#1995) 2026-11-24 02:44:31 +11:00
sam 8265e99466 feat(runs): run an approved proposal's actions in a durable workflow step (#1995) 2026-11-24 02:44:31 +11:00
sam 30aa351eb6 feat(events,drafts): give sources an immutable id and a scope (#2127, #2027)
A source is keyed by a uuid, owned by the organisation or one person, and
labelled within that scope. The webhook path is a separate unique column, so
renaming either leaves stored events, event types, triggers, groups, mappings
and drafts alone. Delivery policies, sealed secrets and group keys use the id.
2026-11-24 02:43:51 +11:00
sam 4a9f30ef04 fix(judgement,runs,approvals): record immutable identity IDs for attribution (#2122) 2026-11-24 02:23:23 +11:00
sam dad6924a0c docs: normalise Australian English and prose across comments and docs 2026-11-24 02:02:00 +11:00
sam de05bc2cbd feat(runs): show each step's summary and target on the run page
- a finished top-level step records its summary and target in a done marker; stages return them
- a message step's summary is the message, and its target the channel and chat
- the trail no longer lists the engine's markers as entries
- run page: short run ID in the breadcrumb, copyable IDs, version badge, step rows from stages, No output for an empty result
- event detail: No payload for an empty body, and links only the dispatches that started a run
- ui/AGENTS.md lists the components that exist
2026-11-24 00:04:20 +11:00
sam 2bfb262e9c docs(judgement,events): state comments plainly 2026-11-23 23:46:27 +11:00
sam 0ad4374a2a refactor(judgement): rename action classes to action types and raises to autonomy proposals
- tables judgement.action_types, action_type_resets, action_type_approvals and autonomy_proposals (migration 00063)
- governance setting propose_autonomy_after, approval request kind autonomy, policy resource kind action_type
- /api/action-types replaces /api/classes; the detail lists autonomy_proposals
- an autonomy proposal stores the identity ID of the account that answered it
2026-11-23 23:43:45 +11:00
sam 7f5220dea3 feat(events): record failed, denied and disabled trigger outcomes (#2117)
- a mapping failure is recorded as failed, with the value found at each mistyped path
- an access policy refusal and a disabled workflow are recorded as denied and disabled
- migration 00062 renames existing skipped dispatches to failed
2026-11-23 23:35:35 +11:00
sam 062336db91 refactor: rename denial records to access decisions
- rename governance.access_denials table, indexes and API types via migration 00061
- expose /api/access/decisions and decisions payload; keep audit auth unchanged
- rename UI store, page and route from denials to decisions
2026-11-23 02:03:35 +11:00
sam 60d9b6b7aa feat: record access decisions, not just denials
- add an outcome column and migration so allowed and denied decisions share one audit trail
- fail closed when an allowed decision cannot be recorded
- expose outcome filtering in the API and dashboard

Route chat through the recording authorizer so its decisions are audited too.
2026-11-23 01:00:46 +11:00
sam e1ada94d78 fix: redact link codes and guard shipped policies
- redact single-use link codes from stored account.link events after handling, with a migration to scrub existing rows
- refuse deletion of shipped org policies and hide the delete action in the UI
- validate agent step models against the workflow model policy at save time, including the default model
2026-11-23 00:38:54 +11:00
sam 8c267b6edd feat: record skipped dispatches and approver ids
- store trigger dispatches as started or skipped, with a JSON reason surfaced in the API and UI
- persist the answering account's identity id beside its display name for approvals and judgements
- save connector acceptances and their declarations in one transaction so a refused change stores nothing
2026-11-22 23:24:30 +11:00
sam 33f7ebdff4 feat: add member candidates endpoint and approvals page
- serve active identities outside the org at /api/orgs/{id}/member-candidates and back the members page from it
- add an org approvals page for default owner, deadline and escalation path over /api/settings
2026-11-22 23:03:01 +11:00
sam e801306c15 docs(deliveries): say what each field, lease and refusal does 2026-11-22 22:31:55 +11:00
sam 4707427759 feat: trust configured proxies for webhook intake
- add trusted proxy settings, migration, API, and UI
- derive client addresses from X-Forwarded-For behind trusted hops
- enforce delivery policy for listener batches and record denials
2026-11-22 22:29:36 +11:00
sam faeaa0d7f0 fix: deny orgs without active org policies
- refuse authorization when an org has no stored org-level policies instead of falling through the narrowed chain
- seed tests with shipped org policies and cover the deny-by-default cases
2026-11-22 22:19:07 +11:00
sam 787a213db6 Merge branch 'main' into worktree-agent-ac0944b265396932d
# Conflicts:
#	modules/governance/accounts_api.go
2026-11-22 15:42:43 +11:00
sam 51a1cf5128 feat(governance): model aliases resolve through providers with a policy (#2063) 2026-11-22 15:41:40 +11:00
sam d9e993e2b9 feat(connectors): install and update extensions from a signed catalogue (#2063) 2026-11-22 15:41:33 +11:00
sam de3bfe296d refactor(runs): adopt go fix output in the workflow catalogue test (#2061) 2026-11-22 13:54:09 +11:00
sam 07d14c8d50 merge main into the workflow editor branch (#2061) 2026-11-22 11:48:30 +11:00
sam c1b4ba2b6b wip(ui/workflows): visual editor on the binary's API (#2061) 2026-11-22 11:48:13 +11:00
sam 84284d59c3 refactor(events): split trigger firing and target checks to keep complexity in bounds (#2062) 2026-11-22 11:47:32 +11:00
sam 501338ffbd fix(events): a delete blocked by a restricting reference answers 409 (#2062) 2026-11-22 11:46:02 +11:00
sam 61f576a25c feat(events): capture, event types, mappings and trigger approval on the binary (#2062, #2098)
Event types, field mappings and the stored-delivery inspector move into
modules/events: copied from internal/domain/eventtype and
internal/domain/mapping, which the old services still import. Each stored
event records how its delivery was verified; a source that checks nothing
refuses deliveries until approved; triggers gain approve, pause, resume,
event-type and mapping binding, dispatch history and delete. The captures,
mappings and bindings sections are reported as served.
2026-11-22 11:39:46 +11:00
sam a5826156a3 feat(runs): filter runs by workflow and name each tool call in a trail entry (#2061) 2026-11-22 11:36:08 +11:00
sam 682995bdf7 feat(runs): workflow drafts, publish with an expected version, delete, enabled flag, run on demand, run stages and statistics (#2061, #2113, #2098)
A disabled workflow is never started by a trigger, another workflow or a
person. Delete is refused while a trigger, another workflow or a run in
progress names it. A parked or ended run restarts from a step.
2026-11-22 11:34:49 +11:00
sam aefe2b81e9 Merge branch 'main' into worktree-org-config
# Conflicts:
#	ui/src/schedules/SchedulesPage.vue
2026-11-22 11:24:30 +11:00
sam eadb88d3bf feat(governance): serve the organisation's instructions to every agent (#2023)
The organisation's standing instructions are stored per organisation and
join the system prompt of chat turns and workflow agent steps. The Org
configuration group is served: schedules, alert webhook, playbooks,
models, connections and credential bindings open the page that already
owns the concept.
2026-11-22 11:24:25 +11:00
sam a420b742e8 fix(events): save token and none sources with an empty secret instead of NULL (#2112) 2026-11-22 11:21:28 +11:00
sam bd212ec9ac Merge branch 'worktree-agent-a521e2c3ea8457fdc'
# Conflicts:
#	modules/governance/accounts_api.go
2026-11-22 11:16:42 +11:00
sam 9aceaa15bc feat(system): report module, connector and runner health and what waits on a person (#2023) 2026-11-22 02:44:13 +11:00
sam 5004e8b40b feat(governance): serve members, access policies and denials (#2023) 2026-11-22 02:43:06 +11:00
sam e3130d53e7 Merge branch 'worktree-agent-a82ec64b6cc1a2809'
# Conflicts:
#	internal/app/archie/operations.go
#	modules/events/events.go
#	modules/governance/accounts_api.go
#	modules/governance/governance.go
2026-11-22 02:16:56 +11:00
sam 098d8cc328 feat(runs): authorize runs, deliveries and intake as the workload principal (#2078)
Trigger dispatch, run start, every run claim, every delivery attempt and
webhook intake now ask the policy chain. Background work acts as the
workload principal; a refusal is final and recorded on the run or the
delivery, and an undecidable chain leaves the work queued for another
attempt. Intake applies the per-source delivery policy after source
verification.
2026-11-22 02:15:05 +11:00
sam 6c59d6b742 feat(httpapi): refuse every API operation that does not declare its access (#2078)
Operations register through httpapi.Register with Public, Authorized or
AdminAuthorized, and the guard asks the policy chain for the declared
action and resource kind before the handler runs. An undeclared operation
and an undecidable chain are refused. The workload principal, its shipped
policy, a self-service policy and Recording for denials are added in
governance.
2026-11-22 02:15:02 +11:00
sam 1a0c697858 Merge branch 'worktree-agent-a124e124e24c6a56b' 2026-11-22 02:13:32 +11:00
sam 65a8b7cd47 Merge branch 'worktree-agent-a559cecce669715a6' 2026-11-22 02:13:32 +11:00
sam e127b2b05d feat(approvals): gate answers by role and link channel accounts through single-use codes, replacing the people model (#2095) 2026-11-22 02:13:08 +11:00
sam 02227a0b22 feat(connectors): let a connector declare it links accounts and return the link URL for a code (#2095) 2026-11-22 02:13:08 +11:00
sam 9c0ea938b8 fix(chat): canonicalise a held action's stored input before comparing it (#2072, #2096)
The binding is read back from a jsonb column with a space after every colon,
so an unchanged approved action failed the byte comparison and never ran.
2026-11-22 02:09:32 +11:00
sam 763cd0e581 feat(governance): delete a model or alias from /settings/models (#2090) 2026-11-22 02:03:24 +11:00
sam 48d0212784 style: fix gofmt alignment for maxBackoff 2026-11-21 23:18:43 +11:00
sam 4b494bf75b feat(approvals): add a People page, leave channel approvals unchanged, make a binding's target optional (#2072) 2026-11-21 21:37:42 +11:00
sam b9a60e03a3 feat(chat): bind held-action approvals to the whole action and require fresh passkey confirmation for irreversible ones (#2072) 2026-11-21 21:35:27 +11:00