Open
Conversation
Rust-based linter for OpenProse programs. Supports both legacy .prose files and .md programs. Legacy (.prose): - Structure, syntax, string literals, escape sequences (E002) - Agent definitions and references - Property, permission, skill validation - Prompt hygiene, output validation (E023) - Legacy syntax detection .md programs: - YAML frontmatter validation - Component and contract section parsing - Heading classification (components vs state schemas vs docs) - Multi-file program directory auto-detection - Contract completeness observations Spec discovery: - discover command reports corpus patterns not covered by spec - Role/delegation correlation, API/prohibited overlap, state coherence build.rs reads skills/open-prose/compiler.md for vocabulary extraction. Tests validate against skills/open-prose/examples/. 22 tests, 0 failures.
59938ba to
1a0aa4a
Compare
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.
PR: Add deterministic linter (
tools/lint/)Summary
Adds
openprose-lint, a Rust-based deterministic linter for OpenProse programs. Supports both legacy.prosefiles and.mdprograms.What it does
The linter checks the static, spec-driven parts of OpenProse programs — the things that should be deterministic regardless of which model executes them:
Legacy (.prose files):
.md programs:
Spec discovery:
discovercommand analyzes a corpus and reports patterns not covered by the specWhere it lives
Why
tools/lint/The
skills/directory is what gets installed as a Claude Code plugin. A Rust crate withCargo.toml,src/, andtarget/inside a skill would bloat plugin installation.tools/is the conventional home for language tooling that operates on the spec but isn't part of it.Spec integration
build.rsreadsskills/open-prose/compiler.mdat compile time to extract vocabulary (model names, property names, permission types). The test suite validates againstskills/open-prose/examples/. Both paths are repo-relative.Test results
Usage
What's not included
Related
See #22 for spec observations from linting the Press corpus.