{"at":"2026-11-23T05:00:59.653Z","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-23T05:01:00.568Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"rebuild-dossier","version":"0.2.15"}},"cacheScope":"private","capabilities":{"logging":{},"tools":{"listChanged":true}},"resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T05:01:00.568Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:01:00.570Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"rebuild-dossier","version":"0.2.15"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Ingest repo"},"description":"Parse package.json, tailwind/vite config, route files, and existing tests via static analysis. No LLM call.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"interactive":{"description":"When true and 0 routes are found at a monorepo-shaped path, ask via elicitation which candidate directory is the real app, then ingest that instead","type":"boolean"},"path":{"description":"Absolute path to the repo to ingest","type":"string"}},"required":["path"],"type":"object"},"name":"ingest_repo","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"buildConfig":{"items":{"type":"string"},"type":"array"},"existingTests":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"monorepoHint":{"additionalProperties":false,"properties":{"candidates":{"items":{"type":"string"},"type":"array"},"message":{"type":"string"}},"required":["message","candidates"],"type":"object"},"openCases":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"resolvedMonorepoChoice":{"type":"string"},"routes":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"savedTo":{"type":"string"},"signals":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"unsupportedStackNote":{"type":"string"}},"required":["routes","existingTests","signals","buildConfig","openCases","savedTo"],"type":"object"},"title":"Ingest repo"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Crawl site"},"description":"Playwright headless crawl of reachable routes. Emits periodic progress notifications.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"maxPages":{"description":"Optional cap on how many reachable pages to visit. Unset means no limit.","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"repoPath":{"description":"Repo path whose .dossier/ this crawl evidence should be saved under","type":"string"},"url":{"description":"Base URL to crawl","type":"string"}},"required":["url","repoPath"],"type":"object"},"name":"crawl_site","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"openCases":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"routesVisited":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"routesWithConsoleErrors":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"savedTo":{"type":"string"}},"required":["routesVisited","routesWithConsoleErrors","openCases","savedTo"],"type":"object"},"title":"Crawl site"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Flag known bug"},"description":"Record a known bug. Always overrides auto-resolve for any case it matches, regardless of other evidence.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"description":{"description":"Free-text description of a known bug, stored verbatim","type":"string"},"repoPath":{"description":"Repo path whose .dossier/ this known bug belongs to","type":"string"}},"required":["repoPath","description"],"type":"object"},"name":"flag_known_bug","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"bug":{"additionalProperties":false,"properties":{"description":{"type":"string"},"flaggedAt":{"type":"string"},"id":{"type":"string"},"matchHints":{"items":{"type":"string"},"type":"array"}},"required":["id","description","matchHints","flaggedAt"],"type":"object"},"openCases":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["bug","openCases"],"type":"object"},"title":"Flag known bug"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Get case queue"},"description":"Return unresolved ambiguity cases from reconciliation.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"interactive":{"description":"When true, walk open cases via MCP elicitation instead of just listing them","type":"boolean"},"repoPath":{"description":"Repo path whose .dossier/ case queue to read","type":"string"}},"required":["repoPath"],"type":"object"},"name":"get_case_queue","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"cases":{"items":{"additionalProperties":false,"properties":{"autoResolution":{"additionalProperties":false,"properties":{"decision":{"enum":["intentional","bug"],"type":"string"},"reason":{"type":"string"}},"required":["decision","reason"],"type":"object"},"conflict":{"additionalProperties":false,"properties":{"detail":{"type":"string"},"kind":{"enum":["known_bug_vs_intentional_evidence","signal_disagreement"],"type":"string"}},"required":["kind","detail"],"type":"object"},"humanDecision":{"additionalProperties":false,"properties":{"decidedAt":{"type":"string"},"decision":{"type":"string"},"note":{"type":"string"},"via":{"enum":["elicitation","resolve_case_tool"],"type":"string"}},"required":["decision","decidedAt","via"],"type":"object"},"id":{"type":"string"},"matchedKnownBugs":{"items":{"type":"string"},"type":"array"},"relatedCaseIds":{"items":{"type":"string"},"type":"array"},"signals":{"items":{"additionalProperties":false,"properties":{"affirmativeIntent":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"type":"number"},"kind":{"enum":["comment","docstring","todo","fixme"],"type":"string"},"locator":{"additionalProperties":false,"properties":{"endLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"file":{"type":"string"},"startLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["file","startLine","endLine"],"type":"object"},"text":{"type":"string"}},"required":["kind","text","locator","confidence"],"type":"object"},"claim":{"type":"string"},"detectedAt":{"type":"string"},"evidenceText":{"type":"string"},"id":{"type":"string"},"locator":{"anyOf":[{"additionalProperties":false,"properties":{"endLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"file":{"type":"string"},"startLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["file","startLine","endLine"],"type":"object"},{"additionalProperties":false,"properties":{"method":{"type":"string"},"path":{"type":"string"}},"required":["path"],"type":"object"}]},"source":{"enum":["ingest","crawl","known_bug"],"type":"string"},"topicKey":{"type":"string"}},"required":["id","source","locator","topicKey","claim","evidenceText","detectedAt"],"type":"object"},"type":"array"},"status":{"enum":["auto_resolved","open","resolved_by_human"],"type":"string"},"topicKey":{"type":"string"}},"required":["id","topicKey","signals","matchedKnownBugs","status"],"type":"object"},"type":"array"},"open":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["open","cases"],"type":"object"},"title":"Get case queue"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Resolve case"},"description":"Resolve one open case with a human decision. Always available, no elicitation capability required.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"decision":{"description":"Free-text decision, e.g. \"intentional\" or \"bug\" — stored verbatim, not a fixed enum","type":"string"},"id":{"description":"The case id to resolve, as returned by get_case_queue (e.g. \"case:...\")","type":"string"},"note":{"description":"Optional free-text note explaining the decision","type":"string"},"repoPath":{"description":"Repo path whose .dossier/ this case belongs to","type":"string"}},"required":["repoPath","id","decision"],"type":"object"},"name":"resolve_case","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"autoResolution":{"additionalProperties":false,"properties":{"decision":{"enum":["intentional","bug"],"type":"string"},"reason":{"type":"string"}},"required":["decision","reason"],"type":"object"},"conflict":{"additionalProperties":false,"properties":{"detail":{"type":"string"},"kind":{"enum":["known_bug_vs_intentional_evidence","signal_disagreement"],"type":"string"}},"required":["kind","detail"],"type":"object"},"humanDecision":{"additionalProperties":false,"properties":{"decidedAt":{"type":"string"},"decision":{"type":"string"},"note":{"type":"string"},"via":{"enum":["elicitation","resolve_case_tool"],"type":"string"}},"required":["decision","decidedAt","via"],"type":"object"},"id":{"type":"string"},"matchedKnownBugs":{"items":{"type":"string"},"type":"array"},"relatedCaseIds":{"items":{"type":"string"},"type":"array"},"signals":{"items":{"additionalProperties":false,"properties":{"affirmativeIntent":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"type":"number"},"kind":{"enum":["comment","docstring","todo","fixme"],"type":"string"},"locator":{"additionalProperties":false,"properties":{"endLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"file":{"type":"string"},"startLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["file","startLine","endLine"],"type":"object"},"text":{"type":"string"}},"required":["kind","text","locator","confidence"],"type":"object"},"claim":{"type":"string"},"detectedAt":{"type":"string"},"evidenceText":{"type":"string"},"id":{"type":"string"},"locator":{"anyOf":[{"additionalProperties":false,"properties":{"endLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"file":{"type":"string"},"startLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["file","startLine","endLine"],"type":"object"},{"additionalProperties":false,"properties":{"method":{"type":"string"},"path":{"type":"string"}},"required":["path"],"type":"object"}]},"source":{"enum":["ingest","crawl","known_bug"],"type":"string"},"topicKey":{"type":"string"}},"required":["id","source","locator","topicKey","claim","evidenceText","detectedAt"],"type":"object"},"type":"array"},"status":{"enum":["auto_resolved","open","resolved_by_human"],"type":"string"},"topicKey":{"type":"string"}},"required":["id","topicKey","signals","matchedKnownBugs","status"],"type":"object"},"title":"Resolve case"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Generate spec"},"description":"Write CLAUDE.md, .claude/, spec/, tests/, and kickoff-prompt.txt to <repo>-rebuild/. Only callable once the case queue is empty. Optional: if the target is a Next.js app with page routes, set GROQ_API_KEY and REBUILD_DOSSIER_ENABLE_VISION_CLASSIFICATION=1 before calling this tool to enable vision-assisted page-content classification (sends each captured page's screenshot and source code to Groq to judge static vs. dynamic content more accurately than plain regex matching) — ask the user for a Groq API key if they want more reliable generated page tests and this isn't already configured. Off by default; nothing changes if unset. Optional: pass authStorageStatePath to reach auth-gated pages during capture — see that field's own description for how to produce it.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"authStorageStatePath":{"description":"Optional path to a Playwright storageState JSON file (cookies/localStorage from an already-authenticated session against the target app) — load it once with `npx playwright open <url> --save-storage=state.json` after logging in by hand, or any equivalent one-time export. When set, page capture uses it to reach auth-gated pages instead of only ever seeing a login screen; this tool never logs in itself or handles credentials. The file is copied into the rebuild output (tests/fixtures/auth-storage-state.json, gitignored) so generated page tests can reach the same pages when run standalone.","type":"string"},"repoPath":{"description":"Repo path that was ingested; output is written to a sibling <repoPath>-rebuild/ directory","type":"string"}},"required":["repoPath"],"type":"object"},"name":"generate_spec","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"apiTestNote":{"type":"string"},"capturedPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"mutationsChecked":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"noVisibleTestsNote":{"type":"string"},"outputDir":{"type":"string"},"pageCaptureNote":{"type":"string"},"pageVisionFallbackNote":{"type":"string"},"pageVisionFallbacks":{"items":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"routeFile":{"type":"string"}},"required":["routeFile","reason"],"type":"object"},"type":"array"},"skippedPages":{"items":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"routeFile":{"type":"string"}},"required":["routeFile","reason"],"type":"object"},"type":"array"},"unrunnableNote":{"type":"string"},"unrunnableReasons":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"unrunnableTests":{"items":{"type":"string"},"type":"array"},"visionClassificationEnabled":{"type":"boolean"},"visionClassificationNote":{"type":"string"},"warning":{"type":"string"},"weakTests":{"items":{"type":"string"},"type":"array"}},"required":["outputDir","mutationsChecked","weakTests","unrunnableTests","capturedPages","skippedPages","visionClassificationEnabled"],"type":"object"},"title":"Generate spec"}],"ttlMs":0}}}
{"at":"2026-11-23T05:01:00.721Z","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-23T05:01:01.651Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"logging":{},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"rebuild-dossier","version":"0.2.15"}}}}
{"at":"2026-11-23T05:01:01.651Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:01:01.651Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:01:01.653Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Ingest repo"},"description":"Parse package.json, tailwind/vite config, route files, and existing tests via static analysis. No LLM call.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"interactive":{"description":"When true and 0 routes are found at a monorepo-shaped path, ask via elicitation which candidate directory is the real app, then ingest that instead","type":"boolean"},"path":{"description":"Absolute path to the repo to ingest","type":"string"}},"required":["path"],"type":"object"},"name":"ingest_repo","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"buildConfig":{"items":{"type":"string"},"type":"array"},"existingTests":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"monorepoHint":{"additionalProperties":false,"properties":{"candidates":{"items":{"type":"string"},"type":"array"},"message":{"type":"string"}},"required":["message","candidates"],"type":"object"},"openCases":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"resolvedMonorepoChoice":{"type":"string"},"routes":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"savedTo":{"type":"string"},"signals":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"unsupportedStackNote":{"type":"string"}},"required":["routes","existingTests","signals","buildConfig","openCases","savedTo"],"type":"object"},"title":"Ingest repo"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Crawl site"},"description":"Playwright headless crawl of reachable routes. Emits periodic progress notifications.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"maxPages":{"description":"Optional cap on how many reachable pages to visit. Unset means no limit.","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"repoPath":{"description":"Repo path whose .dossier/ this crawl evidence should be saved under","type":"string"},"url":{"description":"Base URL to crawl","type":"string"}},"required":["url","repoPath"],"type":"object"},"name":"crawl_site","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"openCases":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"routesVisited":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"routesWithConsoleErrors":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"savedTo":{"type":"string"}},"required":["routesVisited","routesWithConsoleErrors","openCases","savedTo"],"type":"object"},"title":"Crawl site"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Flag known bug"},"description":"Record a known bug. Always overrides auto-resolve for any case it matches, regardless of other evidence.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"description":{"description":"Free-text description of a known bug, stored verbatim","type":"string"},"repoPath":{"description":"Repo path whose .dossier/ this known bug belongs to","type":"string"}},"required":["repoPath","description"],"type":"object"},"name":"flag_known_bug","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"bug":{"additionalProperties":false,"properties":{"description":{"type":"string"},"flaggedAt":{"type":"string"},"id":{"type":"string"},"matchHints":{"items":{"type":"string"},"type":"array"}},"required":["id","description","matchHints","flaggedAt"],"type":"object"},"openCases":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["bug","openCases"],"type":"object"},"title":"Flag known bug"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false,"title":"Get case queue"},"description":"Return unresolved ambiguity cases from reconciliation.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"interactive":{"description":"When true, walk open cases via MCP elicitation instead of just listing them","type":"boolean"},"repoPath":{"description":"Repo path whose .dossier/ case queue to read","type":"string"}},"required":["repoPath"],"type":"object"},"name":"get_case_queue","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"cases":{"items":{"additionalProperties":false,"properties":{"autoResolution":{"additionalProperties":false,"properties":{"decision":{"enum":["intentional","bug"],"type":"string"},"reason":{"type":"string"}},"required":["decision","reason"],"type":"object"},"conflict":{"additionalProperties":false,"properties":{"detail":{"type":"string"},"kind":{"enum":["known_bug_vs_intentional_evidence","signal_disagreement"],"type":"string"}},"required":["kind","detail"],"type":"object"},"humanDecision":{"additionalProperties":false,"properties":{"decidedAt":{"type":"string"},"decision":{"type":"string"},"note":{"type":"string"},"via":{"enum":["elicitation","resolve_case_tool"],"type":"string"}},"required":["decision","decidedAt","via"],"type":"object"},"id":{"type":"string"},"matchedKnownBugs":{"items":{"type":"string"},"type":"array"},"relatedCaseIds":{"items":{"type":"string"},"type":"array"},"signals":{"items":{"additionalProperties":false,"properties":{"affirmativeIntent":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"type":"number"},"kind":{"enum":["comment","docstring","todo","fixme"],"type":"string"},"locator":{"additionalProperties":false,"properties":{"endLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"file":{"type":"string"},"startLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["file","startLine","endLine"],"type":"object"},"text":{"type":"string"}},"required":["kind","text","locator","confidence"],"type":"object"},"claim":{"type":"string"},"detectedAt":{"type":"string"},"evidenceText":{"type":"string"},"id":{"type":"string"},"locator":{"anyOf":[{"additionalProperties":false,"properties":{"endLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"file":{"type":"string"},"startLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["file","startLine","endLine"],"type":"object"},{"additionalProperties":false,"properties":{"method":{"type":"string"},"path":{"type":"string"}},"required":["path"],"type":"object"}]},"source":{"enum":["ingest","crawl","known_bug"],"type":"string"},"topicKey":{"type":"string"}},"required":["id","source","locator","topicKey","claim","evidenceText","detectedAt"],"type":"object"},"type":"array"},"status":{"enum":["auto_resolved","open","resolved_by_human"],"type":"string"},"topicKey":{"type":"string"}},"required":["id","topicKey","signals","matchedKnownBugs","status"],"type":"object"},"type":"array"},"open":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["open","cases"],"type":"object"},"title":"Get case queue"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Resolve case"},"description":"Resolve one open case with a human decision. Always available, no elicitation capability required.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"decision":{"description":"Free-text decision, e.g. \"intentional\" or \"bug\" — stored verbatim, not a fixed enum","type":"string"},"id":{"description":"The case id to resolve, as returned by get_case_queue (e.g. \"case:...\")","type":"string"},"note":{"description":"Optional free-text note explaining the decision","type":"string"},"repoPath":{"description":"Repo path whose .dossier/ this case belongs to","type":"string"}},"required":["repoPath","id","decision"],"type":"object"},"name":"resolve_case","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"autoResolution":{"additionalProperties":false,"properties":{"decision":{"enum":["intentional","bug"],"type":"string"},"reason":{"type":"string"}},"required":["decision","reason"],"type":"object"},"conflict":{"additionalProperties":false,"properties":{"detail":{"type":"string"},"kind":{"enum":["known_bug_vs_intentional_evidence","signal_disagreement"],"type":"string"}},"required":["kind","detail"],"type":"object"},"humanDecision":{"additionalProperties":false,"properties":{"decidedAt":{"type":"string"},"decision":{"type":"string"},"note":{"type":"string"},"via":{"enum":["elicitation","resolve_case_tool"],"type":"string"}},"required":["decision","decidedAt","via"],"type":"object"},"id":{"type":"string"},"matchedKnownBugs":{"items":{"type":"string"},"type":"array"},"relatedCaseIds":{"items":{"type":"string"},"type":"array"},"signals":{"items":{"additionalProperties":false,"properties":{"affirmativeIntent":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"type":"number"},"kind":{"enum":["comment","docstring","todo","fixme"],"type":"string"},"locator":{"additionalProperties":false,"properties":{"endLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"file":{"type":"string"},"startLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["file","startLine","endLine"],"type":"object"},"text":{"type":"string"}},"required":["kind","text","locator","confidence"],"type":"object"},"claim":{"type":"string"},"detectedAt":{"type":"string"},"evidenceText":{"type":"string"},"id":{"type":"string"},"locator":{"anyOf":[{"additionalProperties":false,"properties":{"endLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"file":{"type":"string"},"startLine":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["file","startLine","endLine"],"type":"object"},{"additionalProperties":false,"properties":{"method":{"type":"string"},"path":{"type":"string"}},"required":["path"],"type":"object"}]},"source":{"enum":["ingest","crawl","known_bug"],"type":"string"},"topicKey":{"type":"string"}},"required":["id","source","locator","topicKey","claim","evidenceText","detectedAt"],"type":"object"},"type":"array"},"status":{"enum":["auto_resolved","open","resolved_by_human"],"type":"string"},"topicKey":{"type":"string"}},"required":["id","topicKey","signals","matchedKnownBugs","status"],"type":"object"},"title":"Resolve case"},{"annotations":{"destructiveHint":true,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Generate spec"},"description":"Write CLAUDE.md, .claude/, spec/, tests/, and kickoff-prompt.txt to <repo>-rebuild/. Only callable once the case queue is empty. Optional: if the target is a Next.js app with page routes, set GROQ_API_KEY and REBUILD_DOSSIER_ENABLE_VISION_CLASSIFICATION=1 before calling this tool to enable vision-assisted page-content classification (sends each captured page's screenshot and source code to Groq to judge static vs. dynamic content more accurately than plain regex matching) — ask the user for a Groq API key if they want more reliable generated page tests and this isn't already configured. Off by default; nothing changes if unset. Optional: pass authStorageStatePath to reach auth-gated pages during capture — see that field's own description for how to produce it.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"authStorageStatePath":{"description":"Optional path to a Playwright storageState JSON file (cookies/localStorage from an already-authenticated session against the target app) — load it once with `npx playwright open <url> --save-storage=state.json` after logging in by hand, or any equivalent one-time export. When set, page capture uses it to reach auth-gated pages instead of only ever seeing a login screen; this tool never logs in itself or handles credentials. The file is copied into the rebuild output (tests/fixtures/auth-storage-state.json, gitignored) so generated page tests can reach the same pages when run standalone.","type":"string"},"repoPath":{"description":"Repo path that was ingested; output is written to a sibling <repoPath>-rebuild/ directory","type":"string"}},"required":["repoPath"],"type":"object"},"name":"generate_spec","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"apiTestNote":{"type":"string"},"capturedPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"mutationsChecked":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"noVisibleTestsNote":{"type":"string"},"outputDir":{"type":"string"},"pageCaptureNote":{"type":"string"},"pageVisionFallbackNote":{"type":"string"},"pageVisionFallbacks":{"items":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"routeFile":{"type":"string"}},"required":["routeFile","reason"],"type":"object"},"type":"array"},"skippedPages":{"items":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"routeFile":{"type":"string"}},"required":["routeFile","reason"],"type":"object"},"type":"array"},"unrunnableNote":{"type":"string"},"unrunnableReasons":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"unrunnableTests":{"items":{"type":"string"},"type":"array"},"visionClassificationEnabled":{"type":"boolean"},"visionClassificationNote":{"type":"string"},"warning":{"type":"string"},"weakTests":{"items":{"type":"string"},"type":"array"}},"required":["outputDir","mutationsChecked","weakTests","unrunnableTests","capturedPages","skippedPages","visionClassificationEnabled"],"type":"object"},"title":"Generate spec"}]}}}
