AGENTS.md
Guidance for coding agents working on LMSSEP Neuro-Symbolic Reasoner MCP Server. This server models task-oriented reasoning as explicit symbolic state plus neural-language encoding and decoding.
Project overview
The server registers a multi-step Neuro-Symbolic Reasoner toolchain: nsr_initialize_session, nsr_encode, nsr_update_state, nsr_reasoning_engine, nsr_planner, nsr_execute, and nsr_decode. Use it for workflows that need typed state, policy enforcement, audit trails, and deterministic next-action selection.
Setup commands
bashcd <project-root>/genesis/LMSSEP/neuro_symbolic_reasoner
pip install -r requirements.txt
python main.py
Configure runtime through environment variables and configs/config.py. Generated session state belongs under output directories, not source.
Tool workflow
- Initialize with a natural-language task description and structured task definition.
- Encode user input into symbolic state.
- Update state with extracted parameters, constraints, and facts.
- Run deterministic symbolic reasoning to compute the next action.
- Plan executable steps from that action.
- Execute or simulate execution, then update state.
- Decode the final symbolic state into a natural-language response.
Code map
src/tools/neuro_symbolic_reasoner.pyowns state management, reasoning history, tool registration, planning instructions, execution simulation, decoding, and session file output.configs/config.pydefines server metadata and output directories.src/utils/session_persistence.pysupports persisted sessions.
Testing and verification
Use a synthetic task definition with intents, required parameters, policies, and tools. Verify invalid JSON is rejected, required parameters are carried into state, policy rules drive the same action for the same state, planner output references available tools, and decode stays faithful to state.
Safety and output hygiene
The reasoning engine should be deterministic, but generated plans and simulated execution still need review. Never publish task definitions containing private API names, customer data, credentials, or real endpoint details. Redact generated session JSON before sharing.
Commit and PR rules
State schema, policy logic, and output file changes need explicit compatibility notes. Include one complete sanitized lifecycle example when changing any registered tool contract.