Commit Graph
2946 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 369e741df1 fix(deps): go 1.27.3 and x/net 0.62.0 to clear govulncheck
The deploy gate's govulncheck step failed on the first run that reached it, for
two real findings: crypto/x509 in the standard library, fixed in go1.27.3, and
golang.org/x/net v0.61.0, reached from webfetch.htmlToText calling html.Parse,
fixed in v0.62.0. govulncheck now reports none.
2026-10-31 01:05:27 +11:00
sam 407a11f5b5 fix(ui): show stream state at phone width and serve sections from the sheet below lg (#1261 #1386) 2026-10-31 00:47:38 +11:00
sam cc4f3af733 ci(deploy): run the gate from the Taskfile, not an inlined copy (#1580)
deploy.yml inlined its own sequence, which drifted weaker than `task check`:
no db:check, news:check or ui:check, so a release could ship stale sqlc
output, a stale ui/dist, or release notes that disagree with CHANGELOG.md,
and the dashboard suite ran outside the gate without its type check.

The release now runs `task check TEST_FLAGS=-count=1`: same definition, the
full uncached suite including the Docker-backed tests -short skips. quality.yml
already invoked the Taskfile, so both pipelines now share one gate.
2026-10-31 00:37:26 +11:00
sam 396240b142 test(egress): delete the test-only ResolverFunc adapter and its tests (#1671) 2026-10-31 00:36:37 +11:00
sam 9d35c78082 fix(workflow): make the repository optional for the triage workflow (#1578) 2026-10-31 00:36:10 +11:00
sam 4617c2b7bb docs(deploy): name the registry each agent-image path publishes to
The pinning section said CI republished ghcr.io on every push to main. CI
publishes git.catlow.cloud, and only for a release tag; ghcr is where the
hand-run tools/publish.sh writes, which is the reference the default names.

A release zip pins a digest on a registry an anonymous pull cannot reach, and
[containers].registry_auth -- the setting that fixes it -- was documented
nowhere. Documented there, beside the pin.

Also corrected: every shipped profile does not pin the image, and the section
link omitted its number so it matched no heading.
2026-10-31 00:35:49 +11:00
sam d6c10394f2 ci(quality): stop caching the pnpm store
setup-node's cache save fails on this runner -- the pnpm store path it computes
does not exist at post-step time, which marks the job failed after the gate has
already passed. Run 19 proved it: 0 lint issues, ui/dist matched, no task failure,
then 'Path Validation Error' and exit 1.
2026-10-30 01:44:56 +11:00
sam 968c74d148 chore(workflow): finish dropping the unread step-type catalogue accessors (#1014)
Manager.StepTypes and Providers had no reader; the catalogue they were meant
to feed is not missing -- Registry/Settings serve it as x-step-types in the
workflow-definitions schema, read by the dashboard workflow editor and the
gateway's workflow_step_types tool. Remove the write-only providers field
the accessor deletion left behind, and pin that production reader in
controlplanerpc so a dropped schema extension fails the gate.
2026-10-30 01:31:36 +11:00
sam f72495861d fix(forge): return SetStateLabel failures to the caller
A failed state-label change was dropped at three points: the forge.Forge
interface returned nothing, forgeext logged the extension's gRPC error
instead of returning it, and the forgerpc client and server discarded the
response error. SetStateLabel now returns an error on the interface and on
NoopForge, forgeext propagates the extension's error, and the forgerpc
server carries it in the response envelope while the client returns it,
matching the other forgerpc handlers.

The proto is unchanged: a gRPC error rides the status and
SetStateLabelResponse is already an empty message.

TestSetStateLabelFailureReachesTheCaller pins the full chain: an extension
whose SetStateLabel RPC fails, through forgeext and the forgerpc
client/server, to the caller receiving the error.

Refs #280
2026-10-30 00:58:07 +11:00
sam 3cefd898db fix(prreview): classify comment lines against the diff before posting 2026-10-30 00:35:36 +11:00
sam c394348d19 fix(curator): grant the definition engine its model runner
Registry.filter stripped the LLM capability whenever a manifest declared
no tools, skills, memory or conversation capabilities, but
DefinitionEngine.Pass always calls the model. An instruction-only custom
curator therefore registered healthy and then failed every pass with
'no model runner is bound'. The definition engine is inherently agentic,
so the filter now keeps the model runner for it while every other
capability service stays bound only when declared.

Adds tests reproducing the instruction-only pass through the
registry/engine path and pinning that the registrar view for an
instruction-only manifest exposes the model but no tools, skills,
memory or conversations.

Closes #1132
2026-10-30 00:22:50 +11:00
sam c3471128a9 fix(staterpc): make model usage writes durable through a State Store outage
A failed RecordUsage was logged and dropped, losing chat, title, sampling
and curator usage that cannot be rebuilt from events. The staterpc Client
now keeps a bounded local outbox: a failed write is queued and retried with
backoff (1s doubling to 1m, 10s per attempt) until the store accepts it, so
records land once the store recovers. The queue is capped at 1024 records;
an overflow is refused so the caller logs the drop. The sampling usage
write is bounded to 5s so a dead store cannot hold a model call.
2026-10-30 00:06:38 +11:00
sam c41606ca0f fix(workflow): close a budget-stopped stage with its findings as the outcome 2026-10-30 00:06:38 +11:00
sam 26d7c51608 fix(catalogue): sign an issue time and refuse a replayed older catalogue 2026-10-30 00:06:38 +11:00
sam c16a022089 ci(deploy): stop installing ripgrep and setting sysctl from the gate
The deploy gate runs on a self-hosted runner under an unprivileged user, so the
sudo apt-get install and sudo sysctl steps fail. Both are host provisioning:
ripgrep is installed on the runner host and the userns restriction belongs in
sysctl.d. The namespace check stays, without sudo.
2026-10-29 23:57:23 +11:00
sam 1097e81b3e ci(quality): run the gate on the archie-quality runner
The check job asked for the self-hosted label. The repository's only runner,
archie-quality, is online but carries just its own custom label, so run 17 has
been queued since it was pushed. Name the runner instead of a label nothing
offers.
2026-10-29 23:30:43 +11:00
sam 2d378335b4 docs: track work in Gitea issues instead of beads
Every one of the 1709 tracker issues was created in Gitea and checked field by
field against its source record: title, body, state, label set, assignee,
comments, dependency edges and epic label. All 1729 beads are closed, citing the
issue that carries each one, and .beads is removed.

Three differences are deliberate: Gitea truncates titles at 253 characters, so
three long titles keep their full text in the issue body; Gitea refuses a mutual
dependency, so five symmetric relates-to links exist in one direction; issue 497
carries its fix from e3b1103f.
2026-10-29 23:22:35 +11:00
sam 8c0fbebfd7 Merge origin/main: README update 2026-10-29 23:00:09 +11:00
sam 30803ce445 Update README.md 2026-10-29 22:54:26 +11:00
sam ebec2f3081 fix(forge): accept invitations only to configured repositories
The GitHub forge extension accepted every pending repository
invitation, so any GitHub user could add archie's account to a
repository by sending an invitation. AcceptInvitations now carries the
connection's configured repositories and the extension leaves an
invitation to anything else pending.
2026-10-28 23:57:44 +11:00
sam b60ec06839 refactor(fsutil): consolidate nine copies of the atomic write helper
Nine packages each had their own write-temp-then-rename helper with
slightly different behaviour (some synced, some did not; some created
the parent directory, some did not; modes and temp-file patterns
varied). They are replaced by one fsutil.WriteFileAtomic that always
syncs before rename, creates the parent directory, and takes the file
mode as a parameter.
2026-10-28 00:48:59 +11:00
sam 34dfb8a3d3 fix(controlplane): reject userinfo and query in notify_webhook
A webhook URL with embedded credentials or a query string can leak
secrets through logs, proxies and referrer headers. The task policy
validator now refuses both.
2026-10-28 00:36:33 +11:00
sam 67c87bab4b ci(deploy): publish images and releases to Gitea
The deploy workflow now targets git.catlow.cloud: images push to the
Gitea registry and the distribution zip publishes as a release on
sam/archie through the Gitea API, both authenticated with one
DEPLOY_TOKEN PAT (write:packages + write:repository scopes).
2026-10-27 23:20:54 +11:00
sam ba03022eba fix(staterpc): log internal identity errors through the service logger with request context 2026-10-27 20:54:41 +11:00
sam 512660e19d docs(agents): errors surface through OpenTelemetry, not global slog 2026-10-27 20:51:52 +11:00
sam 0006003f1d fix(staterpc): record internal identity errors on the request span instead of slog 2026-10-27 20:51:46 +11:00
sam a5ac3bbf74 fix(staterpc): give token revoke its own audit request ID and log internal identity errors 2026-10-27 20:50:18 +11:00
sam c59f9336a5 feat(identity): name, lifetime and last-used on personal API tokens 2026-10-27 15:37:44 +11:00
sam dc6a02ba5c fix(ui): copy and dismiss a new API token 2026-10-27 15:31:13 +11:00
sam d3fd50f6b0 fix(archied): recover an orphaned update journal while running, not only at boot 2026-10-27 15:24:04 +11:00
sam e5383b2129 fix(gatewayrpc): refuse an inbound attachment whose bytes contradict its declared type 2026-10-27 15:23:48 +11:00
sam 2d9b0734be fix(workflow): keep a stopped stage's notes in the parked detail 2026-10-27 15:22:42 +11:00
sam 4b98919ca3 fix(ui): show the last update's outcome on Settings > Status and present install as staged 2026-10-27 15:18:52 +11:00
sam 2615a26760 test(e2e): per-run report.html, fix stale workflow-logic and audit-runtime, add org selector, org pages, setup, recovery, readiness and schedule-trigger checks 2026-10-27 11:44:23 +11:00
sam 118c0980da fix(webui): skip the open-card reframe while the workflow canvas is hidden 2026-10-27 11:44:23 +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 2fb0084d2c feat(webui): act in a selected organisation the caller is a member of, enforced at the dashboard and the State Store 2026-10-27 11:06:18 +11:00
sam 2cf9d435cc feat(webui): derive the setup checklist from the caller's organisation and drop the optional chat channel step 2026-10-27 10:47:14 +11:00
sam d5a34005d1 feat(daemon): park repository, credential and forge-extension failures with a recovery link on the task list 2026-10-27 10:47:14 +11:00
sam 930b21c36a feat(webui): offer each organisation page only to callers its API write allows, and move appearance to the account menu 2026-10-27 10:47:14 +11:00
sam 8f6c010976 fix(orgs): layer only the fields an org document sets, retry alerts on a failed lookup, and key chat sessions by org 2026-10-27 10:38:00 +11:00
sam 361beecfd3 feat(messaging): run a channel per organisation and deliver only through the owner's 2026-10-27 10:38:00 +11:00
sam b5aab5eaad feat(alerts): send each organisation's alerts to its own webhook 2026-10-27 10:38:00 +11:00
sam 7982a336b7 feat(scheduling): resolve the issue discovery rule per organisation 2026-10-27 10:38:00 +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 55161218c2 fix(applystatus): report only the instance's own copy so another org's read cannot overwrite it 2026-10-27 10:08:24 +11:00
sam 334bb8cc40 fix(scheduling): fire a schedule's capture into its owning organisation 2026-10-27 10:03:29 +11:00