update_project_state
Analyze new memories and propose operations to update a project's consolidated state. The server validates invariants, applies changes, and computes a state hash for verification.
Instructions
Propose structured operations to update a project's consolidated state (Project Brain). The LLM analyzes new memories and proposes ops from the 29-op grammar (add_decision, set_metric, add_milestone, add_env_host, etc.). The server validates invariants, applies via deterministic builder, computes state_hash, and persists. This is the 'client consolidates, chain verifies' architecture. Use after reading get_project_state + list_memories_filtered to identify what changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Array of operations from the 29-op grammar. Each op has 'op' (type) + arguments. Use 'evidence_memory_ids' (array of memory IDs) instead of 'evidence' — the server resolves event_hashes automatically. The 7 add_env_*/set_env_status/verify_env/supersede_env ops maintain the `environment` section: where and how the owner works (hosts, services, repositories, operating rules). Store topology only — NEVER credentials, keys or passwords (the server rejects them). | |
| project | Yes | Project name, e.g. 'chainmemory' | |
| consolidated_until_event | No | Highest memory ID included in this consolidation (advances the watermark) |