Skip to content

fix: accept project-keyed feature IDs outside the core schemas - #112

Merged
clabonte merged 2 commits into
mainfrom
fix/issue-111-keyed-feature-ids
Oct 30, 2026
Merged

clabonte merged 2 commits into
mainfrom
fix/issue-111-keyed-feature-ids

Conversation

@clabonte

Copy link
Copy Markdown
Collaborator

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 and spec_* schemas. Everything the orchestrator owns still matched only FEAT-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

  • One pattern module. specfuse.orchestrator.ids spells the feature, initiative and root ID patterns once, using core's grammar. poller, qa_dispatcher, raise_spec_issue and reconcile_overrides now use it.
  • Schemas. Every FEAT "pattern" in the orchestrator-owned schemas takes the optional key group, in core's spelling. The $comment history 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 skills. The qa-authoring and qa-curation branch-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.
  • Events README. Its test_plan_authored pattern 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:

  • keyed and unkeyed IDs through each Python matcher, and that malformed keys are rejected;
  • that no unkeyed-only FEAT pattern remains in shared/schemas;
  • that every pattern accepting an unkeyed sample also accepts it keyed;
  • the QA branch matchers;
  • the rule file's grammar line.

Verification

  • 259 passed, ruff clean.
  • Core's suite, run on the #238 branch with the feature-mint waiver removed, passes against a wheel built from this branch: 200 passed.

Merge order

  1. feat(methodology): feature-mint accepts project-keyed feature IDs specfuse#238 (widens feature-mint in core and adds a temporary waiver).
  2. This PR, followed by an orchestrator release.
  3. A core PR that deletes the waiver. Core's guard will fail until it does.

🤖 Generated with Claude Code

clabonte and others added 2 commits October 30, 2026 10:53
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
clabonte merged commit 9bc066c into main Oct 30, 2026
2 checks passed
@clabonte
clabonte deleted the fix/issue-111-keyed-feature-ids branch October 30, 2026 15:41
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>
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.

Orchestrator does not accept project-keyed feature IDs (FEAT-<KEY>-YYYY-NNNN) outside the re-vendored core schemas

1 participant