Skip to content

Recreate MSDMD as a native-first metadata skill - #102

Merged
erinepshovel-code merged 3 commits into
mainfrom
msdmd-native-metadata-20260915
Sep 15, 2026
Merged

erinepshovel-code merged 3 commits into
mainfrom
msdmd-native-metadata-20260915

Conversation

@erinepshovel-code

@erinepshovel-code erinepshovel-code commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Requested change

Recreate MSDMD to consume existing code and tooling metadata without requiring equivalent MSDMD blocks. User subsequently authorized repairing reviews and merging after clean tests.

Delivered

  • Native-first foundation and open-ended catalogue of 34 convention families with 20 future native-reader acceptance cases.
  • Source-scoped ownership, provenance, typed values, conflicts, explicit reader support and information-based coverage; stable supplemental syntax and source CONTRACTS / test CHECKS ownership preserved.
  • Eight affected application contracts aligned: doc, cap, deps, owner, test, meta-module, risk-boundary and llms. Their canonical/index descriptions and generated Codex adapters agree.
  • Existing block collector restored to machine-readable discovery: status=runnable, runner=msdmd/collect.py, runner_scope=msdmd-blocks-only. Native ingestion is separately contract-only with no runner.
  • Owning LLMS declarations updated; llms.txt regenerated from the unchanged pinned generator.
  • Current bare edge IDs, Mermaid collisions and missing duplicate-ID diagnostics explicitly documented as helper limitations, using the review's permitted limitation alternative rather than claiming a runtime repair.
  • Six editorial regression tests added. Existing tests and runtime collector/parser/schema code are unchanged.

Review repair

Repair commit: 324610f
Parent reviewed head: 83bd040
Base: 22c2c57

All five identified review threads have a commit-linked response and are resolved: dependent-contract contradictions, erased runner discovery, overstated qualified identities, stale LLM-facing doctrine, and overstated duplicate detection.

File plan and validation

  • Eight application SKILL.md files: replace contradictory block-only rules while preserving their semantic obligations.
  • msdmd/SKILL.md and README.md: scoped capability discovery and truthful current-helper limitations.
  • skills.json plus eight generated adapters: synchronized discovery metadata; all 42 skills retained, 33 unrelated entries unchanged.
  • llms/metadata.py and generated llms.txt: native-first definitions and runtime boundaries.
  • tests/test_msdmd_native_contract_docs.py: six regression checks for these contracts and generated outputs, not native-reader execution.

All 22 repair-file Git blob hashes match the locally tested bytes. The selected local suite passes 6/6. Four planted editorial regressions were each rejected (runner status, helper identity disclosure, native LLMS definition and compulsory OWNERS rule); original bytes were restored and the six tests passed again.

Full repository verification ran in GitHub Actions, not in the partial local checkout:

  • skill-lib-ci run 34997262424: SUCCESS. Inspected job 104476518919 and decoded logs.
  • 273 unit tests: OK.
  • Gonol authority, skill drift, skill compliance, Codex adapter drift (42 skills), strict ratios, llms-build drift, RepoLOTO audit and all 7 RepoLOTO checks: PASS.
  • hygiene run 34997262376: SUCCESS.
  • CI checked synthetic merge c3e2ca2: repair head 324610f merged into base 22c2c57. The tested head and base identities are explicit.

Usage

Read msdmd/SKILL.md and the convention catalogue for inputs actually present. Existing python -m msdmd.collect and msdmd.visualize remain block-only inventory/prototype tools. Native-first contracts do not turn an unsupported reader into absent information or a clean audit.

hmmm

Native readers, a native-capable versioned collection schema, qualified edge identities, duplicate-ID validation and their executable acceptance fixtures remain implementation work. The 20 catalogue acceptance cases are specifications, not passing native runtime tests. Resolving the two overstated-guarantee reviews repairs documentation and scope, not the underlying identity limitations. The existing strict ratios result also retains 48 hmmm observations; a passing gate does not mean every repository uncertainty is resolved.

Replace block-only coverage doctrine with native-source ingestion, source-scoped provenance, conflict preservation, explicit reader support, and information coverage. Add convention catalogue and acceptance contract; synchronize README, index and generated discovery adapter. Runtime collector remains block-only and is explicitly documented as such.
@erinepshovel-code
erinepshovel-code marked this pull request as ready for review September 15, 2026 12:33

Copy link
Copy Markdown
Contributor Author

@codex review

Review exact head 83bd040f40040730381f676b7ca4724e7a2564de for substantive P1/P2 defects in the native-first MSDMD contract revision: source-of-truth ownership, scope/provenance, typed-value preservation, conflict behavior, block compatibility, index/adapter drift, and whether the skill overclaims implementation that the current collector/parser does not provide. Preserve the explicit boundary that native readers/fixtures are specified but not yet implemented.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-15T16:54:58.942281Z 324610f New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83bd040f40

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread msdmd/SKILL.md Outdated
Comment thread skills.json Outdated
Comment thread msdmd/SKILL.md Outdated
Comment thread msdmd/SKILL.md

Copy link
Copy Markdown
Contributor Author

@codex address that feedback

