Skip to content

catalog: sort the keys of the hand-written entries (AGENT-1642) - #7

Merged
mikaelmorvan merged 5 commits into
mainfrom
claude/AGENT-1642-catalog
Nov 2, 2026
Merged

mikaelmorvan merged 5 commits into
mainfrom
claude/AGENT-1642-catalog

Conversation

@mikaelmorvan

@mikaelmorvan mikaelmorvan commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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).

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>
@mikaelmorvan

Copy link
Copy Markdown
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.

@mikaelmorvan
mikaelmorvan merged commit 1678d27 into main Nov 2, 2026
1 check passed
@mikaelmorvan
mikaelmorvan deleted the claude/AGENT-1642-catalog branch November 2, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants