feat(curator): engine family contract, registry, and runtime (archie-core-rfp, archie-core-89x)
internal/curator is a conforming engine family per the strict plugin engine rule: typed CuratorEngine contract (Lifecycle + domain ops), owning Registry (registration, discovery, start/health/stop with failure isolation, reverse-order shutdown, ctx-bounded stop), and a narrow typed Registrar — each curator receives a capability-filtered view of the host at Bind, never the daemon. Runtime: one loop per curator on an injectable clock (fake-clock testable), best-effort wake nudges with the trigger decision kept in Check (a dropped nudge only delays to the next check-in, never corrupts accounting), per-pass timeout and a max-concurrent-passes slot so curator bursts cannot starve chat turns, per-pass panic recovery, and bounded shutdown even when a pass ignores cancellation. curator_run / curator_action / curator_error ride the in-process event bus so activity stays attributable. Wired in cmd/archied/main.go (constructed beside memory, Start after daemon startup, shutdown ordered before memory/LLM teardown) and exposed as daemon.Daemon.Curators.
This commit is contained in:
1 parent
0ddc43081e
commit
4ece064026
11 files changed
+2054
No files matched your search
@@ -17,6 +17,7 @@ import (
|
||||
"github.com/samcharles93/archie-core/internal/agentexec"
|
||||
"github.com/samcharles93/archie-core/internal/config"
|
||||
"github.com/samcharles93/archie-core/internal/container"
|
||||
"github.com/samcharles93/archie-core/internal/curator"
|
||||
"github.com/samcharles93/archie-core/internal/domain/workintake"
|
||||
"github.com/samcharles93/archie-core/internal/eventbus"
|
||||
"github.com/samcharles93/archie-core/internal/events"
|
||||
@@ -92,6 +93,10 @@ type Daemon struct {
|
||||
// composition root (cmd/archied) to wfeval.Discover; nil disables
|
||||
// discovery.
|
||||
CustomStages func(dir string) ([]workflow.Stage, error)
|
||||
// Curators is the curator engine family registry (epic archie-core-yp9).
|
||||
// The runtime loop (archie-core-89x) and reference curators (i7i, gs8)
|
||||
// are driven through it; nil when the family is not composed.
|
||||
Curators *curator.Registry
|
||||
// Identities holds per-identity runner state for multi-identity mode.
|
||||
// When non-empty, Run() starts one goroutine per identity instead of
|
||||
// using the single-identity Forge/Trees/Cfg.Repos path.
|
||||
|
||||
Reference in new issue
Block a user