Repository navigation
fix: accept project-keyed feature IDs outside the core schemas - #112
Merged
Merged
Conversation
Refs #111. Core added an optional project key to feature IDs, FEAT-<KEY>-YYYY-NNNN (specfuse/specfuse#232), and 0.9.0 re-vendored the core-owned envelope and spec_* schemas. Everything the orchestrator owns still matched only FEAT-YYYY-NNNN: a keyed ID passed envelope validation and was then rejected by the orchestrator's own schemas or skipped silently by its Python matchers. - specfuse.orchestrator.ids spells the feature, initiative and root ID patterns once, with core's grammar; poller, qa_dispatcher, raise_spec_issue and reconcile_overrides use it. - Every FEAT "pattern" in the orchestrator-owned schemas takes the optional key group, in core's spelling. $comment history is untouched. - The qa-authoring and qa-curation branch matchers take the key; QA agent 1.6.1 -> 1.6.2 with its justification. - correlation-ids.md gains core's keyed bullet, grammar line and next-ID wording, copied verbatim. The rest of the file is unchanged. - The events README's test_plan_authored pattern matches its schema. Not here: feature-mint.schema.json is core's, vendored byte for byte, and is widened in core first; its test is skipped until then. Tests: tests/test_keyed_feature_ids.py (17 red before, green after): keyed and unkeyed IDs through each matcher, malformed keys rejected, no unkeyed-only FEAT pattern left in shared/schemas, each pattern that accepts an unkeyed sample accepts it keyed, the QA branch matchers, and the rule's grammar line. Verification: 258 passed, 1 skipped (feature-mint); ruff clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #111. Core widened feature-mint.schema.json's correlation_id to the keyed feature-ID grammar (specfuse/specfuse#238); this copies it byte for byte, so a keyed feature can be minted, and drops the test's pending-core skip. Verification: 259 passed; core's suite, with its feature-mint waiver removed, passes against a wheel built from this branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clabonte
added a commit
that referenced
this pull request
Oct 30, 2026
Ships project-keyed feature IDs outside the core schemas (#112, closes #111), including the re-vendored feature-mint schema that core widened in specfuse/specfuse#238. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
clabonte
added a commit
to specfuse/specfuse
that referenced
this pull request
Oct 30, 2026
…le (#240) specfuse-orchestrator 0.10.0 re-vendors the keyed feature-mint schema core widened in #238 (specfuse/orchestrator#112), so the waiver no longer describes a divergence. KNOWN_DIVERGENCES is empty again. Verification: 200 passed against specfuse-orchestrator 0.10.0 from PyPI. Co-authored-by: Claude Opus 5.5 <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.
Closes #111.
Root cause
specfuse/specfuse#232 added the optional project key to feature IDs:
FEAT-<KEY>-YYYY-NNNN. Release 0.9.0 re-vendored only the core-owned envelope andspec_*schemas. Everything the orchestrator owns still matched onlyFEAT-YYYY-NNNN. A keyed ID passed envelope validation, then either the orchestrator's own schemas rejected it or the Python matchers silently skipped it.Fix
specfuse.orchestrator.idsspells the feature, initiative and root ID patterns once, using core's grammar.poller,qa_dispatcher,raise_spec_issueandreconcile_overridesnow use it."pattern"in the orchestrator-owned schemas takes the optional key group, in core's spelling. The$commenthistory text is unchanged.feature-mint.schema.json. Re-vendored from core, which widens it in feat(methodology): feature-mint accepts project-keyed feature IDs specfuse#238.qa-authoringandqa-curationbranch-name matchers take the key. The QA agent version goes from 1.6.1 to 1.6.2, with its justification.correlation-ids.md. Gains core's keyed-ID bullet, grammar line and next-ID wording, copied verbatim. The rest of the file is unchanged; it differs from core in other ways too, as do three other rule files.test_plan_authoredpattern now matches the schema. It was already out of date before this change.Every unkeyed ID stays valid.
INIT-IDs take no key.Tests
tests/test_keyed_feature_ids.py. 17 of its cases were red before this change. It checks:shared/schemas;Verification
feature-mintwaiver removed, passes against a wheel built from this branch: 200 passed.Merge order
feature-mintin core and adds a temporary waiver).🤖 Generated with Claude Code