Repository navigation
feat(mcp): occurrence_threshold, and the regenerated docs fixture (#2095) - #343
Merged
Merged
Conversation
The engine's diffEntityMaps has always taken it and the epic specifies occurrenceDeltas as "above a configurable threshold", but neither server exposed it, so the cloud lane had added it as a server-specific input. Shared now, with the default in ENTITY_MCP_LIMITS so neither side hardcodes 1. It filters occurrenceDeltas only. An entity added, removed, or changing its @id is a structural change and survives any setting. Also, from the cloud lane: the shared get_entity_graph description implied all six formats exist on every server. Theirs implements three and refuses the rest, so the description now says a refusal is a refusal and not a site with nothing to draw. Claude-Session: https://claude.ai/code/session_01T8w822GqnrviVMytnAsKFP Signed-off-by: Nik Cubrilovic <[email protected]>
…truction The committed "after" snapshot carried `pages: []` beside `pagesTotal: 60`, exported before the publish projection stopped clipping the report's own copy, so the test rebuilt the page index by inverting the nodes' page lists. That was lossy for the three nodes whose lists are capped at 50 with a morePages remainder, and it was a liberty the CLI never takes. Regenerated with the post-#333 CLI: 183 nodes and its own complete 60-page index. The reconstruction is gone. The "before" snapshot stays pre-v1 on purpose — it exercises the lenient read path on an artefact that actually shipped. Claude-Session: https://claude.ai/code/session_01T8w822GqnrviVMytnAsKFP Signed-off-by: Nik Cubrilovic <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two follow-ups to #342 that were agreed before it merged.
occurrence_thresholdoncompare_entitiesThe engine's
diffEntityMapshas always accepted it and the epic specifiesoccurrenceDeltasas "above a configurable threshold", but neither MCP server exposed it, so the cloud lane had it as a server-specific input with an explicit exception in their drift test. Now shared, with the default inENTITY_MCP_LIMITSso neither side hardcodes 1.It filters
occurrenceDeltasonly. An entity added, removed, or changing its@idis a structural change, not a change of degree, and survives any setting. The test asserts both halves of that.The CLI's own
squirrel entities --diffdoes not expose the flag; this is the MCP input only.The shared graph description implied formats a server may not have
From the cloud lane: their build implements json, jsonld and markdown, and refuses mermaid, dot and graphml. The shared sentence read as though all six exist everywhere, so an agent could take a refusal for a site with nothing to draw. It now says a refusal is a refusal.
The regenerated docs fixture
The committed "after" snapshot carried
pages: []besidepagesTotal: 60, exported before the publish projection stopped clipping the report's own copy, so the test rebuilt the page index by inverting the nodes' page lists. That was lossy for the three nodes whose lists are capped at 50 with amorePagesremainder, and it was a liberty the CLI never takes: the CLI reads whatever the document carries.Regenerated with the post-#333 CLI, it has 183 nodes and its own complete 60-page index, so the reconstruction is deleted. The "before" snapshot stays pre-v1 on purpose, because it exercises the lenient read path on an artefact that actually shipped.
29 tests in the entity MCP suite pass against the real fixture.
https://claude.ai/code/session_01T8w822GqnrviVMytnAsKFP