Repair the four live P2 findings without widening into native-reader implementation: reconcile dependent MSDMD application contracts with native-first metadata so block-only requirements no longer contradict the foundation; retain the shipped block collector/visualizer as runnable in skills.json while marking native ingestion separately unimplemented; qualify or explicitly bound current block-collector edge identity so valid cross-file id reuse is not misrepresented; update the owning LLMS declaration and regenerate llms.txt. Preserve existing block compatibility, source CHECKS/CONTRACTS ownership, and the explicit hmmm that native readers/schema/acceptance fixtures are not yet implemented. Re-run exact drift/index/adapter/CI gates, then request exact-head review.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83bd040f40

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread msdmd/SKILL.md Outdated
Align eight application contracts and their discovery descriptions with native-first information coverage. Restore scoped discovery of the shipped block collector while keeping native ingestion contract-only. Explicitly document current bare-ID and duplicate-validation limitations instead of claiming runtime guarantees. Regenerate LLM guidance and Codex adapters from their owning sources, and add six editorial regression checks.

Collector/parser/schema runtime is unchanged. Native readers, qualified edge identities and duplicate-ID diagnostics remain explicit hmmm implementation boundaries.
@erinepshovel-code
erinepshovel-code merged commit dd5027d into main Sep 15, 2026
6 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 324610f7f2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread msdmd/SKILL.md
Comment on lines +55 to +56
These rules replace blanket requirements to duplicate native information in
MSDMD blocks or to label missing blocks as missing information. The dependent

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Synchronize governing entrypoints with native-first policy

When an agent starts new-module work, the governing AGENTS.md still explicitly requires a MODULE_BUILD block, while CLAUDE.md:38-48,251 and ORG_DISTRIBUTION.md:168-169 retain equivalent block-first instructions. Because these entrypoints are read before the revised skill, native planning declarations will still be duplicated despite this supersession claim. The dependent SKILLs are now updated, but a fresh repo-wide search confirms these higher-level contracts remain stale; update them in the same change.

AGENTS.md reference: AGENTS.md:L120-L121

Useful? React with 👍 / 👎.

Comment thread llms-build/SKILL.md
Comment on lines +127 to +128
That legacy footer is not evidence of an exhaustive native-source inventory;
source-owned definitions and disclosed reader limitations still govern.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the contradictory authority footer from generated llms.txt

Calling this footer legacy does not prevent llms/build.py:239 from emitting it, and the committed llms.txt:25 still tells consuming agents that the generated projection is the single source of truth and that unstated information does not exist. In the newly supported native-first scenario, that directly contradicts this skill's rule that source-owned instruction metadata remains authoritative, so consumers reading only the generated artifact can discard valid native declarations; change the generator template and regenerate the output rather than merely documenting the contradiction.

Useful? React with 👍 / 👎.

Comment thread msdmd/SKILL.md
Comment on lines +66 to +69
2. **Discover.** Inventory files and applicable metadata conventions using the
catalogue. Include tests, manifests, documentation, extensionless files, and
permitted reports. Record exclusions, inaccessible paths, and unsupported
files; do not silently exclude them from the coverage denominator.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Align the production scan policy with native discovery

For production coverage, ORG_DISTRIBUTION.md:117-120 directs consumers to docs/runner-config-guidance.md, but that guide defines the default included scope around executable files with supported comment markers (docs/runner-config-guidance.md:9-14) and permits whole categories to be skipped without requiring them in an exclusion ledger (:16-25). For repositories whose metadata lives in manifests, CODEOWNERS, documentation, extensionless files, or unsupported formats, following the official guide can therefore omit exactly the eligible sources this workflow says must remain accounted for and produce false coverage results. Update the guide to distinguish the block-only helper scan from native discovery and require every exclusion to remain visible.

Useful? React with 👍 / 👎.

Comment thread msdmd/SKILL.md
Comment on lines +83 to +86
7. **Publish once.** Emit one versioned collection with declarations, provenance,
relationships, conflicts, reader coverage, and diagnostics. Documentation,
inventories, graphs, and audit tools consume that collection, not a second
independently maintained metadata system.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Refresh the canonical MSDMD collection point

ORG_DISTRIBUTION.md:113 designates skill-lib_msdmd.ts as this repository's root collection point, but its canonical msdmd_foundational_contract entry still summarizes MSDMD as block syntax plus the old visible-gap doctrine (skill-lib_msdmd.ts:40-47) and does not identify the new convention catalogue or native-first coverage contract. Consumers of this machine-readable collection therefore continue to receive the superseded contract even though this workflow says inventories and graphs consume the single published collection; update the collection point alongside the owning skill or explicitly mark it stale.

Useful? React with 👍 / 👎.

Comment thread msdmd/SKILL.md
Comment on lines +24 to +28
**Implementation boundary:** at the reviewed source revision
`22c2c5702d14fb4b0faeb717777ecab2665770a1`, `collect.py` implements MSDMD-block
collection and `collection.ts` represents block-origin declarations. The native
reader, provenance, conflict, and information-coverage requirements below are
contracts for implementation, not capabilities supplied by this document.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the plugin listing to describe the shipped scope

For users discovering the library through the Claude marketplace, .claude-plugin/marketplace.json still advertises “self-declared module metadata with runnable drift gates” and claims that every assertion ships with a checker. After this patch, the primary contract is native-first and the native reader, provenance, conflict, and information-coverage requirements are explicitly unimplemented, so the installation listing presents a materially different capability from the bounded implementation described here. Update the marketplace description to distinguish the runnable block-only helpers from specified-only native ingestion.

Useful? React with 👍 / 👎.

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.

1 participant