Skip to content

fix(workflow): unbound meta ReferenceError in sandbox (#17) - #18

Merged
kostua16 merged 1 commit into
mainfrom
fix/17-meta-not-defined
Jul 21, 2026
Merged

fix(workflow): unbound meta ReferenceError in sandbox (#17)#18
kostua16 merged 1 commit into
mainfrom
fix/17-meta-not-defined

Conversation

@kostua16

Copy link
Copy Markdown
Owner

Summary

  • Fixes Workflow sandbox uncaught-throw: meta is not defined during extract (and any consolidating mode) by stopping runtime use of the unbound meta identifier.
  • Injects build-time const ENGINE_VERSION = '<plugin.json>'; after export const meta; stamps/--resume skew use that constant instead.
  • Builder self-check bans \bmeta\. in the dist; adds regression + resume-skew tests.

Closes #17

Test plan

  • npm test (194 pass)
  • npm run validate:build
  • npm run validate:versions
  • After merge: cut 1.4.5 release (manual) and re-run /extract-design past first slice consolidate

The Workflow sandbox keeps export const meta for UI metadata but does not
bind meta in script scope, so meta.version threw ReferenceError on the first
pipeline-state flush. Inject ENGINE_VERSION from plugin.json and ban meta.*
accesses in the dist builder.
@kilo-code-bot

kilo-code-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (14 files)
  • .serena/memories/issue-17-meta-not-defined-architecture.md
  • .serena/memories/issue-17-meta-not-defined-gotchas.md
  • docs/plans/issue-17-meta-not-defined.md
  • docs/plans/references/engine-version-injection.md
  • docs/plans/references/sandbox-meta-binding.md
  • plugins/feature-workflows/README.md
  • plugins/feature-workflows/workflows/docs/feature-pipeline-documentation.md
  • plugins/feature-workflows/workflows/feature-pipeline.js
  • plugins/feature-workflows/workflows/src/engine-version.mjs
  • plugins/feature-workflows/workflows/src/main.mjs
  • plugins/feature-workflows/workflows/src/state.mjs
  • scripts/build-workflows.mjs
  • tests/harness.mjs
  • tests/sandbox-meta-binding.test.mjs

Reviewed by deepseek-v4-pro · Input: 67.8K · Output: 8.4K · Cached: 326.4K

Review guidance: REVIEW.md from base branch main

@kostua16
kostua16 merged commit 2783f0d into main Jul 21, 2026
3 checks passed
@kostua16
kostua16 deleted the fix/17-meta-not-defined branch July 21, 2026 20:06
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.

Workflow hit uncaught-throw: meta is not defined (JS reference error in pipeline)

1 participant