Sunda Naeem has submitted ChronoGraph, an autonomous breaking-change sentinel designed for microservice teams, as part of the Sanity Challenge Path One. The tool, hosted on Railway, allows developers to paste an API diff and receive an immediate assessment of which downstream services and squads will break. By leveraging multi-hop dependency traversal over a live Sanity dataset, the agent identifies potential impact zones before code is merged into the main branch.
Deterministic Analysis Meets LLM Reasoning
The architecture combines deterministic AST analysis with a Gemini-powered agent that independently queries Sanity Context MCP endpoints. This dual-layer approach ensures that the agent retrieves real content from a Knowledge Base containing OpenAPI specs, consumer changelogs, and on-call runbooks. When the live dataset and the documentation disagree on a field's contractβsuch as nullability, type, or deprecation statusβthe agent surfaces both claims side by side rather than arbitrarily picking one.
Resolving Contract Contradictions
ChronoGraph connects to two distinct Sanity Context MCP endpoints: one serving the live dataset in GROQ mode and another serving the Knowledge Base. The agent utilizes tools like docs_initial_context and docs_knowledge_base_search to retrieve relevant information before reasoning. Detected contradictions are rendered as cards displaying both sourced claims, allowing a human to rule on the discrepancy. This ruling is then written back to Sanity as a contractDecision document, ensuring future runs do not re-ask the same questions.
Key Takeaways
- The project uses Sanity Project ID
d7ujf5vwand theproductiondataset for its service/endpoint graph. - Knowledge Base content is seeded from specific markdown files, including
billing-openapi-v3.mdandrunbook-billing-oncall.md, which intentionally conflict with the live dataset to demonstrate contradiction detection. - An "Agent Trace" panel displays every tool call in real time, providing transparency into the agent's decision-making process.
The Bottom Line
This is a smart application of Sanity Context for devops: it doesn't just fetch data, it mediates truth between code and documentation. By writing human rulings back to the database, ChronoGraph turns a one-time check into a self-improving knowledge graph.