{"at":"2026-11-23T00:09:19.405Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:09:20.865Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T00:09:21.066Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:09:22.559Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Local context control for coding agents. Start a task with recall_relevant. Use read_source_file for a known workspace path, then locate_evidence to pin exact spans inside text you pass to it -- locate_evidence never reads the workspace itself, so obtain the text first. remember_fragment stores caller-supplied text, and optimize_context returns a token-bounded bundle from the indexed corpus. Use create_context_receipt when selection needs an audit trail, then recover_receipt_omission for omitted receipt chunks or retrieve_context for a CCR handle. Use checkpoint_state and resume_state across interruptions. verify_response estimates grounding against supplied evidence; it is not an external fact-check. record_test_result records a test that already ran. For cross-agent code review, confirm work_capabilities, then use work_claim, work_handoff, work_pending_handoffs, work_resume, work_record_review, and work_reviews. Review verdicts are agent statements, not correctness proofs. get_session_stats reports local counters and estimates.","protocolVersion":"2025-11-25","serverInfo":{"name":"entroly","version":"1.0.88"}}}}
{"at":"2026-11-23T00:09:22.559Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:09:22.559Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:09:22.561Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Store caller-supplied text in Entroly's local fragment index. Use this for transient text or tool output that is not already a workspace file; use read_source_file for a file and recall_relevant to search stored fragments. The context firewall may reject unsafe content. This writes local Entroly state and makes no network call.","inputSchema":{"properties":{"content":{"description":"Text to scan and store in the local fragment index.","title":"Content","type":"string"},"is_pinned":{"default":false,"description":"Prioritize the fragment within the bounded pinned reserve.","title":"Is Pinned","type":"boolean"},"source":{"default":"","description":"Optional provenance label such as file:utils.py or tool:pytest.","title":"Source","type":"string"},"token_count":{"default":0,"description":"Known token count; use 0 to let Entroly estimate it.","title":"Token Count","type":"integer"}},"required":["content"],"title":"remember_fragmentArguments","type":"object"},"name":"remember_fragment","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"remember_fragmentOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Select a token-budgeted context bundle from stored fragments for one task. Use this after fragments have been indexed. Unlike recall_relevant, it optimizes the whole bundle against token_budget; unlike read_source_file, it does not read a requested path. It updates local access statistics and makes no network call.","inputSchema":{"properties":{"query":{"default":"","description":"Task description used to score fragment relevance.","title":"Query","type":"string"},"token_budget":{"default":128000,"description":"Maximum estimated tokens in the selected context bundle.","title":"Token Budget","type":"integer"}},"title":"optimize_contextArguments","type":"object"},"name":"optimize_context","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"optimize_contextOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Search Entroly's stored fragment index for the best task matches. Use this for a ranked lookup when no token-bounded bundle is needed; use optimize_context to assemble a complete budgeted context. The default returns compact pointers, while full returns stored bodies. This reads local state and makes no network call.","inputSchema":{"properties":{"full":{"default":false,"description":"Return complete stored bodies instead of compact pointers.","title":"Full","type":"boolean"},"query":{"description":"Search terms derived from the current task.","title":"Query","type":"string"},"top_k":{"default":5,"description":"Maximum number of ranked fragments to return.","title":"Top K","type":"integer"}},"required":["query"],"title":"recall_relevantArguments","type":"object"},"name":"recall_relevant","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"recall_relevantOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Attach an already-observed test pass or failure to an optimization trace. Use only after a real test command ran; this tool does not run tests, inspect CI, or independently validate the claim. It appends a local evidence event and makes no network call.","inputSchema":{"properties":{"details":{"default":"","description":"Optional bounded summary of the observed test execution.","title":"Details","type":"string"},"passed":{"description":"True only when every test required by the named suite passed.","title":"Passed","type":"boolean"},"request_id":{"description":"Trace identifier returned by the relevant optimize_context call.","title":"Request Id","type":"string"},"suite":{"default":"","description":"Optional test-suite name such as pytest or cargo test.","title":"Suite","type":"string"}},"required":["request_id","passed"],"title":"record_test_resultArguments","type":"object"},"name":"record_test_result","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"record_test_resultOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Create an auditable context-selection receipt from caller-supplied documents. Use this when you need selected and omitted chunks, fingerprints, warnings, and recovery metadata. It does not read workspace files or call a model. recoverable=true writes a local content-addressed recovery bundle.","inputSchema":{"properties":{"chunk_tokens":{"default":360,"description":"Target size of each source chunk in estimated tokens.","title":"Chunk Tokens","type":"integer"},"documents_json":{"description":"JSON object, pairs, or objects that map source labels to document text.","title":"Documents Json","type":"string"},"overlap_tokens":{"default":32,"description":"Estimated tokens repeated between adjacent chunks.","title":"Overlap Tokens","type":"integer"},"query":{"description":"Task used to select relevant document chunks.","title":"Query","type":"string"},"recoverable":{"default":false,"description":"Persist omitted text locally for verified later recovery.","title":"Recoverable","type":"boolean"},"token_budget":{"default":8000,"description":"Maximum estimated tokens selected into the receipt.","title":"Token Budget","type":"integer"}},"required":["documents_json","query"],"title":"create_context_receiptArguments","type":"object"},"name":"create_context_receipt","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"create_context_receiptOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Recover omitted text from a recoverable Context Receipt and verify its stored hashes. Use this only with receipt JSON created using recoverable=true. Use retrieve_context for a CCR handle. This reads the local recovery store, does not modify source files, and makes no network call.","inputSchema":{"properties":{"chunk_id":{"default":"","description":"Specific omitted chunk to recover; empty recovers every omitted chunk.","title":"Chunk Id","type":"string"},"receipt_json":{"description":"Complete JSON returned by create_context_receipt.","title":"Receipt Json","type":"string"}},"required":["receipt_json"],"title":"recover_receipt_omissionArguments","type":"object"},"name":"recover_receipt_omission","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"recover_receipt_omissionOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Persist Entroly task state and explicit continuation metadata locally. Use before a planned handoff, restart, or context loss; use resume_state to restore it. This writes a local checkpoint, does not edit source files, and makes no network call.","inputSchema":{"properties":{"current_step":{"default":"","description":"Last completed step or next action for continuation.","title":"Current Step","type":"string"},"decisions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"Important decisions that a resumed agent must preserve.","title":"Decisions"},"modified_files":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"Workspace paths already changed during the task.","title":"Modified Files"},"project":{"default":"","description":"Optional project path or identifier used to scope recovery.","title":"Project","type":"string"},"task_description":{"default":"","description":"Concise description used to identify the checkpoint later.","title":"Task Description","type":"string"}},"title":"checkpoint_stateArguments","type":"object"},"name":"checkpoint_state","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"checkpoint_stateOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Restore a local Entroly checkpoint into the current engine. Use after a restart or context loss; use checkpoint_state to create checkpoints and recall_relevant for read-only fragment search. This changes in-memory Entroly state, does not edit source files, and makes no network call.","inputSchema":{"properties":{"project":{"default":"","description":"Optional project path or identifier used to narrow matching.","title":"Project","type":"string"},"query":{"default":"","description":"Optional task terms; empty selects the latest checkpoint.","title":"Query","type":"string"}},"title":"resume_stateArguments","type":"object"},"name":"resume_state","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"resume_stateOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Estimate whether an AI response is grounded in caller-supplied context using Entroly's local verification signals. Use after generation to identify claims requiring review. A pass is a risk estimate, not formal proof or external fact-checking. The tool is read-only and makes no model or network call.","inputSchema":{"properties":{"context":{"default":"","description":"Source evidence that was actually available to the AI.","title":"Context","type":"string"},"prompt":{"default":"","description":"Original user request used only to calibrate the local analysis.","title":"Prompt","type":"string"},"response":{"description":"AI-generated text whose claims should be checked.","title":"Response","type":"string"}},"required":["response"],"title":"verify_responseArguments","type":"object"},"name":"verify_response","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"verify_responseOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Locate exact passages and sentence offsets in caller-supplied text. Use this when wording may differ from the query but the returned evidence must remain extractive and auditable. The default lexical ranker is deterministic. ENTROLY_SEMANTIC_MODEL_PATH may name an existing local sentence-transformer directory; remote downloads are refused. Scores rank supplied spans and do not prove relevance, completeness, factual correctness, or task success. This may write an exact local recovery entry and makes no network call.","inputSchema":{"properties":{"calibration_id":{"default":"","description":"External calibration artifact identity for the score floor, if one exists.","title":"Calibration Id","type":"string"},"max_matches":{"default":5,"description":"Maximum number of exact source passages to return.","title":"Max Matches","type":"integer"},"min_score":{"default":-1.0,"description":"Optional score floor from 0 to 1; -1 disables it.","title":"Min Score","type":"number"},"passage_mode":{"default":"auto","description":"Source segmentation: auto, paragraph, or line.","title":"Passage Mode","type":"string"},"query":{"description":"Natural-language description of the evidence to locate.","title":"Query","type":"string"},"source_id":{"default":"mcp","description":"Provenance label copied into the receipt.","title":"Source Id","type":"string"},"text":{"description":"Caller-supplied source text whose exact spans may be returned.","title":"Text","type":"string"}},"required":["text","query"],"title":"locate_evidenceArguments","type":"object"},"name":"locate_evidence","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"locate_evidenceOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Check the active repository identity and local Work Graph review support. No model or network call.","inputSchema":{"properties":{"project":{"default":"","description":"Optional path within the configured repository root.","title":"Project","type":"string"}},"title":"work_capabilitiesArguments","type":"object"},"name":"work_capabilities","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"work_capabilitiesOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Inspect shared Work Graph state. First use may start local takeover and append repository evidence.","inputSchema":{"properties":{"now_ms":{"default":0,"description":"Optional time for lease status; zero uses the current time.","title":"Now Ms","type":"integer"},"project":{"default":"","description":"Optional path within the configured repository root.","title":"Project","type":"string"}},"title":"work_stateArguments","type":"object"},"name":"work_state","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"work_stateOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Record an explicit agent task and advisory scope lease in the local Work Graph.","inputSchema":{"properties":{"agent_id":{"description":"Caller-supplied agent identifier; not an identity attestation.","title":"Agent Id","type":"string"},"project":{"default":"","description":"Optional path within the configured repository root.","title":"Project","type":"string"},"scope_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"Advisory repository-relative paths in scope.","title":"Scope Paths"},"scope_symbols":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"Advisory code symbols in scope.","title":"Scope Symbols"},"session_id":{"default":"","description":"Optional caller session identifier.","title":"Session Id","type":"string"},"task_id":{"default":"","description":"Stable task identifier supplied by the caller.","title":"Task Id","type":"string"},"task_title":{"description":"Short title of the task being claimed.","title":"Task Title","type":"string"},"ttl_seconds":{"default":900.0,"description":"Lease duration in seconds.","title":"Ttl Seconds","type":"number"}},"required":["agent_id","task_title"],"title":"work_claimArguments","type":"object"},"name":"work_claim","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"work_claimOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Recover durable work evidence, refresh the local graph, and arm an acknowledgement gate.","inputSchema":{"properties":{"max_evidence":{"default":128,"description":"Maximum evidence references returned.","title":"Max Evidence","type":"integer"},"project":{"default":"","description":"Optional path within the configured repository root.","title":"Project","type":"string"},"to_agent":{"default":"","description":"Optional receiving agent for a no-handoff proof.","title":"To Agent","type":"string"},"workstream_id":{"default":"","description":"Workstream to recover; empty chooses resumable work.","title":"Workstream Id","type":"string"}},"title":"work_resumeArguments","type":"object"},"name":"work_resume","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"work_resumeOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Seal a graph-bound handoff and save a compact local inbox receipt for another agent.","inputSchema":{"properties":{"from_agent":{"description":"Caller-supplied writer identifier.","title":"From Agent","type":"string"},"project":{"default":"","description":"Optional path within the configured repository root.","title":"Project","type":"string"},"to_agent":{"description":"Caller-supplied reviewer identifier.","title":"To Agent","type":"string"},"workstream_id":{"description":"Existing workstream identifier from work_state.","title":"Workstream Id","type":"string"}},"required":["from_agent","to_agent","workstream_id"],"title":"work_handoffArguments","type":"object"},"name":"work_handoff","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"work_handoffOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Acknowledge the exact recovered state before claiming follow-up work.","inputSchema":{"properties":{"project":{"default":"","description":"Optional path within the configured repository root.","title":"Project","type":"string"},"token":{"description":"Token returned by work_resume.","title":"Token","type":"string"}},"required":["token"],"title":"work_acknowledge_recoveryArguments","type":"object"},"name":"work_acknowledge_recovery","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"work_acknowledge_recoveryOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Submit a caller-authored review verdict, findings, and observed checks against a verified handoff receipt. This writes a local review record after reading bounded files to bind their digests; it does not return source text or perform the review for the caller. The verdict is an agent statement, not a correctness proof.","inputSchema":{"properties":{"checks":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"description":"Optional observed check names and exit codes; caller statements only.","title":"Checks"},"findings":{"description":"Caller-supplied path, line, severity, and message records.","items":{"additionalProperties":true,"type":"object"},"title":"Findings","type":"array"},"handoff":{"additionalProperties":true,"description":"Exact receipt returned by work_handoff or work_pending_handoffs.","title":"Handoff","type":"object"},"project":{"default":"","description":"Optional path within the configured repository root.","title":"Project","type":"string"},"reviewer_id":{"description":"Reviewer identifier matching the handoff target; self asserted.","title":"Reviewer Id","type":"string"},"summary":{"description":"Short reviewer conclusion.","title":"Summary","type":"string"},"verdict":{"description":"approve, changes_requested, or comment.","title":"Verdict","type":"string"}},"required":["handoff","reviewer_id","verdict","findings","summary"],"title":"work_record_reviewArguments","type":"object"},"name":"work_record_review","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"work_record_reviewOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Read recorded review statements and whether their source state is current.","inputSchema":{"properties":{"project":{"default":"","description":"Optional path within the configured repository root.","title":"Project","type":"string"},"workstream_id":{"default":"","description":"Optional workstream filter.","title":"Workstream Id","type":"string"}},"title":"work_reviewsArguments","type":"object"},"name":"work_reviews","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"work_reviewsOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"List local handoffs for an agent and verify each against current repository state.","inputSchema":{"properties":{"project":{"default":"","description":"Optional path within the configured repository root.","title":"Project","type":"string"},"to_agent":{"description":"Reviewer identifier used by the writer.","title":"To Agent","type":"string"}},"required":["to_agent"],"title":"work_pending_handoffsArguments","type":"object"},"name":"work_pending_handoffs","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"work_pending_handoffsOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Recover exact content from a CCR retrieval handle or materialized source reference. Use this when compressed context includes a ccr: handle. Use read_source_file for a current workspace file and recover_receipt_omission for an omitted receipt chunk. This is a read-only local lookup and makes no network call.","inputSchema":{"properties":{"source_or_handle":{"default":"","description":"CCR handle or previously materialized source path; empty lists available entries.","title":"Source Or Handle","type":"string"}},"title":"entroly_retrieveArguments","type":"object"},"name":"retrieve_context","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"entroly_retrieveOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Read current Entroly session counters, selection statistics, checkpoint status, and locally estimated token or cost fields. Use for diagnostics after work has run. Estimates are not provider billing evidence. This is read-only and makes no network call.","inputSchema":{"properties":{},"title":"get_statsArguments","type":"object"},"name":"get_session_stats","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"get_statsOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true},"description":"Read one current workspace file at an exact or relevance-based resolution. Use this for a known path; use recall_relevant to search stored fragments and retrieve_context for a CCR handle. resolution=full or a line range returns exact source text. This is a read-only inspection tool: it cannot submit findings or a review verdict. It reads only within the configured project root and makes no network call.","inputSchema":{"properties":{"budget":{"default":1000,"description":"Target output size in estimated tokens for automatic resolution.","title":"Budget","type":"integer"},"file_path":{"description":"Workspace-relative path constrained to the configured project root.","title":"File Path","type":"string"},"fresh":{"default":false,"description":"Return content again instead of a same-session repeat-delivery handle.","title":"Fresh","type":"boolean"},"line_end":{"default":0,"description":"Last line of an exact inclusive range; pair with line_start.","title":"Line End","type":"integer"},"line_start":{"default":0,"description":"First line of an exact inclusive range; pair with line_end.","title":"Line Start","type":"integer"},"previous_source":{"default":"","description":"Required baseline text when resolution is diff.","title":"Previous Source","type":"string"},"query":{"default":"","description":"Optional task terms used for automatic relevance-based resolution.","title":"Query","type":"string"},"read_scope":{"default":"","description":"Optional cache-isolation key for agents sharing one MCP connection.","title":"Read Scope","type":"string"},"resolution":{"default":"","description":"One of full, medium, diff, structure, low, or empty for automatic selection.","title":"Resolution","type":"string"}},"required":["file_path"],"title":"smart_readArguments","type":"object"},"name":"read_source_file","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"smart_readOutput","type":"object"}}]}}}
