phase2-onboarding: adopt Phase 0 contract for tree-sitter-m-vscode#3
Merged
Conversation
Tier-3 entry to the org AI-discoverability catalog. Third and final tier-3 repo to ship the Phase-0 contract, completing Phase 2 onboarding after m-modern-corpus PR #2, tree-sitter-m PR #4, and m-test-engine PR #2. Changes: - Rename CLAUDE.md to AGENTS.md; symlink CLAUDE.md -> AGENTS.md - Append five Phase-0 required sections (Setup / Test / Build / Verify / Guardrails); existing CLAUDE.md content preserved verbatim above - Add dist/repo.meta.json (Phase-0 manifest) exposing extension_info, package_json, language_configuration - Add dist/extension-info.json — hand-authored, deterministic distillation of package.json contributes.* (commands, settings, languages, grammars) for the catalog - Add tools/check-manifest.py — stdlib-only, repo-agnostic; same script as tree-sitter-m and m-test-engine - Add Makefile with manifest / check-manifest / check-docs-prose targets - Add first CI workflow (.github/workflows/ci.yml) — Phase-0 gates run before the npm install so a broken manifest fails fast dist/ is already tracked in this repo (the .gitignore explicitly notes this — the .wasm grammar is committed so users can clone-and-package without docker), so no gitignore exception was needed.
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
Tier-3 onboarding per
AI-discoverability-plan.md§3.4 andphase1-plan.md§9. Third and final tier-3 repo to ship the Phase-0 contract — completes Phase 2 onboarding after m-modern-corpus PR #2, tree-sitter-m PR #4, and m-test-engine PR #2.What landed
AGENTS.mdCLAUDE.md(existing 68-line content preserved verbatim above);CLAUDE.mdnow a symlink toAGENTS.md. Five Phase-0 sections appended (Setup / Test / Build / Verify / Guardrails).dist/repo.meta.jsonextension_info(dist/extension-info.json) +package_json+language_configuration. Consumestool:tree-sitter-mandtool:m-cli. LicenseMIT.dist/extension-info.jsonpackage.jsoncontributes.*: 4 commands, 4 settings (m-cli.enabled/path/args/trace.server), 1 language (mwith.m/.mac/.intextensions), 1 grammar (source.m→syntaxes/m.tmLanguage.json), marketplace idrafael5.tree-sitter-m-vscode. Sorted keys, 2-space indent.tools/check-manifest.pyMakefilemanifest(informational no-op — extension-info.json is hand-authored),check-manifest,check-docs-prose..github/workflows/ci.ymlcheck-manifest,check-docs-prose) run beforenpm ci/npm run lint/npm run compile, so a broken manifest fails fast without spinning up Node.Verification (all green)
make manifest— informational pointermake check-manifest— manifest valid + all 3exposes.*paths presentmake check-docs-prose—docs/(lsp-setup.md) is prose-only.github/profile/build/validate-repo-meta.py) —OK: dist/repo.meta.jsonDesign notes
extension-info.json(not generated).package.jsoncontributes.*already exists; a generator would be a parse + transform with no real degrees of freedom. AGENTS.md § Guardrails captures the "mirror the change into extension-info.json in the same commit" rule for reviewer enforcement.dist/is already tracked. This repo's.gitignoredeliberately omits thedist/ignore (the comment notes the.wasmgrammar is committed so users can clone-and-package without docker). The gitignore bug that bit tree-sitter-m'sade59d6didn't recur here — no exception was needed.npm ci. Cheaper to fail in 100ms on malformed JSON than to wait for npm install + tsc. The CI ordering reflects this.Phase 2 progress: 3 of 3 tier-3 repos onboarded with this PR.
Phase 1 hook
Once
.githubshipsbuild-catalog.py(Phase-1 Track B) and addstree-sitter-m-vscodeto its tier-3 list, this repo's manifest will be picked up by the org catalog automatically — completing the parent plan's Phase 2 exit criterion ("all tier-3 repos appear in generatedtools.jsonwithverified_ondates within 30 days").Test plan
npm ci+npm run lint+npm run compile)