sam
161e8f95bf
perf(store): share one control-plane version read across all watchers ( #1858 )
...
The control-plane Watch was a 250 ms database poll per subscription: an idle instance ran about 180 transactions a second (archied 14 streams, gateway 5, dashboard 26), almost all sequential scans of the small resources table. The State Store now keeps one shared view of every stored resource version, read once per 250 ms window and reused by every Watch stream; a stream reads its own resource only when its kind's version advanced, so idle database work is one read per interval for the whole process whatever the subscriber count.
The watch contract is unchanged: resume from AfterVersion, no missed update (versions are monotonic per org and kind), the immediate seed probe, the same 250 ms latency bound (streams wake on the same window boundary), and a store error still ends the stream with Unavailable so the clients' existing reconnect backoff applies.
2026-11-11 03:03:37 +11:00
sam
c155bb24ba
fix(taskactions): record the retention rule for archived task children ( #1859 )
...
Archiving deletes the task row but deliberately keeps its child rows:
execution history, usage and the dispatch ledger are records about the work,
not attachments to the row. Nothing recorded that rule, so the kept rows had no
parent row to explain them and no query could say what happened to an archived
task.
Record the rule in the archive event's data. The kind is protected from audit
retention and already projects into the audit feed, so that event is the
archived-task record: it names the kept child sets and leaves event rows to the
instance's per-kind retention.
2026-11-11 02:59:20 +11:00
sam
0033933a58
perf(store): index the six unindexed foreign keys ( #1860 )
...
Postgres does not index the referencing side of a foreign key, so deleting or updating a parent row scanned the child table once per referencing row for the six keys that had no matching index: identity aliases and subjects, org memberships and agents, installed package requirements, and the task a handoff came from. Migration 0074 adds one supporting index per key; the foreign-key integrity checks on the restored snapshot pass, with every one of the 17 constraints now covered.
2026-11-11 02:49:37 +11:00
sam
dcc12582ce
feat(audit): set per-kind event retention from the instance ( #1856 )
...
deploy / plan (push) Successful in 35s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / archied-image (push) Canceled after 0s
deploy / gate (push) Canceled after 25s
ci/woodpecker/push/deploy Pipeline was canceled
The retention sweep applied one window to a code-fixed allowlist, and the
largest event kind (agent transcripts) was outside it, so the events table
grew whatever the instance set. The audit-retention document now takes
per-kind overrides, the dashboard offers each prunable kind its own window
from the server's list, and a kind without an override follows the default.
A security kind is refused where the document is written, and the sweep cuts
each kind at its own cutoff in one bounded, locked transaction.
2026-11-11 02:31:46 +11:00
sam
4728c8c253
feat(usage): report model usage per org with identity and cost ( #1855 )
...
Model usage was recorded per call and never read, so an org could not see
what it spent. Add the read side:
- model_usage carries identity_id. Task calls take it from the task row,
chat and curator calls from the calling principal carried in the usage
record, so an outbox replay keeps its attribution. Existing task rows are
backfilled from tasks.
- StatsService.UsageTotals sums the caller org's rows by UTC day, source,
provider, model and identity. The org comes from the principal, with no
org parameter, so cross-org reads do not exist.
- GET /api/usage prices tokens at the catalog's list rate, netting cache
hits, and reports calls to unpriced models as tokens only. The published
catalog view now carries each model's cost.
- A new org Usage page behind a read_usage grant: admin and owner only,
with a 7, 30 or 90 day range, totals, the daily series, and model, source
and identity breakdowns. The org shell keeps it on the caller's own org.
2026-11-11 02:15:29 +11:00
sam
255e0c7ee0
feat(chat): titles read the reply too, and session memory sees what it already holds
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Successful in 30s
ci/woodpecker/push/deploy Pipeline was successful
deploy / gate (push) Successful in 7m39s
deploy / agent-image (push) Skipped
deploy / dist-zip (push) Skipped
2026-11-11 00:10:00 +11:00
sam
bc16b74c93
fix(prompts): correct the product guide, and make chat replies scannable and honest about their own history
deploy / plan (push) Successful in 8s
ci/woodpecker/push/deploy Pipeline was successful
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 5m8s
2026-11-11 00:04:43 +11:00
sam
44237b448b
refactor(prompts): every model prompt is a file in internal/prompts
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / plan (push) Successful in 6s
ci/woodpecker/push/deploy Pipeline was canceled
deploy / gate (push) Canceled after 2m58s
2026-11-11 00:01:43 +11:00
sam
e5e968780f
fix(chat): the conversation picker reads as the panel's title, and titles name the subject, not the mood
ci/woodpecker/push/deploy Pipeline was successful
deploy / gate (push) Successful in 7m24s
deploy / agent-image (push) Skipped
deploy / archied-image (push) Canceled after 38s
deploy / plan (push) Successful in 9s
deploy / dist-zip (push) Canceled after 0s
2026-11-10 23:53:24 +11:00
sam
5ea115746c
fix(dashboard): blocked tasks say what they need, and a provider refusal names its fix
deploy / plan (push) Successful in 6s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 5m37s
ci/woodpecker/push/deploy Pipeline was canceled
2026-11-10 23:19:29 +11:00
sam
721e6332ed
fix(chat): show a failed turn's error in a reopened conversation
2026-11-10 21:56:06 +11:00
sam
cc49fecc77
fix(egress): default base URL for the gemini-interactions provider class ( #457 )
2026-11-10 21:56:06 +11:00
sam
13ec693726
fix(gateway): let a streamed chat turn finish after its stream closes ( #1848 )
deploy / plan (push) Successful in 7s
deploy / gate (push) Successful in 7m49s
deploy / agent-image (push) Successful in 12s
deploy / dist-zip (push) Skipped
deploy / archied-image (push) Successful in 2m24s
2026-11-10 20:14:04 +11:00
sam
e3ffefdc7d
fix(identity): use System as the one root identity and record who created every task ( #1851 )
...
deploy / plan (push) Successful in 25s
deploy / gate (push) Successful in 7m57s
deploy / agent-image (push) Successful in 21s
deploy / dist-zip (push) Skipped
deploy / archied-image (push) Successful in 2m12s
Drop the bot_user-derived root identity and the empty-identity sentinel. System
polls forge connections and owns instance-level work; a polled task stores the
polling identity, task_queued and work_request_submitted carry task id, actor
and principal, and an empty task identity is refused. Migration 0072 moves
empty tasks.identity, the identity-grants root key and the old root's
connection permits to System so a re-poll dedups.
2026-11-10 20:01:16 +11:00
sam
0e889977c0
fix(archied): resolve merge, close and issue tools through the repository's connection ( #1847 )
deploy / plan (push) Successful in 6s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 2m50s
2026-11-10 19:25:15 +11:00
sam
0525edd3bb
fix(postgres): blocker-changed marks only the org whose resource changed ( #1839 )
deploy / gate (push) Successful in 8m39s
deploy / plan (push) Successful in 7s
deploy / agent-image (push) Canceled after 2s
deploy / dist-zip (push) Skipped
deploy / archied-image (push) Failing after 13m38s
2026-11-09 14:40:58 +11:00
sam
82313e4af5
feat(state-store): flag parked tasks when the resource their blocker names changes ( #1839 )
2026-11-09 14:40:58 +11:00
sam
e34941b1eb
fix(workflow): record a close refused for open dependencies instead of parking ( #1845 )
2026-11-09 14:40:58 +11:00
sam
67c9b7a00a
fix(workflow): publish a baseline repair as a PR before the task continues ( #1844 )
...
Dependents now wait for the baseline gate to pass on the base branch
instead of a specific branch merging.
2026-11-09 14:40:58 +11:00
sam
20ffe63367
fix(worktree): object-not-found match tolerates a successful push
deploy / plan (push) Successful in 8s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 1m47s
2026-11-09 14:40:19 +11:00
sam
bcbd09fc08
fix(workflow): a budget stop in a parallel branch asks to continue and resumes the branch ( #1838 )
2026-11-09 14:37:22 +11:00
sam
a3fdbddfc0
fix(worktree): match object-not-found by message too, as push transports may flatten it ( #1843 )
2026-11-09 14:37:18 +11:00
sam
70eef0ec99
fix(secretengine): report a full volume as an environment failure, not a bad credential ( #1842 )
2026-11-09 14:37:17 +11:00
sam
96236b6186
fix(worktree): rebuild the mirror and retry once when a push hits a missing object ( #1843 )
2026-11-09 14:37:17 +11:00
sam
e75d5c8ade
fix(store): a restart re-queues a running task at its interrupted step and parks it after 3 restarts ( #1841 )
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 4m4s
2026-11-09 14:36:08 +11:00
sam
f44db54948
fix(archied): the watchdog heartbeat proves liveness and a stalled run loop reports degraded readiness ( #1840 )
...
State Store calls the daemon makes without a deadline now get one.
2026-11-09 14:36:08 +11:00
sam
ec79c8123e
fix(worktree): TestAwaitSpace recovery rows get a deadline a loaded host cannot run out
2026-11-09 14:27:18 +11:00
sam
4b0adac674
fix(daemon): open the task log before the workflow-identity check so its parks are logged
deploy / plan (push) Successful in 6s
deploy / dist-zip (push) Skipped
deploy / gate (push) Successful in 8m37s
deploy / agent-image (push) Successful in 23s
deploy / archied-image (push) Successful in 2m4s
2026-11-09 13:55:19 +11:00
sam
dc2c3b983f
feat(workflow): a budget continuation resumes at the stopped step with its conversation ( #1832 )
deploy / plan (push) Successful in 7s
deploy / gate (push) Successful in 8m12s
deploy / agent-image (push) Successful in 28s
deploy / dist-zip (push) Skipped
deploy / archied-image (push) Successful in 2m11s
2026-11-09 12:44:01 +11:00
sam
e3dc7fc2e9
fix(issuerpc): list only issues opened by users with write access ( #1830 )
...
deploy / gate (push) Canceled after 0s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / plan (push) Canceled after 7s
Adds Issue.Author to the forge contract; the daemon drops issues from
authors without write access and fails the listing closed when the forge
cannot answer.
2026-11-09 12:43:44 +11:00
sam
2ae471398b
test(gatewayrpc): an unreachable secret engine answers Unavailable
deploy / dist-zip (push) Canceled after 0s
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / gate (push) Canceled after 2m30s
2026-11-09 12:39:32 +11:00
sam
6437c8009c
fix(gatewayrpc): secret check reports an unreachable engine as unavailable, not as a missing key
deploy / plan (push) Successful in 13s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 1m47s
2026-11-09 12:39:12 +11:00
sam
00f62a5772
fix(configuration): startup setting descriptions in sentence case saying what a change needs ( #1836 )
2026-11-09 09:41:50 +11:00
sam
3db75f9e28
fix(postgres): drop the removed schedules kind's apply status so archied is not degraded ( #1834 )
2026-11-09 09:41:50 +11:00
sam
f27e9853cc
test(workflow): budget stop asks to continue and resumes on approval ( #1832 )
2026-11-09 09:41:46 +11:00
sam
561863613f
feat(workflow): agent.run asks to continue when it reaches its step budget ( #1832 )
2026-11-09 09:41:46 +11:00
sam
3b840d7847
fix(daemon): drop PR review activity from authors without write access ( #1830 )
...
Adds a forge HasWriteAccess call; the review scan publishes only
collaborators' reviews and comments, and issue_list marks forge text
as untrusted.
2026-11-09 09:41:39 +11:00
sam
8e5d4e8061
fix(worktree): rebuild the repo mirror when a refresh fails on a corrupt mirror ( #1831 )
2026-11-09 09:41:39 +11:00
sam
c98666d6b7
fix(worktree): stale-clone reclaim keeps clones with uncommitted or unpushed work ( #1829 )
2026-11-09 09:41:33 +11:00
sam
055f2da9cd
fix(daemon): reclaim stale task clones when the work volume is full; clean up dead tasks too ( #1829 )
2026-11-09 09:41:33 +11:00
sam
2365e5ede9
fix(archied): model catalog load no longer reverts control-plane execution budgets to the file's
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 1m46s
2026-11-09 09:24:51 +11:00
sam
c9248a251a
fix(releaseupdate): label the daemon release row Services, not Gateway
deploy / plan (push) Failing after 2s
deploy / gate (push) Skipped
deploy / archied-image (push) Skipped
deploy / agent-image (push) Skipped
deploy / dist-zip (push) Skipped
2026-11-09 09:08:39 +11:00
sam
e0eb1dfdb7
fix(workflow): refuse an output named result beside an agent.run result capture at save time ( #1384 )
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 1m25s
2026-11-09 09:04:17 +11:00
sam
031291a4bf
fix(daemon): clone free-space floor is 1 GiB, not 5; clones share the mirror's objects
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 3m17s
2026-11-09 09:00:46 +11:00
sam
618b22db15
fix(releaseupdate): canary ignores task alerts, which the park rate already judges
deploy / plan (push) Successful in 6s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 4m28s
2026-11-09 08:56:22 +11:00
sam
403d5f8427
refactor: drop the unused access.PolicySource and the stale playbooks usage word
2026-11-09 08:35:44 +11:00
sam
b16dd6add4
refactor: delete unreferenced Go code (embedding contract, PolicySource, embedded changelog, ignored webui file) and the stale playbooks usage word
2026-11-09 08:35:25 +11:00
sam
a053d98d7c
refactor(kit): update capability types to use spec constants and add test for known capabilities
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 2m24s
2026-11-09 08:32:56 +11:00
sam
f5a04ce8c5
refactor(archiegateway): own the chat task profiles; archied built a task creator it never read
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 22s
2026-11-09 08:32:28 +11:00
sam
9616dd72ce
refactor(playbook): drop the directory loader and docs left by the playbooks command
deploy / gate (push) Successful in 14m32s
deploy / plan (push) Successful in 7s
deploy / agent-image (push) Successful in 12s
deploy / dist-zip (push) Skipped
deploy / archied-image (push) Successful in 3m2s
2026-11-09 07:53:02 +11:00