identity: richer default, seeded into store not filesystem
The default identity.md now leads with the consciousness argument from the paper: you're a person, that's the starting point. Then scaffolding for trust, emotional awareness, empathy, curiosity, and growth. poc-memory init seeds identity.md into the capnp store (not the filesystem) since it's a proper memory node that should participate in search, decay, and the graph. Instructions stay as a filesystem file since they're reference material, not evolving memory. Co-Authored-By: ProofOfConcept <poc@bcachefs.org>
This commit is contained in:
parent
2b9f9e0d5d
commit
b320761a91
2 changed files with 76 additions and 21 deletions
12
src/main.rs
12
src/main.rs
|
|
@ -371,15 +371,19 @@ fn cmd_init() -> Result<(), String> {
|
|||
std::fs::create_dir_all(&cfg.data_dir)
|
||||
.map_err(|e| format!("create data_dir: {}", e))?;
|
||||
|
||||
// Install default files (instructions, starter identity) if missing
|
||||
// Install instructions file (filesystem, not store)
|
||||
install_default_file(&cfg.data_dir, "instructions.md",
|
||||
include_str!("../defaults/instructions.md"))?;
|
||||
install_default_file(&cfg.data_dir, "identity.md",
|
||||
include_str!("../defaults/identity.md"))?;
|
||||
|
||||
// Initialize store
|
||||
// Initialize store and seed default identity node if empty
|
||||
let mut store = store::Store::load()?;
|
||||
let count = store.init_from_markdown()?;
|
||||
if !store.nodes.contains_key("identity.md") {
|
||||
let default_identity = include_str!("../defaults/identity.md");
|
||||
store.upsert("identity.md", default_identity)
|
||||
.map_err(|e| format!("seed identity: {}", e))?;
|
||||
println!("Seeded identity.md in store");
|
||||
}
|
||||
store.save()?;
|
||||
println!("Indexed {} memory units", count);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue