Commit Graph
52 Commits
Author SHA1 Message Date
sam f056c6dbb7 chore(release): archied v1.25.0 archie v1.25.0 2026-09-15 00:22:15 +10:00
sam 8950bde1f4 chore(release): archied v1.24.0 2026-09-12 09:52:42 +10:00
sam 6cf73db3f6 chore(release): archied v1.23.0 archie v1.23.0 2026-09-12 01:33:01 +10:00
sam faace1940a chore(release): archied v1.22.0 2026-09-03 06:31:21 +00:00
sam 666cfd4749 chore(release): archied v1.21.0 archie v1.21.0 2026-09-03 09:58:56 +10:00
sam ec67eb6934 chore(release): archied v1.20.0 archie v1.20.0 2026-09-03 01:35:14 +10:00
sam c446596b46 chore(release): archied v1.19.10 2026-09-02 03:09:58 +10:00
sam b0898d648b chore(release): archied v1.19.9 archie v1.19.9 2026-09-02 02:59:17 +10:00
sam e23e9fc989 chore(release): archied v1.19.8 2026-09-02 01:19:31 +10:00
sam 404e7c1560 chore(release): archied v1.19.7 archie v1.19.7 2026-09-02 00:13:39 +10:00
sam fe6a0efc35 chore(release): archied v1.19.6 2026-09-02 00:01:00 +10:00
sam bd5d4b9b13 chore(release): archied v1.19.5 archie v1.19.5 2026-09-01 23:42:01 +10:00
sam 3ffc4df8d6 chore(release): archied v1.19.4 2026-08-28 01:42:27 +00:00
sam 2652d2d1ea chore(release): archied v1.19.3 2026-08-28 00:55:33 +00:00
sam 42b7eed622 chore(release): archied v1.19.2 2026-08-28 00:19:45 +00:00
sam 8ef6980fe6 chore(release): archied v1.19.1 2026-08-27 23:33:46 +00:00
sam 79b038a9b5 chore(release): archied v1.19.0 archie v1.18.0 2026-08-27 21:40:38 +00:00
sam 2da2561328 chore(release): archied v1.18.0 archie v1.17.0 2026-08-25 05:50:01 +10:00
sam 1740bd12d8 chore(release): archied v1.17.1 archie v1.16.1 2026-08-25 03:29:11 +10:00
sam 24b50192f6 chore(release): archied v1.17.0 2026-08-25 03:06:24 +10:00
sam 97be14b809 chore(release): archied v1.16.0 archie v1.16.0 2026-08-25 02:12:44 +10:00
sam 345fab00fa chore(release): archied v1.15.0 2026-08-24 23:27:33 +10:00
sam b223b3031c chore(release): archied v1.14.0 2026-08-23 16:47:28 +00:00
sam 785f10e496 chore(release): archied v1.13.0 2026-08-23 15:49:43 +00:00
sam 0ec252c4bf chore(release): archied v1.12.0 2026-08-23 23:39:22 +10:00
sam 1f93eab94b chore(release): archied v1.11.1 2026-08-23 22:31:28 +10:00
sam e5f6bbd020 chore(release): archied v1.11.0 2026-08-23 04:15:11 +10:00
sam ee650997c7 chore(release): archied v1.10.0 2026-08-22 19:28:07 +10:00
sam 6c1dbb90af chore(release): archied v1.9.11 2026-08-19 02:08:58 +10:00
sam d0d06e0632 chore(release): archied v1.9.10 2026-08-19 01:49:32 +10:00
sam a24f6fa8b0 chore(release): archied v1.9.9 archie v1.9.9 2026-08-18 09:58:42 +10:00
sam cea030261d chore(release): archied v1.9.8 archie v1.9.8 2026-08-17 00:18:24 +10:00
sam 9abc976330 chore(release): archied v1.9.7 archie v1.9.7 2026-08-17 00:05:23 +10:00
sam 1bb1d48ea0 chore(release): archied v1.9.6 archie v1.9.6 2026-08-17 00:00:09 +10:00
sam 14f28fbc02 chore(release): archied v1.9.5 archie v1.9.5 2026-08-16 03:14:59 +10:00
sam 43308c0fc9 chore(release): archied v1.9.4 archie v1.9.4 2026-08-15 23:17:43 +10:00
sam b2e5f69ea3 chore(release): archied v1.9.3 archie v1.9.3 2026-08-15 12:53:52 +10:00
sam 9257ec395e chore(release): archied v1.9.2 archie v1.9.2 2026-08-15 11:22:35 +10:00
sam 9c2e41c4da chore(release): archied v1.9.1 archie v1.9.1 2026-08-15 10:35:18 +10:00
sam e9a029e900 chore(release): archied v1.9.0 archie v1.9.0 2026-08-15 02:25:10 +10:00
sam ad93ffb9bb chore(release): archied v1.8.0 2026-08-15 01:44:00 +10:00
sam 6d5fdd72a3 chore(release): archied v1.7.0 archie v1.4.0 2026-08-10 02:13:39 +10:00
sam f544dd0978 feat(config): SIGHUP-triggered reload with requires-restart warnings
The daemon can now re-read its configuration on SIGHUP (or on a
future in-process trigger) and republish it through the Holder,
closing the first half of issue #348: 'config can change at runtime,
safely, and can't brick the daemon.'

