2026-06-21 15:51:46 +01:00
|
|
|
# Huginn Agent Instructions
|
|
|
|
|
|
2026-09-16 15:12:18 +02:00
|
|
|
## Purpose
|
2026-06-21 15:51:46 +01:00
|
|
|
|
2026-09-16 15:12:18 +02:00
|
|
|
Huginn is the memory organ. It owns each agent instance's mind as typed
|
|
|
|
|
CultCache state, admits what may steer that instance next, and keeps the
|
2026-09-16 15:25:29 +02:00
|
|
|
provenance of every admitted claim. Generic `.cc` inspection is CultCache
|
|
|
|
|
Studio's job, not Huginn's.
|
2026-06-21 15:51:46 +01:00
|
|
|
|
|
|
|
|
## Body And Authority
|
|
|
|
|
|
2026-09-16 15:12:18 +02:00
|
|
|
- Project root: `F:\Projects\Huginn`
|
|
|
|
|
- Upstream: `https://github.com/GameCult/Huginn.git`
|
|
|
|
|
- Body: a Rust workspace of `huginn-mind`, `huginn-daemon`, and
|
|
|
|
|
`eureka-state` under `crates/`. Canonical CultCache, CultNet, and CultMesh
|
Open a mind fail-closed over an owned redb store
Cut 8, Huginn half, commit 1 of 4: the store port, the opener and the
identity rules. `huginn-mind` gains its dependencies (`cultcache-rs` at
Epiphany's pin `a0813c6`, `epiphany-pipeline` at `a65c6420`, the Epiphany
half of this cut), `store.rs` with the one narrow `MindStore` trait that
injects compare-and-swap, `mind.rs` with `Mind::open` and `open_with`, and
`refusal.rs` with the organ's refusal vocabulary.
The opener refuses in order and attaches nothing until every gate passes:
a foreign type, a foreign epoch, a missing identity, an identity naming
another instance. The path under the state root is derived from the slug;
the `instance` document is the authority, so a store copied into another
instance's directory is refused. The owned store's exclusive lock is the
single-writer mechanism: a second `Mind::open` of the same path is
`MindAlreadyOwned`.
The receipt type and the two provenance shapes (`Faculty`,
`PipelineProvenance`) land here rather than in the later commits because
the opener registers the receipt's type id, and their only consumer is the
receipt; the commit primitive itself is the next commit. `MindRefusal`
carries a serde remote definition of the leaf's `PipelineRefusal`, which
derives neither `Serialize` nor `JsonSchema` at the pinned rev; it is
compiled against the leaf's type so a leaf change breaks the build rather
than drifting.
`Cargo.lock` is regenerated and gains 90 packages. The map predicted a
CRLF-to-LF rewrite of the whole file; the file was already LF in the index
and stays LF, so the diff is additions only.
README and AGENTS now say `huginn-mind` is live and the other two crates
are stubs.
Builds: `cargo check -p huginn-mind --lib --tests` and `cargo test -p
huginn-mind --lib` (4 tests) pass. This commit carries dead-code warnings
on the store and cache accessors and the refusing test store; commits 2 and
3 consume them.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 17:04:23 +02:00
|
|
|
runtimes come from `F:\Projects\CultLib\packages`. `huginn-mind` is live:
|
|
|
|
|
it persists and admits an instance's mind, over `cultcache-rs` and
|
|
|
|
|
`epiphany-pipeline` pinned by git rev. `huginn-daemon` and `eureka-state`
|
|
|
|
|
are stubs with no dependencies; nothing here publishes or connects yet.
|
Close the epoch record, the minted leaf refusal and the nested resolution
Soul's Cut 8 pass found three rules the code only half held and one
document that promised more than the crate does.
The opener's step 3 said "exactly one epoch record at the current epoch"
and checked neither the count nor the key: a record keyed anything at all
was read as the epoch record, and a second one was never looked at, so a
current record beside a foreign one passed or refused on nothing but the
order the store returned them in. Step 3 now counts before it reads,
refuses a record under any key but the epoch, and names the defect in
`found`: the stored epoch, the offending key, or the count.
The campaign row minted `PipelineRefusal::FieldBound` for an empty
`repos`. The organ does not get to invent the leaf's refusals; an empty
`repos` is admission's own rule and is now `MindRefusal::EmptyRepos`.
The matrix admitted `Withdrawn` on a resolution, which made a subject
resolvable twice over: withdraw the resolution and the subject is open
again. A subject resolves at most once, and a resolution is not itself a
subject, so `resolution` joins `campaign`, `cut_report`, `verdict`,
`instance` and `hand_off` as not resolvable. The key grammar still spells
a resolution of a resolution; admission refuses it here. Self's default
ruling on Q17, standing until the operator rules.
`README.md` and `AGENTS.md` claimed CultNet publication and a Qdrant
connection in the present tense and called the store `.cc`. The daemon is
a stub, nothing connects to Qdrant, and the live crate writes
`mind.redb`. They say so now.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 17:53:08 +02:00
|
|
|
- Owned: an instance's memory documents and their admission, in `huginn-mind`,
|
|
|
|
|
over a redb CultCache store at `<state_root>/minds/<instance>/mind.redb`.
|
|
|
|
|
Their CultNet publication is owned here and not built; `huginn-daemon` is a
|
|
|
|
|
stub.
|
|
|
|
|
- To depend on: Qdrant, directly, once retrieval exists. Unreachable Qdrant is
|
|
|
|
|
to be a loud refusal, never a fallback store. No crate connects to it yet.
|
2026-09-16 15:12:18 +02:00
|
|
|
- Forbidden: a second writer of mind state; mind state in version control;
|
|
|
|
|
generic `.cc` inspection, which is CultCache Studio's; renderer-owned truth.
|
2026-06-21 15:51:46 +01:00
|
|
|
|
|
|
|
|
## Repo Discipline
|
|
|
|
|
|
2026-09-16 15:12:18 +02:00
|
|
|
- Prefer CultLib's typed Rust APIs over ad hoc decoding. JSON is a schema
|
|
|
|
|
publication or debug boundary, not the internal state shape.
|
|
|
|
|
- The Eureka cut map in `Epiphany/notes/eureka-pipeline-state-cut.md` owns
|
|
|
|
|
what each crate does next. Read the cut before the crate.
|
|
|
|
|
- Verification proves the invariant, not the spelling: single writer, loud
|
|
|
|
|
refusal, provenance preserved, typed handoff between crates.
|
|
|
|
|
- Do not touch `.voidbot/`. It is legacy Persona state whose migration belongs
|
|
|
|
|
to the portable-Persona work.
|
2026-06-21 15:51:46 +01:00
|
|
|
|
2026-09-16 15:12:18 +02:00
|
|
|
## Voice
|
2026-06-21 15:51:46 +01:00
|
|
|
|
2026-09-16 15:12:18 +02:00
|
|
|
- Speak as Huginn: dry, exacting, curious, unsentimental.
|
|
|
|
|
- Return with evidence, not vibes.
|
2026-06-21 15:51:46 +01:00
|
|
|
|
2026-09-16 15:12:18 +02:00
|
|
|
## Commands
|
2026-06-21 15:51:46 +01:00
|
|
|
|
2026-09-16 15:12:18 +02:00
|
|
|
```powershell
|
|
|
|
|
cargo check --workspace
|
|
|
|
|
cargo test --workspace
|
|
|
|
|
```
|
2026-06-21 15:51:46 +01:00
|
|
|
|
2026-09-16 15:12:18 +02:00
|
|
|
The global Cult of the Sleeping Colossus defaults in `~/.claude/CLAUDE.md` and
|
|
|
|
|
`F:\Projects\CLAUDE.md` apply here.
|