Repository navigation
catalog: sort the keys of the hand-written entries (AGENT-1642) - #7
Merged
Merged
Conversation
catalog.json is the public index a One, an agent or an assistant uses to find a Module before writing one: for each Module of modules.json a description in French and English, capabilities, requirements (runtimes, language model use, MCP connectors, other Modules, extra credentials), price (free for all today), maturity (preview below 1.0) and the two fingerprints a One checks at import, manifest_sha256 and tree_sha256. The tree fingerprint is computed exactly as chatserver's ComputeModuleDirectoryHash does and is tested against a digest that function produced on a fixture; the digests of four real Modules were compared with it as well. It is generated by scripts/catalog.py from the manifests and from hand-written catalog/<module directory>.yaml files (JSON content, like module.yaml; kept outside the Module directories so that the fingerprint the One computes is unchanged). scripts/catalog.py --check runs in CI next to the inventory check and refuses a stale file, an unknown or missing entry, and any URL, e-mail, IP address, secret shape or internal identifier in the texts, since the repository is public. modules.json v1 is unchanged. README, AGENTS.md and two guides no longer say the repository is private. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…T-1642) A change of whitespace or key order in catalog/<module directory>.yaml left catalog.json identical, so --check did not see it. The entries now have one text form; --check refuses any other spelling and plain catalog.py rewrites them, which can change their form but never their content. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Moving a field in an entry kept the file valid and catalog.json identical. The canonical form now sorts keys, so --check sees any reordering and catalog.py rewrites the entries into that form. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…(AGENT-1642) The CI runs catalog.py --check right before check.py. Importing scripts/inventory.py wrote scripts/__pycache__, which check.py refuses as a non-distributable file, so the job failed on the first pull request. The import now disables bytecode, and a test runs both commands without PYTHONDONTWRITEBYTECODE and looks for any .pyc. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nce (AGENT-1642) Reading the entries and catalog.json as text turned CRLF into LF before the comparison, so --check accepted them. They are now compared and written as bytes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Author
|
Accord de fusion de Mikael (AGENT-1410) : « oui pour la fusion des PR sur modules » (2026-11-02, reçu par la session local_ef6245a7-6103-4be1-9805-07a8514a20bb) ; fusion armée au 2e460a2. |
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.
Relecture adverse (modules) : codex (openai) au 2e460a2, 1 constat(s) dont 1 bloquant(s), 1 résolu(s) [review-receipt repo=modules head=2e460a2e297b34b89d77115a6e5b4b313a54e43f reviewer=codex family=openai authors=anthropic open-blocking=0]
Suivi Plane : AGENT-1642 (work item 461a17b5-c040-4923-b86c-738f88d57c8e).
Fusion après accord de Mikael (modules, AGENT-1410) : retenue demandée : la fusion sur le dépôt public attend l accord relayé : l accord de Mikael couvre les PR, pas leur fusion ; aucune liste touchée. Soumise au 2e460a2 ; pas d'auto-merge ; relecture adverse obligatoire ; l'accord se consigne avec sa citation exacte (task work:approve-merge).