Reload path:
- cmd/archied/reload.go: ReloadController re-runs loader.Resolve on
  the same paths main.go passed at startup (Resolve is pure -- no
  reload state added to the loader). apply is called only with a
  Document that passed validation; a failed reload records the error
  and its timestamp and leaves the running config untouched. That
  Set-not-called-on-error property is the safety core and is pinned
  by TestReloadValidationFailureDoesNotApply.
- SIGHUP listener in main.go runs reloadLoop(ctx, ch, controller, log);
  the loop is extracted as a testable seam (syscall.SIGHUP is Unix-only,
  fine given the Linux target).

PollInterval is genuinely reloadable now, not just re-read:
the three ticker sites (Run, per-identity goroutine, shared
maintenance loop) re-read the interval each tick and Reset the ticker
on change. A reloaded poll_interval takes effect on the next cycle.

Diff-and-warn so an operator never has to read the source to know
whether an edit took effect: changedNonReloadableFields compares the
old and new snapshots against an allowlist of re-read fields
(PollInterval, Repos, DiffCapLines, Budgets, Dispatch, and the
Containers sub-fields VolumeTTL + MaxConcurrency). Anything else that
changed logs Warn 'requires a restart'; a fully-applied reload logs
Info. The allowlist is deliberate: a field added to Config later
defaults to requires-restart, the safe direction.

NATS split-brain closed: containerEnv now hands containers the
endpoint the daemon's own client connected with at startup
(Daemon.ConnectedNATS, captured at construction) instead of the live
config, so a reloaded nats.url cannot point new containers at a
server the daemon is not publishing on. A nats change is therefore
classified requires-restart, and CLAUDE.md's 'hands its own nats.url
verbatim' note is updated to the meaning it now has (same today,
deliberately different after a reload).

Validation guard: poll_interval <= 0 is rejected in validate.go
beside the VolumeTTL guard. applyDefaults fills zero with 60s, so
this fires on an explicit negative -- which would panic
time.NewTicker/Reset at boot and, after the per-iteration reset,
on a SIGHUP mid-run.

Observability: config.ReloadStatus (last_error, last_error_at,
last_reload_at) is recorded by the controller and surfaced in
/api/config via Server.LastReload, so a stale running config is
visible in the dashboard, not just the logs. Rendering waits for the
UI step.

Recovery hatch: --no-config-overlay flag plus ARCHIE_SKIP_CONFIG_OVERLAY=1
(configuration.SkipOverlay), logged at startup. No overlay source
exists yet; the flag is the documented escape hatch the DB overlay
(step 3 of #348) will consult.

webui.Server.ConfigProvenance becomes atomic.Pointer so a reload can
swap it via SetProvenance independently of Cfg; the accepted skew
(new config alongside old provenance) is documented on the field.

Verified: task check clean; -race on daemon, webui, cmd/archied,
config, infrastructure/configuration.
2026-08-10 00:19:46 +10:00
sam 61b4b7b0cf refactor(store): replace legacy persistence with SQLite
Task and event persistence now uses a dedicated SQLite sidecar derived from the configured state prefix, matching the independently persisted conversation store. The configured path now means a state-path prefix rather than a database file so fresh SQLite state never attempts to interpret the previous storage format.

Remove the retired implementation and dependency completely, strengthen SQLite migrations and concurrency behavior, restore backend-neutral coverage, and align configuration, operational guidance, UI labels, and deployment documentation with the new storage and host-daemon topology.
2026-08-09 22:27:25 +10:00
sam 5d8a7a1bd0 chore(release): archied v1.6.0
deploy / gate (push) Failing after 23s
deploy / build-and-push (push) Skipped
2026-08-09 01:45:39 +10:00
sam df574af39a chore(release): archied v1.5.0 archie v1.3.0
deploy / gate (push) Failing after 25s
deploy / build-and-push (push) Skipped
2026-08-08 01:42:49 +10:00
sam ef8856872c chore(release): archied v1.4.1 2026-07-31 08:48:49 +10:00
sam e71fc92364 chore(release): archied v1.4.0 2026-07-31 08:46:23 +10:00
sam 059eee412c chore(release): archied v1.3.1 2026-07-31 03:47:42 +10:00
sam 272f61e166 chore(release): archied v1.3.0 2026-07-31 03:43:41 +10:00