vicTop-cw/fist-mbt/src/store does not have a README file
pub struct AgentRecord {
agent_id : String
agent_type : String
role : String
soldier : String
pid : Int
pubkey_fp : String
first_seen : String
last_seen : String
status : String
}fn AssistantReg::new(agent~ : String, mode~ : String, is_primary~ : Bool, registered_at~ : String, heartbeat_at~ : String, status~ : String) -> AssistantRegpub struct ExecutionRecord {
id : String
task_id : String
executor : String
model : String
tokens_in : Int
tokens_out : Int
cost : Double
duration_ms : Int
rate_limited : Bool
failure_reason : String
created_at : String
}pub struct LockAcquireOutcome {
granted : Bool
action : String
prev_agent : String
agent : String
ttl_until : String
violation_logged : Bool
} derive(Debug)fn LockAcquireOutcome::relabel(self : LockAcquireOutcome, action : String, granted : Bool) -> LockAcquireOutcomefn LockViolation::new(ts~ : String, agent~ : String, scope~ : String, reason~ : String, lock_id~ : String) -> LockViolationpub struct MemoryStore {
tasks : Map[String, Task]
specs : Map[String, SpecRecord]
default_ns : String
call_logs : Array[Json]
reservations : Map[String, (String, String, String)]
executors : Map[String, (String, String)]
file_locks : Map[String, FileLock]
lock_violations : Array[LockViolation]
assistant_reg : Map[String, AssistantReg]
circuit_breakers : Map[String, (String, Int, Int, Int, Int, Int, Int)]
saga_log : Map[String, Array[(Int, String, String, String, String)]]
saga_next_id : Int
challenges : Map[String, (String, Bool)]
}fn MemoryStore::executor_save(self : MemoryStore, name~ : String, abilities_json~ : String, created_at~ : String) -> Result[String, String]fn MemoryStore::rsv_set(self : MemoryStore, scope~ : String, agent~ : String, ttl_until~ : String, created_at~ : String) -> Result[String, String]fn MemoryStore::rsv_try_set(self : MemoryStore, scope~ : String, agent~ : String, ttl_until~ : String, created_at~ : String) -> Result[RsvOutcome, String]fn MemoryStore::update_spec_status(self : MemoryStore, id : String, status : String, content : String, updated_at : String) -> Result[Unit, String]fn MemoryStore::update_task_if_status(self : MemoryStore, task : Task, expected_status : String) -> Result[Unit, String]fn MemoryStore::write_call_log(self : MemoryStore, ts~ : String, tool~ : String, caller~ : String, ns~ : String, params_json~ : String, result_json~ : String, ok~ : Bool, runtime_ms~ : Int, seq~ : Int) -> Result[Unit, String]pub struct RsvOutcome {
reserved : Bool
action : String
prev_agent : String
agent : String
ttl_until : String
}fn SpecRecord::new(id~ : String, task_id~ : String, spec_type? : String, content? : String, status? : String, created_at? : String, updated_at? : String) -> SpecRecordfn SqliteStore::agents_acl_check(self : SqliteStore, agent_id~ : String, ns~ : String, write~ : Bool, current_pid~ : Int) -> Result[Unit, String]fn SqliteStore::agents_acl_ensure(self : SqliteStore, agent_id~ : String, ns~ : String, now~ : String) -> Result[Unit, String]fn SqliteStore::agents_acl_grant(self : SqliteStore, agent_id~ : String, ns~ : String, can_read~ : Bool, can_write~ : Bool, pid_bound~ : Bool, now~ : String, by~ : String) -> Result[Unit, String]fn SqliteStore::agents_heartbeat(self : SqliteStore, agent_id~ : String, agent_type~ : String, role~ : String, soldier~ : String, pid~ : Int, now~ : String) -> Result[Unit, String]fn SqliteStore::agents_register(self : SqliteStore, agent_id~ : String, agent_type~ : String, role~ : String, soldier~ : String, pubkey_fp~ : String, pid~ : Int, now~ : String) -> Result[Unit, String]fn SqliteStore::agents_set_pid(self : SqliteStore, agent_id~ : String, pid~ : Int) -> Result[Unit, String]fn SqliteStore::agents_set_pubkey(self : SqliteStore, agent_id~ : String, pubkey_fp~ : String) -> Result[Unit, String]fn SqliteStore::archive_task(self : SqliteStore, t : Task, archived_at~ : String) -> Result[Unit, String]fn SqliteStore::cb_get(self : SqliteStore, ns : String, circuit : String) -> (String, Int, Int, Int, Int, Int, Int)?fn SqliteStore::cb_save(self : SqliteStore, ns : String, circuit : String, state : String, failures : Int, window_secs : Int, threshold : Int, recovery_secs : Int, opened_at : Int, last_fail_ts : Int, updated_at : String) -> Result[Unit, String]fn SqliteStore::challenge_consume(self : SqliteStore, ns : String, agent_fp : String, nonce : String) -> Boolfn SqliteStore::challenge_issue(self : SqliteStore, ns : String, agent_fp : String, nonce : String, issued_at : String) -> Result[Unit, String]fn SqliteStore::evolve_upsert(self : SqliteStore, id~ : String, parent_id~ : String, goal~ : String, note~ : String, code~ : String, score~ : Double, parts_json~ : String, created_at~ : String) -> Result[Unit, String]fn SqliteStore::executor_save(self : SqliteStore, name~ : String, abilities_json~ : String, created_at~ : String) -> Result[String, String]fn SqliteStore::list_heartbeat_intervals(self : SqliteStore, task_id : String, limit? : Int) -> Array[Int]fn SqliteStore::list_saga_actions(self : SqliteStore, ns : String, root_task_id : String) -> Array[(Int, String, String, String, String)]fn SqliteStore::mark_saga_actions_done(self : SqliteStore, ns? : String, root_task_id~ : String, ids~ : Array[Int]) -> Result[Unit, String]fn SqliteStore::record_execution(self : SqliteStore, task_id~ : String, executor~ : String, model~ : String, tokens_in~ : Int, tokens_out~ : Int, cost~ : Double, duration_ms~ : Int, rate_limited~ : Bool, failure_reason~ : String, created_at~ : String) -> Result[Unit, String]fn SqliteStore::rsv_set(self : SqliteStore, scope~ : String, agent~ : String, ttl_until~ : String, created_at~ : String) -> Result[String, String]fn SqliteStore::rsv_try_set(self : SqliteStore, scope~ : String, agent~ : String, ttl_until~ : String, created_at~ : String) -> Result[RsvOutcome, String]fn SqliteStore::update_spec_status(self : SqliteStore, id : String, status : String, content : String, updated_at : String) -> Result[Unit, String]fn SqliteStore::update_task_if_status(self : SqliteStore, task : Task, expected_status : String) -> Result[Unit, String]fn SqliteStore::write_call_log(self : SqliteStore, ts~ : String, tool~ : String, caller~ : String, ns~ : String, params_json~ : String, result_json~ : String, ok~ : Bool, runtime_ms~ : Int, seq~ : Int) -> Result[Unit, String]fn SqliteStore::write_heartbeat(self : SqliteStore, agent_id~ : String, task_id~ : String, last_seen~ : String, status~ : String) -> Result[Unit, String]fn SqliteStore::write_heartbeat_interval(self : SqliteStore, task_id~ : String, interval_sec~ : Int, ts~ : String) -> Result[Unit, String]fn SqliteStore::write_saga_action(self : SqliteStore, ns? : String, root_task_id~ : String, step~ : String, task_id? : String, compensation~ : String, created_at~ : String) -> Result[Unit, String]fn StoreBackend::cb_get(self : StoreBackend, ns : String, circuit : String) -> (String, Int, Int, Int, Int, Int, Int)?fn StoreBackend::cb_save(self : StoreBackend, ns : String, circuit : String, state : String, failures : Int, window_secs : Int, threshold : Int, recovery_secs : Int, opened_at : Int, last_fail_ts : Int, updated_at : String) -> Result[Unit, String]fn StoreBackend::challenge_consume(self : StoreBackend, ns : String, agent_fp : String, nonce : String) -> Boolfn StoreBackend::challenge_issue(self : StoreBackend, ns : String, agent_fp : String, nonce : String, issued_at : String) -> Result[Unit, String]fn StoreBackend::challenge_pending_count(self : StoreBackend, ns : String, agent_fp : String) -> Intfn StoreBackend::executor_save(self : StoreBackend, name~ : String, abilities_json~ : String, created_at~ : String) -> Result[String, String]fn StoreBackend::list_all_heartbeats(self : StoreBackend) -> Array[(String, String, String, String)]fn StoreBackend::list_heartbeat_intervals(self : StoreBackend, task_id : String, limit? : Int) -> Array[Int]fn StoreBackend::list_saga_actions(self : StoreBackend, ns : String, root_task_id : String) -> Array[(Int, String, String, String, String)]fn StoreBackend::mark_saga_actions_done(self : StoreBackend, ns? : String, root_task_id~ : String, ids~ : Array[Int]) -> Result[Unit, String]fn StoreBackend::record_execution(self : StoreBackend, task_id~ : String, executor~ : String, model~ : String, tokens_in~ : Int, tokens_out~ : Int, cost~ : Double, duration_ms~ : Int, rate_limited~ : Bool, failure_reason~ : String, created_at~ : String) -> Result[Unit, String]fn StoreBackend::rsv_set(self : StoreBackend, scope~ : String, agent~ : String, ttl_until~ : String, created_at~ : String) -> Result[String, String]fn StoreBackend::rsv_try_set(self : StoreBackend, scope~ : String, agent~ : String, ttl_until~ : String, created_at~ : String) -> Result[RsvOutcome, String]fn StoreBackend::update_spec_status(self : StoreBackend, id : String, status : String, content : String, updated_at : String) -> Result[Unit, String]fn StoreBackend::update_task_if_status(self : StoreBackend, task : Task, expected_status : String) -> Result[Unit, String]fn StoreBackend::write_call_log(self : StoreBackend, ts~ : String, tool~ : String, caller~ : String, ns~ : String, params_json~ : String, result_json~ : String, ok~ : Bool, runtime_ms~ : Int, seq~ : Int) -> Result[Unit, String]fn StoreBackend::write_heartbeat(self : StoreBackend, agent_id~ : String, task_id~ : String, last_seen~ : String, status~ : String) -> Result[Unit, String]fn StoreBackend::write_heartbeat_interval(self : StoreBackend, task_id~ : String, interval_sec~ : Int, ts~ : String) -> Result[Unit, String]fn StoreBackend::write_saga_action(self : StoreBackend, ns? : String, root_task_id~ : String, step~ : String, task_id? : String, compensation~ : String, created_at~ : String) -> Result[Unit, String]pub struct StoreMigration {
reason : String
applied : Bool
from : String
to : String
legacy_tasks : Int
new_tasks : Int
moved_tasks : Int
backup : String
note : String
}fn assistant_claim_action(prev : AssistantReg?, agent : String, _now : String, cutoff : String) -> (Bool, String, String)fn bug462_unique_db(tag : String) -> Stringfn bug462_unique_dir(tag : String) -> Stringfn db_file_exists(path : String) -> Boolfn db_file_task_count(path : String) -> Intfn executions_table_sql() -> Stringfn migrate_legacy_store(legacy_dir : String, new_dir : String, ns : String, force? : Bool) -> StoreMigrationfn ns_misroute_not_found(task_id : String, ns : String, main_ns : String) -> Stringfn ns_routing_warning(ns : String, main_tasks : Int, store_tasks : Int) -> Stringfn rsv_action(prev : (String, String, String)?, agent : String, now : String) -> (Bool, String)fn store_migration_applies(reason : String) -> Boolfn store_migration_note(reason : String, legacy_path : String, new_path : String, legacy_tasks : Int, new_tasks : Int) -> Stringfn store_migration_reason(legacy_present : Bool, legacy_tasks : Int, new_present : Bool, new_tasks : Int, force : Bool) -> StringInstall
Download zipFIST commander task orchestration rewritten in pure MoonBit, exposed as an MCP server.