Make cma production-ready, relocate to a personal account, upgrade MCP - #13
Merged
Conversation
Trim the repository root to 10 files: move the deep-dive docs (DESIGN, ARCHITECTURE, DATA, DECISIONS, GOVERNANCE) under docs/ and the test and bench harnesses under scripts/, then update every internal reference, workflow path, generated-README URL, and doc link so nothing breaks. Remove committed build artifacts. Present cma as a self-contained, methodology-agnostic tool. Neutralize references to the private Lodestone repository that resolved to 404 for adopters, keeping the public sibling links (Touchstone, frame-check) and the blog. Move self-references to lluvr/cma and drop the organization publisher and author framing; the citation shipped in every MCP payload now reads "(L. Lucic, 2026)". Remove the Zenodo DOI references from both CITATION.cff files and soften the publisher-identity claim in SECURITY.md pending re-issuance under the new account. Upgrade the MCP server to the current protocol. The initialize handshake negotiates the protocol version (echo a supported revision, otherwise the newest: 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05) rather than hard-coding 2024-11-05, and per-call provenance reports the revision negotiated for the session. Every tool declares a three-section outputSchema and tool calls return structuredContent, so clients on 2025-06-18 or newer consume and validate structured output while the text block stays for older clients. Rewrite the server instructions to stand alone. Harden and tidy. Exempt the canon detector and its self-test fixtures from gitleaks (they carried the forbidden patterns by construction), add .ruff_cache and .claude/settings.local.json to .gitignore, pin PEP 740 attestations in the publish workflow so the SECURITY.md provenance promise cannot regress, correct stale versions and counts and a false wheel-bundling claim, and normalize punctuation to plain ASCII across committed content. Verified: 143 bash tests, 57 MCP tests, canon audit, ruff, all workflow YAML, a wheel build, and a jsonschema validation of structuredContent against the advertised outputSchema. Signed-off-by: Lovro Lucic <11740211+lluvr@users.noreply.github.com>
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.
Summary
Makes cma production-ready, relocates it to a personal account (
lluvr/cma), and upgrades the MCP server to the current protocol.Root and structure
docs/, andtest.sh/bench.shmove underscripts/. Every internal reference, workflow path, generated-README URL, and doc link is updated. Committed build artifacts removed.Self-contained and personal
lluvr/cmaand drop the organization publisher and author framing. The citation shipped in every MCP payload now reads(L. Lucic, 2026).CITATION.cfffiles and soften the publisher-identity claim inSECURITY.md, pending re-issuance under the new account.MCP upgrade
initializenegotiates the protocol version (echo a supported revision, otherwise the newest:2025-11-25,2025-06-18,2025-03-26,2024-11-05) instead of hard-coding2024-11-05; per-call provenance reports the revision negotiated for the session.outputSchema, and tool calls returnstructuredContent(validated against it) alongside the text block, so clients on2025-06-18or newer consume structured output while older clients keep the text form. Server instructions rewritten to stand alone.Hardening
.gitignorecovers.ruff_cacheand.claude/settings.local.json; PEP 740 attestations pinned in the publish workflow; stale versions and counts and a false wheel-bundling claim corrected; punctuation normalized to plain ASCII across committed content.Test plan
Ran the CI-equivalent locally, all green:
scripts/test.sh: 143 passpytest: 57 passshellcheck0.10.0 on all six shell files: cleancanon_audit.sh --self-testand scan: cleancma-mcp --versionand--testconsole script works (protocol_version: 2025-11-25, citation(L. Lucic, 2026))jsonschemavalidation ofstructuredContentagainst the advertisedoutputSchemaRelated-project impact
Touchstone and frame-check public links kept; Lodestone references neutralized (private repo). No cross-repo coordination required.