Skip to content

feat: CONTEXT-1 producer emission + drop generic register_regex (for #431)#452

Merged
JarbasAl merged 4 commits into
feat/intent-4-producerfrom
feat/intent-4-producer-context-regex
Jul 2, 2026
Merged

feat: CONTEXT-1 producer emission + drop generic register_regex (for #431)#452
JarbasAl merged 4 commits into
feat/intent-4-producerfrom
feat/intent-4-producer-context-regex

Conversation

@JarbasAl

@JarbasAl JarbasAl commented Jul 2, 2026

Copy link
Copy Markdown
Member

Stacks on #431 (feat/intent-4-producer). Two pieces the user requested that were dropped by a force-push of #431 — preserved here so they survive:

1. register_regex removed / facade deprecations — regex is adapt-only, so there is no generic register_regex on IntentServiceInterface; the sole path is register_adapt_regex (self-contained). Every back-compat facade delegate now emits a DeprecationWarning pointing at its spec replacement.

2. OVOS-CONTEXT-1 §6 producer emission — the engines + core already consume requires_context/excludes_context, but the producer never emitted them (architecture review flagged the gate as inert for real skills). Now:

  • ovos.intent.register.keyword / .template payloads carry requires_context/excludes_context (default [], shape-stable).
  • register_intent/register_intent_file + @intent_handler gain the params; OVOSSkill.set_intent_context/remove_intent_context expose the §5.3 surface.
  • IntentLayers migrated to a real requires_context: ["layer_<name>"] gate (engine-agnostic), keeping the legacy adapt token as a deprecated bridge.

Full workshop unit suite: 497 passed (register_template call kept shape-stable for no-context callers so existing mocks are unaffected).

🤖 Generated with Claude Code

JarbasAl and others added 3 commits July 2, 2026 22:13
Regex intents are adapt-engine only with no spec equivalent, so there is no
generic `register_regex` on IntentServiceInterface — the sole entry point is
`register_adapt_regex` (self-contained; munges + emits the legacy adapt vocab).
Skill regex loaders call `register_adapt_regex`.

Every IntentServiceInterface back-compat facade delegate now emits a
DeprecationWarning pointing at the spec-compliant replacement (keyword/template
registration, set_intent_context, spec deregistration).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…text

Attach the CONTEXT-1 gating declarations to the INTENT-4 registration
payloads so the engine-side gate is fed by real skills:

- ovos.intent.register.keyword and ovos.intent.register.template payloads
  carry requires_context / excludes_context (default [], shape-stable).
- register_intent / register_intent_file (OVOSSkill) and the @intent_handler
  decorator gain optional requires_context / excludes_context params, threaded
  through to the emit.
- OVOSSkill.set_intent_context / remove_intent_context expose the §5.3 surface.
- IntentLayers activate a real requires_context: ["layer_<name>"] gate
  (engine-agnostic) via set_intent_context; the legacy adapt layer_<name>
  vocab token is kept as a deprecated bridge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Keeps the register_template call shape unchanged for the common (no-context)
path so existing callers and their mocks are unaffected; the payload stays
shape-stable because register_template defaults the fields to [].

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9831f92d-0a94-4d6b-a4b9-19148a6ad813

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/intent-4-producer-context-regex

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JarbasAl JarbasAl marked this pull request as ready for review July 2, 2026 23:48
@JarbasAl JarbasAl merged commit c7ee8fd into feat/intent-4-producer Jul 2, 2026
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant