Knowledge ledger: entry shape, decay, and propagation #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The plan
The knowledge ledger is the hive mind's memory: what a Commander knows, with provenance. Every entry is one thing a layer knows — what happened, where, when, who perceived it, how sure they are, and the path it travelled. The ledger's rules decide what stealth means in practice: a silent kill leaves no entry, a found body creates one, and a stale last-seen position must not let the AI cheat by remembering the player forever.
Current state
addons/daisy/src/knowledge.gddefinesDaisyKnowledgeEntrywithwhat,where,when,who_perceived,confidence, andpropagation_path.DaisyCommander.knowledge_ledgeris an append-only array;receive_knowledgeappends,on_body_foundwrites aunit_lostentry with path[finder, commander], andunion_knowledge()on the Director concatenates Commanders' ledgers on demand.apply_decayexists as a documented no-op — the decay rules are undecided, and nothing prunes the ledger yet.What changes
Settle the entry shape, the decay and staleness rules, and the propagation rules. The work, in order:
apply_decayper the settled rule and add a ledger prune pass. Decide when pruning runs — on a tick, on read, or on write — and make sure pruning never deletes theunit_lostfact of a found body while the alert it caused is still live.perceive_sighthands the entry to the Commander directly; the report mechanic is new work: define what a report is mechanically (a timed action? a message with travel time?), what channels exist, and what interrupts one.What done looks like
apply_decayimplements the settled rules, the ledger prunes on the settled schedule, reports are interruptible actions with named channels, corroboration and contradiction behave per the merge rule, and a test proves each rule. The design doc's knowledge section is updated to match.Open questions
unit_lostentry ever decay, or is a lost unit a permanent fact?