M7.2: share the loop's parts
Shared parts, not a shared scheduler (agreed): nisse-review will have its own small scheduler; a common one waits until two exist to compare. - nisse_core.loop.driver: the driver run, moved; the agent names its waiting tools per run (nisse-dev's are WAITING_TOOLS), and execution goes to any Executor (ToolOutcome moves with it). - nisse_core.loop.tools: the tool helper and the tools any agent offers (notes, memory, memory_done, ask_expert); nisse_core.loop.expert. - nisse_core.knowledge.handlers: Knowledge, the vault and memory as control tools, the index and prompt text, out of LoopAgent. - nisse_core.config: file reading, references, people, tuning sections of the agent's own, LLM numbers, the vault. - New core tests: a driver run with a non-workspace executor and the agent's own waiting set; Knowledge alone; the shared config pieces. Docs: the Development Plan marks M7.2 done; Architecture Part L and the nisse-core README name the new parts. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J5Utyfzw7gF7UhjRDEtjTk
This commit is contained in:
1 parent
90afc4f8dd
commit
f32ccf9881
34 files changed
+899
-485
No files matched your search
@@ -136,9 +136,10 @@ Everything in this part is used by every agent. In code it is the `nisse_core`
|
||||
package: the transcript (L7) and its renderers, the LLM client and model catalog
|
||||
(L9), context fitting and per-role views (L6), the state store and reconciliation
|
||||
(L8), transports (L5), SSH execution (L13), the vault and memory (L10, L6.4),
|
||||
logging and secrets loading (L12), and the Gitea client (L1). An agent extends
|
||||
the store with its own tables, roles and views; the loop is still `nisse-dev`'s
|
||||
until a second agent shares it.
|
||||
logging and secrets loading (L12), the Gitea client (L1), shared configuration,
|
||||
and the parts of a loop (L2): the driver run, the common control tools,
|
||||
`ask_expert`, and the vault and memory as tools. An agent extends the store with
|
||||
its own tables, roles and views, and keeps its own scheduler.
|
||||
|
||||
### L1. The work model
|
||||
|
||||
|
||||
@@ -582,9 +582,23 @@ says so).
|
||||
architecture section (`models`, `log`, `state`, `knowledge`, `conversation`,
|
||||
`execution`, `authority`), as a pure move ahead of M7.2.
|
||||
|
||||
**M7.2 Share the loop.** *Needs discussion.* What of `nisse_dev.loop` and
|
||||
`config` is any agent's moves to `nisse-core`, shaped by what `nisse-review`
|
||||
needs; `nisse-dev` runs on it unchanged.
|
||||
**M7.2 Share the loop.** *Done.* Shared parts, not a shared scheduler: each
|
||||
agent keeps its own (nisse-review's is small and different), and a common one
|
||||
waits until two exist to compare. Moved, unchanged in behaviour:
|
||||
|
||||
- `nisse_core.loop.driver`: the driver run. The agent names its waiting tools
|
||||
per run, and execution goes to any `Executor` (nisse-dev's `Workspace` is
|
||||
one).
|
||||
- `nisse_core.loop.tools`: the control-tool helper and the tools any agent
|
||||
offers (notes, memory, `memory_done`, `ask_expert`); `nisse_core.loop.expert`.
|
||||
- `nisse_core.knowledge.handlers`: `Knowledge`, the vault and memory as
|
||||
control tools, the memory index and the prompt text; the agent frames the
|
||||
memory pass.
|
||||
- `nisse_core.config`: reading the file, references, people, tuning sections
|
||||
of the agent's own, the LLM's numbers, the vault.
|
||||
- Stays in `nisse-dev` (decided with the operator): the scheduler, items,
|
||||
milestones, preflight, the go-ahead reader, its fast-path rules, the
|
||||
classifier (until `nisse-ops`), delegation, profiles and projects.
|
||||
|
||||
**M7.3 `nisse-review`'s first slice.** *Needs discussion.* The duty and a work item
|
||||
per ready PR (R1), read-only tools bound to the item's repository (R3), a first
|
||||
|
||||
Reference in new issue
Block a user