Repository navigation
Fix registry and MCP safety gaps - #50
Closed
cursor[bot] wants to merge 1 commit into
Closed
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
Co-authored-by: Andre Schu <[email protected]>
1 of 3 tasks
Owner
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.
Bug and impact
semantic_aliasesandmythic_framingrecords.registry_fetch/quarantine layout could expose, purge, or receive writes outside the quarantine root.Root cause
Recent registry/quarantine hardening added new layout and projection paths, but several failure boundaries still trusted first-found local files, followed symlinked layout directories, or parsed unbounded MCP strings before applying existing limits. Package metadata also lacked the MCP
<2compatibility bound.Fix
semantic_aliasesandmythic_framingin generated projections.SCP_MAX_INPUT_CHARSbefore MCP/core JSON parsing and raw contribution stripping.mcp>=1.2.0,<2.0.0.Validation
python3 -m compileall -q src/scp && git diff --check && PYTHONPATH=src python3 -m pytest tests/test_registry_fetch_r4.py tests/test_registry_load_order_r5.py tests/test_pattern_record_r1.py tests/test_security_regressions.py tests/test_appsec_antigen_mcp_gates.py tests/test_registry_contribute_r6.py -q-> 88 passed.PYTHONPATH=src python3 -m pytest -q-> 367 passed / 3 skipped / 2 failed; failures are pre-existing vendored contract hash mismatches forscp_mcp_v1andscp_mcp_v1.1.