Skip to content

fix(registry): restore Skill pages broken by behavior rules - #436

Merged
harlan-zw merged 1 commit into
mainfrom
fix/behaviors-import-meta
Oct 5, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix/behaviors-import-meta

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Related to #425

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

Every Skill page in production answers 503 since #425 deployed. Nitro rewrites the text import.meta.env inside skilld-protocol's bundled behavior rules to globalThis._importMeta_.env. The rules then fail their own "patterns are lowercase" check, so detectBehaviors throws on every Skill page request.

  • A pnpm patch on skilld-protocol@2.5.0 splits the literal, so the bundler cannot rewrite it. The bundled rule keeps import.meta.env.
  • skillPageBehaviors now returns no behaviors and emits a skill-behaviors failure event if the rules throw. The behaviors panel is optional and must never take the Skill page down.

Follow-up: the same literal belongs in skilld-dev/skilld, so the next skilld-protocol release no longer needs this patch.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

Nitro rewrites the text `import.meta.env` inside skilld-protocol's
bundled rules to `globalThis._importMeta_.env`. The rules then fail
their own lowercase check, detectBehaviors throws, and every Skill
page answers 503. Patch the literal so the bundler cannot reach it,
and make a rules failure return no behaviors instead of a 503.
@harlan-github-agent harlan-github-agent Bot added harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 5, 2026
@harlan-github-agent

harlan-github-agent Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-10-05 16:55 UTC.

GitHub merged this pull request.

No material findings were recorded.

Review completed. No finding above 80/100.

@harlan-zw
harlan-zw merged commit 42c99fc into main Oct 5, 2026
7 checks passed
@harlan-github-agent harlan-github-agent Bot removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 5, 2026
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.

1 participant