Files
archie/CHANGELOG.archie.md
T

432 lines
21 KiB
Markdown

# archie-agent changelog
## [1.35.0] - 2026-09-22
The sandboxed runtime links the same shared packages as archied, so this release carries the
channel-lifecycle store contract and the stricter action-load errors with it:
- The channel-status store contract (`PutChannelStatus`/`ListChannelStatus`) and its replace-the-set
semantics.
- Authoritative module ids and stricter action load errors: a misspelled result field, an unknown id,
or a dynamic `actions` read now fails the playbook load rather than the dispatch.
archied and archie-agent move together in this release.
## [1.32.0] - 2026-09-22
The sandboxed runtime links `storecontract` and `staterpc`, so it carries the dispatch-ledger
contract alongside archied:
- The shared `store.ErrAlreadyDispatched` sentinel now describes both dedup ledgers --
`binding_dispatches` per `(binding_id, capture_id)`, and `playbook_dispatches` per
`(playbook_id, playbook_version, event_id, action_id)`. Each is an at-most-once guarantee.
- `RecordPlaybookDispatch` is part of the store contract the runtime builds against.
archied and archie-agent move together in this release.
## [1.31.0] - 2026-09-22
The sandboxed runtime links the same shared packages as archied, so this
release carries the control-plane and workflow changes alongside it:
- Runtime administration over the State Store's gRPC server, resource history,
and control-plane apply status on the store contract.
- The shared step vocabulary, owned by a family manager registered at each
composition root, and `gate.diff-rules` in place of `.archie/gate.go`
(fails closed on a change it never read).
- The workflow pin crosses the wire.
Runtime-specific changes:
- `refactor(plugin)`: the unused `Registry` type is deleted.
- `yaegiutil` refuses incomplete Yaegi interface wrappers at load rather than
running them.
- The runtime config overlay is deleted.
- The state store dial installs client keepalive, and the server policy accepts
the dialer's pings.
- The MCP client supports per-server `parallel_tool_calls`.
- A late max-uptime callback no longer resurrects teardown state.
- A webhook route path no longer becomes a sender identity.
Note: the `archie-agent` image is rebuilt by this tag through CI
(`.github/workflows/deploy.yml`); a gateway-only release would not have rebuilt
it. `docker compose pull agent` is required to pick it up.
## [1.30.0] - 2026-09-20
- The sandboxed runtime picks up line-anchored review comments: a finding is
posted against the line it is about, with a suggested fix where it has one,
and a suggestion is rejected unless it is single-line -- GitHub applies a
multi-line suggestion only up to its first line, silently corrupting the
file (#891).
- `diff_cap_lines` is an optional value in the shared config the runtime
reconstructs, so an explicit `0` means "no cap" rather than being rewritten
to the default. **Behaviour change** for a repo that set `0` expecting
unlimited and was silently getting 400 (#899).
- A diff-cap park names a remedy that exists: a parked task's actions are
retry, abandon and reject, so the reason no longer says "approve manually".
- A released container is not torn down twice -- the reaper no longer deletes
teardown bookkeeping before `Release` is finished with it (#893).
- Build toolchain: `gofumpt` and `golangci-lint` are pinned as one matched
pair, and `task fmt` uses the same engine the gate checks with, so the
runtime's own gate is satisfiable (#901).
## [1.29.0] - 2026-09-19
- The sandboxed runtime picks up the review-reaction envelope and its
owned-PR authorization, so an agent can only react to reviews on pull
requests it opened itself.
- `google.golang.org/grpc` bumped past `v1.84.0` to patch
[GO-2026-6443](https://pkg.go.dev/vuln/GO-2026-6443) (shared dependency
with `archied`; the pre-release commit is pinned pending a stable
`v1.85.0`).
## [1.28.0] - 2026-09-19
- The sandboxed runtime picks up the attempt-attribution contract, so the events
and changes an agent produces are recorded against the attempt that produced
them.
- `grep` can use the workspace codesearch index.
- A worktree is handed back on every sandbox exit, and container teardown is
claimed once — a released container's reaper is cancelled rather than
re-firing during the grace period.
- Retries recover from worktree path-type conflicts instead of failing
opaquely.
- A parked workflow run records its park reason in its own log.
- Triage criteria distinguish the workflows, and a workflow is required when a
code change is needed.
- Namespaced forge labels match when routing by kind.
- The `ARCHIE_REACTIONS` fan-out stream is provisioned.
- Collection fields decoded over the State Store gRPC contract are never nil
slices, so an empty collection marshals as `[]` rather than `null`.
## [1.27.0] - 2026-09-17
- The per-task runtime picks up the new State Store task-log read contract, so
the sandboxed agents share one log-reading path with the daemon and the
dashboard.
## [1.26.0] - 2026-09-17
- feat(config): add [scheduling] config block
- fix(webui): count every chat front-end in the published projection
- fix(scheduling): respect configuration ownership
- feat(ratelimit): wire per-identity inbound rate limiting into the gateway
- fix(tools): judge the rm guard by base name so absolute paths cannot bypass it
- fix(daemon): carry kind/label routing bindings to the process that routes
- fix(config): deep-copy Image.Hosted/Image.Local in Config.Clone
- fix(logging): keep the live descriptor open across a failed rotation
- fix(agentworker): wire configured tool-result policy into worker's LoopRunner
- refactor(staterpc): delete the superseded single-token auth interceptor
- refactor(tools): delete unreachable dispatch/gating engine
- feat(channels): wire chat.webhook route config through to the gateway
- refactor(tools): delete unreachable AST-based tool discovery
- refactor(tools): delete unused plugin-tool registration API from builtin.Registry
- refactor(state): delete the dead IncrementRetryCount RPC (breaking change, accepted)
- fix(staterpc): preserve marshal_error marker in eventDataJSON
- fix(gate): validate finding level and share the blocking threshold
- fix(tools/provider/mcp): preserve MCP binary tool results for delivery
- refactor(tools/mcp): delete unreachable MCP adaptation path
- refactor(skill): delete dead Discover/DiscoverPlugins/Skill path
- refactor(skillbuild): delete dead AugmentRegistry path
- fix(builtin): bound read/edit filesystem work by DefaultToolTimeout
- refactor(binding): delete dead Matcher.Overlaps method
- refactor(forge): delete dead CreateIssue surface
- fix(mcp): cancel in-flight SSE reconnect on Stop
- fix(container): enforce MaxUptime lifetime cap with a timer
- refactor(forge): delete the unwired RepliesAfter surface
- refactor(config): delete the two decoded-but-unread policy fields
The runtime carries a smaller, more focused set of changes than the same
version's archied entry: agent-side tool-result policy is now wired into the
worker's loop, MCP binary tool results survive to delivery, the container
`MaxUptime` lifetime cap is enforced with a timer, and a scheduled run records
completion so it does not re-fire each tick.
Note that several bullets above name config, webui and ratelimit packages. Those
are attributed here by the release tool's package-closure rule (`go list -deps`
over the agent binary), not because the agent owns them; the substantive
runtime changes are the worker, MCP, container and scheduling fixes.
This entry also confirms the removal of the dead `IncrementRetryCount` State
Store RPC, which the agent reaches through `staterpc` rather than by calling it
directly.
## [1.25.0] - 2026-09-15
- chore: no user-facing changes; versioned so the 1.25.0 release tags both
components at the same commit
## [1.23.0] - 2026-09-12
The agent runtime now reaches task state through the State Store gRPC contract
(`STATE_STORE_URL`/`STATE_STORE_TOKEN`, injected by the daemon) instead of the
NATS `storerpc` transport, which is deleted. Credentials handed to a task
container are scoped to that task rather than being the daemon's own token.
Running a 1.23.0 daemon against an older agent image will not work; rebuild or
pull the `archie-agent` image with this release.
- feat(state-store): generalize storerpc as the State Store gRPC contract (#770)
- feat(state-store): stand up archie-state-store binary and own archie.db (#771)
- refactor(state-store): cut daemon/Gateway over to the remote State Store (#774)
- fix(state-store): task-scope container credentials, stream large capture lists, validate Update
- fix(staterpc): attach the bearer token to State Store streams
- feat(staterpc): carry the dashboard's configuration snapshot
- refactor(workflow): relocate Task/Status/Source and define workflow.Store (#754)
- refactor(store): move the producer-owned contracts to internal/contracts/store/v1
- feat(contracts): add gateway service seams and protobuf toolchain
- fix(gateway): drop services.gateway.mode, remote is the only transport
- feat(forge): pull request review read surface (ListReviews/ListReviewComments/ReplyToReview)
- feat(gateway): operator-triggered PR review with selectable reviewer model
- feat(workflow): surface adversarial review findings on the PR body
- feat(workflow): review calibration, checked properties and style nits out of contract
- fix(workflow): order findings before footer; test the report stash
- fix(archied): share one PR reviewer across channels; harden forge and worktree
- feat(worktree): Resume re-syncs a worktree onto its branch tip
- feat(telegram): support secret refs for bot tokens (#705)
- feat(gateway): wire progressive tool disclosure (bridge tools)
- feat(archied): serve the daemon's own health endpoint
- feat(archieui): standalone UI process over remote Gateway and State Store
- refactor(archied): move webhook capture intake to the process that owns work intake
- refactor(ui): sever the archie-ui binary from every daemon runtime package
- fix(archieui): resolve service tokens from env, without requiring a config file
## [1.21.0] - 2026-09-03
- feat(workflow): make kind-to-workflow routing YAML-overridable
- feat(workflow): route arbitrary forge labels to workflows via playbook YAML
- feat(workflow): load kind/label bindings from multiple playbook directories
- fix(extract): regenerate stale Yaegi symbol tables; fix wfextract directive
- feat(eda): Module position first slice -- registry + side-effect-free log kind
- feat(eda): playbook document + event coordinator, single-action workflow-kind dispatch
- fix(binding): add Owner/Repo pin, fixing multi-repo dispatch
- fix(binding): split ValidateForUpdate so edits can preserve the secret
- refactor(eda): extract helpers to satisfy cyclop/gocognit gates
- fix(eda): make playbook key collision reporting deterministic
## [1.20.0] - 2026-09-03
- fix: baseline gate repair (go test ./... -count=1)
- fix(logging): propagate bound slog attrs to wrapped handler in FeedHandler
- feat(image): define provider-neutral image capability contract and config
- fix(workflow): stop discarding baseline-fix commits as 'no changes'
- fix(workflow): net cache hits from token totals, trim gate-retry output
- feat(workflow): dynamic triage instead of defaulting every task to implement
- feat(webui): playbook bindings -- matcher + mapping + workflow, HMAC-gated
- feat(store): encrypt playbook binding secrets at rest
- fix(store): satisfy makezero when building cipher payload
## [1.19.9] - 2026-09-02
- feat(config): config surface for memory engine selection
## [1.19.7] - 2026-09-02
- fix(logging): make Tail/Page allocation bound explicit for CodeQL
## [1.19.5] - 2026-09-01
- feat(tasks): allow rejecting a task from any non-terminal state
- feat(tasks): serve the lifecycle presentation catalog from /api/task-meta
- fix: go.mod bumped to 1.27.0 and stupid tests removed
- refactor: go modernisation fixes
- refactor: remove unused Operator param.
- fix(plugin): add missing CLAUDE.md reference to plugin engine rule
- fix(app): repoint archied wiring contract test at internal/app/archied
- refactor(agentexec): use ai-sdk NewTypedTool for pluginToolSet and scriptToolSet
- refactor(lint): reduce cyclomatic/cognitive complexity in tools, workflow, webui
- fix(app): repoint capability-host wiring contract test at internal/app/archied
- refactor(lint): extract more helpers to clear nestif/gocyclo findings
- refactor(lint): split AgentStage.Stage into resolveModel/buildRequest/handleResult
- refactor(lint): extract Apply/findWalkVisitor helpers; go fix modernization
- fix(lint): noctx fixes and dead-code cleanup
- feat(workflow): adversarial self-review stage before PR open
## [1.18.0] - 2026-08-28
- feat(logging): cursor pagination and filtering for task_logs
- build(deps): upgrade github.com/samcharles93/ai-sdk to v0.1.29
## [1.17.0] - 2026-08-25
- Compact task history against the selected model's real context capacity without imposing a token cap.
- Preserve completed steps and billed usage when a later provider call fails; failed compaction now keeps the original history and continues.
- Persist detailed agent-stage usage through the daemon-owned store before lossy live event fan-out.
- Apply configured or forge-derived author and committer identity to sandboxed task commits.
## [1.16.1] - 2026-08-25
- fix(agentworker): reconcile task clone ownership after commits
## [1.16.0] - 2026-08-25
**Version realigned with `archied`.** This release jumps from 1.9.9 to 1.16.0
to put the two components on matching numbers; there are no 1.10-1.15 agent
releases. It clears the accumulated runtime backlog in one cut rather than
bundling it as a rider on a later change, so the list below spans several
weeks of work rather than one session's.
Highlights:
- feat(nats): run an embedded server when no external NATS is configured, and
expose the embedded broker to managed task workers
- feat(deployment): default to managed NATS workers; the daemon requires a
full-task worker handoff and the legacy in-process, subprocess and
single-stage execution paths are gone
- feat(forge): GitHub webhook receiver for immediate issue dispatch, with
dedup regression proof; unbound webhook events are stored retention-bounded
- feat(webui): payload field mapping -- bind JSON paths to named fields and
preview before saving
- feat(scheduling): ticker engine with configurable interval and pools
- feat(storage): persist agent project state
- feat(agent): stamp archie-agent's build and report it back to the daemon
- feat(tools): `generate_video` via MiniMax, gated behind config, and
`MultimodalResult.URLs` for remote-hosted media
- feat(workflow): define the adversarial-review findings contract
Fixes:
- fix(worktree): bind publication to dispatch grants; reset retries to a
pristine base; reject diffs without a merge base; clean untracked files when
`.git` is a gitdir file; post-push metadata resilience, cancellation and
branch naming
- fix(container): persist the npm cache for per-task MCP servers
- fix(agentexec): recover omitted finish calls
- fix(agentworker): move JSONL decode into storage, unblocking CI
- fix(telegram): compact tool output and drop turn caps
- fix(webui): give dashboard-initiated updates a phase-2 report; restore the
provider gate and dashboard token accounting
- refactor: remove dead `BasePlatformAdapter` code and legacy execution paths
Shared with archied 1.16.0 (these packages are in both closures):
- feat(telegram): send local files as uploads, not fetchable URLs
- fix(webui,sendfile): close three holes the adversarial review found
- fix(webui): validate mutation Origin against the effective external scheme
## [1.9.9] - 2026-08-18
- chore: no user-facing changes
## [1.9.8] - 2026-08-17
- chore: no user-facing changes
## [1.9.7] - 2026-08-17
- chore: no user-facing changes
## [1.9.6] - 2026-08-16
- chore: no user-facing changes
## [1.9.5] - 2026-08-16
- refactor: decompose the daemon bootstrap into phased wiring (no behaviour change; complexity-driven restructure)
- refactor(tools): split the read executor and flatten nested config/tool fallback logic to lower complexity
- fix(tools): avoid predeclared `max` names
## [1.9.4] - 2026-08-15
- chore: no user-facing changes
## [1.9.3] - 2026-08-15
- fix(logging): resolve error attrs to their message string, not {}
- fix(agentworker): back off before refetching a nak'd stage message
- feat(agentexec,workflow): surface tool calls on the task timeline
## [1.9.2] - 2026-08-15
- fix(worktree): force checkout so retry recovers from a dirty worktree
## [1.9.1] - 2026-08-15
- fix(agentworker): forward workflow events across the NATS worker boundary
## [1.9.0] - 2026-08-15
- fix(agent): resolve git dubious-ownership in sandbox containers
- feat(agent): mark the mounted worktree as a git safe directory
- fix(agent): route git safe.directory setup through markWorktreeSafe
- feat(chat): show tool calls inline and stream replies into one message
- refactor(agent): move worker runtime into application layer
- fix(config,webui): make show_tool_calls one cross-channel setting
## [1.4.0] - 2026-08-10
- feat(gateway): tool-approval gate, session tools for chat, and /delete command
- feat(gateway): make chat turns durable and idempotent
- feat(webui): lifecycle-safe task controls with atomic retry and archive
- feat(logging,workflow): daemon log feed and executable workflow registry
- fix(store,gateway): taskstate constants and mobile jump-to search
- feat(webui,gateway): wire config, channel, log-feed, and work-intake seams
- fix(build): install ripgrep where grep.go actually needs it on PATH
- fix(workflow): carry gate output into the baseline park error
- feat(logging): add a per-task log sink
- feat(agentexec): publish agent-side logs to the task's system subject
- feat(daemon): consume agent system logs into per-task sinks and the dashboard feed
- feat(webui,gateway): add /api/tasks/{id}/logs endpoint and task_logs chat tool
- refactor(store): replace legacy persistence with SQLite
- refactor(daemon,webui): make Daemon.Cfg and webui.Server.Cfg reload-safe
- feat(config): SIGHUP-triggered reload with requires-restart warnings
- feat(config): surface overlay state, shadowed keys, and per-row reset
- fix(config): close review blocker on the PATCH path; deep-copy snapshots; atomics for shared state
- fix(config): preserve nil slices in Clone to avoid spurious reload warnings
## [1.3.0] - 2026-08-08
- feat(curator): engine family contract, registry, and runtime
- feat(curator): trigger accounting — primary-input wake path
- feat(logging): optional rotating log file
- feat(daemon): identity-scoped isolation
- fix(secrets): wire provider credentials through engines
- fix(store): surface task timestamps and tag the summary structs
- fix(tools): let an optional provider fail without taking the daemon down
- fix(tools): report a cancelled find walk as an error, not empty results
- fix(worktree): name the missing forge credential when a push fails
- fix: close the duplicate-work loop and the dead paths around it
- perf(tools): drop the embedded ripgrep binaries
- refactor: one definition of what approving or declining a task means
- refactor: move workflow into its own domain
## [1.2.0] - 2026-07-31
- feat: add MCP client capabilities to archied and archie-agent
- fix: Transition() ignores `from` status guard, allowing lost updates
- fix: skillscript.Run ignores context, cannot be canceled/timed out
- fix: LoadDir: no timeout around Yaegi Eval can hang daemon startup
- fix(indexing): surface index config properly and stop silent degradation
- refactor(worktree): replace git shell-out with go-git v6
- fix(worktreerpc): bound handler contexts and drop the git binary from tests
- refactor(nats): rebuild as infrastructure/eventbus/nats with real boundaries
- refactor: route tasks on a typed kind, not forge labels
- fix(natsrpc): make RegisterAll wait for the server to see subscriptions
- refactor(config): move loading into infrastructure/configuration
- refactor: add internal/eventbus as the broker-neutral messaging contract
- feat(tools): lift tau's file and shell tools into the tool registry
- feat: make /stop cancel the running chat turn
- fix: kill the whole process group when a shell command is cancelled
- feat: refuse unrecoverable shell commands
- feat: make /stop reach running agent tasks
- fix: use errors.Is/As for context errors and cleanup
- fix(grep): distinguish ripgrep exit 1 from a failed search
- fix(docker): slim both images and repair unreachable Go tooling
- fix(container): write the task boot brief under .git
## [1.1.0] - 2026-07-27
- feat: add streamed agent execution with typed message events
- feat: add MCP client transports and managed tool-provider discovery
- feat: add memory context scrubbing and normalized memory tool schemas
- feat: add plugin metadata extraction from `metadata.archie.plugins`
- feat: add configurable container networking for daemon-launched runtimes
- fix: preserve valid UTF-8 when clipping runtime output
- fix: make MCP stdio lifecycle, retries, and timeout handling race-safe
- fix: enforce a zero-finding lint and vet baseline
## [1.0.0] - 2026-07-22
- feat: ship the isolated agent runtime, NATS RPC boundary, workflow execution, skills, and plugin support
- feat: publish the `archie-agent` container image to the Gitea registry