Watch
1
0
Fork
You've already forked souveraine
0
Commit graph

9 commits

Author SHA1 Message Date
Fimeg
c489aa4bb3 feat: conversation persistence, input expansion, overlay UX
- ConversationStore (JSONL + JSON metadata) wired through Backend trait,
  SessionManager, and TUI (/new, /resume, /convos commands)
- Dynamic input box: grows with content, caps at 40% terminal height,
  scrolls internally. Shift+Enter / Ctrl+J for newlines.
- Slash command autocomplete popup (filters live as you type /)
- Conversation picker overlay for /resume (modal, arrow select, Enter switch)
- Splash bloom animation, color_support module, system prompt builder
- Fixed 8 pre-existing test failures (95/95 pass)
- Archived superseded task docs, consolidated planning references
2026-05-11 16:05:43 -04:00
Fimeg
832d80a1ff chore: consolidate documentation, archive superseded planning docs
The repo had accumulated 20 root-level .md files (multiple architecture
versions, master spec, opus implementation guide, status docs from May 5)
and 35+ docs/ files mixing canonical references with stale planning notes.
Recent commits had moved the project well past the state those docs
described.

Changes:
  - Move 19 pre-rebuild root docs to docs/archive/ (architecture v1/v2.1/
    v2.2, master spec, opus guide, phases, status, README pitch). Pre-
    served because they show the architectural conversation; not
    authoritative anymore.
  - Move 17 stale docs/ files to docs/archive/ (alignment report, May 6
    handoff, interface planning trio, tool-system design rounds,
    subagent investigation, sea-consciousness analysis, sexy-ui, tui
    enhancement guides, sensorium questions).
  - Move 34 superseded task scopes to docs/tasks/archive/ (scope-1/2/3
    landed, tool-system phases 1-4 superseded, all 10 tui-component
    tasks completed, n1-four-fold / aster-rebuild / n25-four-elements
    folded into scope-3/4 and N+1 LLM pass, port-compaction superseded
    by in-session-compaction-implementation).
  - Delete 5 .bak files (ASTER_ARCHITECTURE, CONSCIOUSNESS_CYCLE,
    energy-topology, scope-3-n1-consciousness x2).
  - Delete docs/FIMEG_REFERENCE.md (byte-identical duplicate of
    reference/Fimeg.md; the NOTE TO OPUS header belongs in reference/).
  - Delete 3 .txt session captures (harnesstime, massive,
    "souveraine updates") and souveraine.log; add log to .gitignore.
  - Delete orphan src/core/persona/mod.rs (~220 LOC referencing the
    ~/.pi/unified/ paths from the TypeScript precursor; never exported
    in core/mod.rs; the persona-router-completion task survives so the
    goal isn't lost).
  - Rewrite README.md to reflect the actual current state instead of
    the May 5 pitch.
  - Rewrite docs/INDEX.md as a navigable map of the canonical set plus
    a pointer at the archive.

Active state after this commit:
  - root: README.md, Cargo.toml/lock, souveraine.toml(.example), src/,
    docs/, saf/, reference/, examples/, tauri/, web/, target/, .gitignore.
  - docs/: 14 canonical docs (THE_QUESTION, CONTEXT_CONSTITUTION,
    SENSORIUM_ARCHITECTURE, ASTER_ARCHITECTURE, CONSCIOUSNESS_CYCLE,
    DECISIONS, MEMORY_BLOCKS_DECISION, CRON_API_AUTH, FEDERATION_SKETCH,
    ARCHITECTURE_v3, HANDOFF_NEXT, SCOPED_WORK_PLAN, PROJECT_STATE_ANALYSIS,
    INDEX) + archive/ (36 files).
  - docs/tasks/: 15 active scopes + archive/ (34 files).
  - cargo build: 0 errors, 145 pre-existing warnings (unchanged).
2026-05-10 19:00:49 -04:00
Fimeg
4d0eb048d5 feat: implement compaction system with pragmatic balance architecture 2026-05-10 13:15:24 -04:00
Fimeg
9a9a31916c feat: subconscious agent identity architecture - first-class separation
- AgentType enum (Primary, Subconscious, Subagent) with AgentIdentity
- Directory routing: agents/{id}/, subconscious-agents/{id}-sub/, subagents/{parent}/{id}/
- Auto-create subconscious agents with own memory, persona, ledger, inbox
- Ledger lives in subconscious agent space (not primary)
- TUI: CockpitPane and BuddyPanel for consciousness visibility
- Aster tool loop: full tool access with 5 rounds, uncapped output
- Config: max_tokens Option for uncapped subconscious output

Builds clean, 0 errors.
2026-05-10 11:20:20 -04:00
Fimeg
8f2d2e7227 feat: N+1 LLM pass - Aster replaces heuristic detect_items with real Bifrost analysis 2026-05-10 08:47:56 -04:00
Fimeg
7da881ad8a feat: sensorium architecture — 8 sensors, subagent runner, TUI component system
Sensorium (src/core/tools/):
- defs.rs: Tool trait, ToolContext (resolve_path, is_memory_path), ToolError with 7 constructors
- read/write/edit: memory boundary with force override, line ranges, replace_all
- bash: stateful (Arc<Mutex<BashState>>), background tasks, timeout
- glob/grep/list_dir: gitignore respect, context lines, memory boundary
- mod.rs: Sensorium registry + backward compat wrappers
- subagent.rs: fork-of-self tool, dual-state framing, no hard depth guard
- agent.rs: Agent(Sam) summoning stub

Dual-state N+1:
- ConsciousnessEngine::on_response_for_agent() — runs heuristic detector on subagent response
- Observations flow back to parent agent's inbox
- Signaled limits: SubagentConfig (max_depth, max_tool_rounds=50, warning thresholds 0.8/0.95)

Architecture docs:
- SENSORIUM_ARCHITECTURE.md — full sensorium vision with nervous system scaffold
- DECISIONS.md — settled architectural decisions
- ASTER_ARCHITECTURE.md / CONSCIOUSNESS_CYCLE.md — reframe appendices
- ALIGNMENT_REPORT.md — doc-to-code alignment audit
- Scope tasks 1-4, 4 issues

TUI:
- component.rs — component system trait + event + scene
- 10 tui-component tasks (completed)
- 4 tui-xxx tasks for next iteration (presence panel, cockpit, dashboard, ambient)
- app.rs splash — vertical breathing room (30% from top)

Config:
- SubagentConfig in config.rs
- ToolContext enrichment (agent_id, subagent_runner, subagent_depth)
- Memory module context-aware overloads
2026-05-09 20:58:37 -04:00
Fimeg
ae0968bf44 feat: wire tools into LocalBackend turn loop
- Added max_tool_rounds (configurable per-agent) to LlmConfig
- Rewrote run_turn() with multi-round tool-calling loop
  (max 10 rounds by default, 0 disables tools)
- Converts core ToolDefinitions → bifrost ToolDefinitions
- Streams tool execution status to TUI via BackendEvent::Token
- Continues consciousness processing (surfacing, reflection, archivist)
  after tool loop completes
- Fixed git2::Config Send issue in memory/mod.rs (scoped block)

Closes: docs/tasks/tool-wiring.md
2026-05-08 09:15:51 -04:00
Fimeg
bc7316c411 fix: resolve compilation errors in ModelRouter + Bifrost integration
- Fixed cli/commands.rs config path resolution (removed non-existent get_config_path())
- Removed .await from ConsciousnessConfig::load() (method is synchronous)
- Fixed command routing in main.rs (Commands::Model vs Commands::Models)
- Removed dead run_models() function
- Dereferenced json/verbose bools in command handler
2026-05-07 15:49:58 -04:00
Fimeg
d64a6e9794 feat: WIP - Implement companion buddy system for Souveraine TUI
- Added src/ui/buddy.rs with CompanionSprite, BuddyState, and draw functions
- Integrated buddy into app.rs for welcome screen and dashboard
- Added agent selection via 'a' key on welcome screen
- Buddy shows agent name, mood, energy, health, and subconscious status
- WIP: Needs full agent alias creation/removal flow
2026-05-07 02:31:44 -04:00