spec: extend orca-lang with neural and sparse capabilities - #11
Closed
jascal wants to merge 1 commit into
Closed
Conversation
Spec-only openspec change adding tensor / weight_ref / sparse_matrix types, ## weights / ## cluster_manifest / ## faithfulness / ## provenance sections, and six new ## verification rules invariant kinds. Frames neural and sparse as one coherent grammar extension (not two new dialects) because both share the classical data model; q-orca stays a separate dialect on data-model grounds. No implementation in this change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
openspec/changes/extend-orca-lang-neural-and-sparse/— proposal, design, tasks, language + verifier delta specs, and three worked examples.tensor<dtype, shape>,weight_ref<path, sha256, key>,sparse_matrix<dtype, shape, format>), four sections (## weights,## cluster_manifest,## faithfulness,## provenance), and six## verification rulesinvariant kinds.design.md(decision D1).What's in the change
proposal.md— Why / What Changes / Capabilities / Impact / Scopedesign.md— eight decisions (D1 extension-not-dialect; D2 type primitives; D3 four sections; D4 six invariants; D5 neural module = machine with tensor states; D6 sections-only artifact; D7 binary-absent warning policy; D8 capability negotiation), risks, migration, open questionstasks.md— 9 sections of work items + 7 parked follow-upsspecs/language/spec.md— 9 ADDED Requirements with WHEN/THEN scenariosspecs/verifier/spec.md— 1 MODIFIED + 9 ADDED Requirements; 12 new error/warning codesexamples/—tiny-transformer.orca.md,sparse-sae-16f.orca.md(sections-only),hybrid-transformer-sparse-head.orca.mdDesign calls worth checking
## transitions+## cluster_manifestin one file.weight_refis the only supported mechanism.## provenanceis genuinely new (no front-matter convention exists in the parser).add-orca-schema-versionchange; this one documents theneural-and-sparse-v1capability string but doesn't enforce a version field.Out of scope (noted in proposal)
add-neural-compile-targets).add-orca-schema-version).add-runtime-faithfulness-harness).a-orca/p-orca/c-orca).Test plan
proposal.mdend-to-end; confirm the framing (one coherent extension, not two new dialects) is correct for this repo's trajectory.design.mddecisions D1–D8; flag any conflict with existing conventions I missed.specs/language/spec.mdandspecs/verifier/spec.mdfor ADDED Requirements that overlap existing requirements.neural-and-sparse-v1is acceptable, or rename in coordination with the schema-version change.🤖 Generated with Claude Code