Repository navigation
feat: share Jev Workflows across Codex and Claude with local CI - #10
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ea38794af2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const names = new Set(referencedAssets); | ||
| for (const reference of Object.keys(validated)) if (!names.has(reference)) fail('unused_asset'); | ||
| for (const reference of names) if (!Object.hasOwn(validated, reference)) fail('missing_asset'); | ||
| for (const reference of referencedAssets) totalBytes += Buffer.byteLength(validated[reference]!.data_base64, 'base64'); |
There was a problem hiding this comment.
Count each transmitted asset only once
When the same asset identifier appears multiple times in the state or questions, referencedAssets contains duplicates and this loop adds the decoded image size once per occurrence. A valid image referenced repeatedly can therefore exceed the 32 MiB limit even though the request transmits only one copy; sum the unique validated assets instead.
Useful? React with 👍 / 👎.
| for (const name of names) { | ||
| const index = value.indexOf(name, cursor); | ||
| if (index >= 0 && (!found || index < found.index || (index === found.index && name.length > found.name.length))) found = {name, index}; |
There was a problem hiding this comment.
Require unambiguous asset references
Asset identifiers are matched as arbitrary substrings, so an asset named cat is treated as referenced by unrelated text such as concatenate. This bypasses the intended unused_asset rejection and sends image data that the caller did not actually reference; require an exact value or a documented delimited reference form instead.
Useful? React with 👍 / 👎.
| node dist/cli.mjs status | ||
| node dist/cli.mjs classify-decision < request.json | ||
| node dist/cli.mjs classify-decision --evaluate < request.json |
There was a problem hiding this comment.
Remove or package the advertised CLI entry point
In the generated Claude package these commands fail with MODULE_NOT_FOUND because its dist/ directory contains only server.mjs and claude-hook.mjs; package-claude.mjs never copies cli.mjs. Either include the CLI in this distribution or tailor the copied README so installed Claude users are not directed to a nonexistent entry point.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c2a88af58e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const parts = path.split('/').filter(Boolean); | ||
| let current = '/'; |
There was a problem hiding this comment.
Preserve the Windows root when creating hook state
On Windows, absolute paths use backslashes and may include a drive or UNC root, so splitting only on / and starting from / transforms paths such as C:\Users\me\state into \C:\Users\me\state. ensurePrivateDirectory then fails, resolveTurn returns no turn ID, and every turn-scoped Claude hook silently returns {}. Build the traversal from parse(path).root and platform path segments instead.
Useful? React with 👍 / 👎.
| const mediaEnabled = experimentalImages || Object.keys(assets).length > 0; | ||
| const bytes = Buffer.byteLength(JSON.stringify(payload)); | ||
| if (bytes > maxPayloadBytes) return {status: 'skipped', reasonCode: 'payload_too_large', questionIds}; | ||
| const inputDigest = digestOf({payload, rubric: BATCH_RUBRIC_VERSION, policies}); | ||
| if (bytes > (mediaEnabled ? 32 * 1024 * 1024 : maxPayloadBytes)) return {status: 'skipped', reasonCode: 'payload_too_large', questionIds}; |
There was a problem hiding this comment.
Keep asset-free batches under the text payload limit
When a caller sets experimental.images: true but supplies no assets or Box question, mediaEnabled becomes true and raises the payload ceiling from 48,000 bytes to 32 MiB. Because structured question entries can be large, an otherwise ordinary text batch can then transmit megabytes of text and bypass the documented text privacy/resource safeguard merely by toggling an unused capability flag; use the presence of validated media rather than the opt-in flag to select the media limit.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b8c5fdc5c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const policies = policiesByQuestion(input, {minConfidence: confidenceFloor, minProbability: confidenceFloor}); | ||
| const payload = {state, questions, model: MODEL}; | ||
| let selectedModel: ModelSelector; | ||
| try { selectedModel = resolveModelSelector(input.model ?? (model ?? undefined)); } |
There was a problem hiding this comment.
Reject an invalid configured model for batch calls
When JEV_MODEL contains an unsupported selector and an evaluate_decisions request omits its per-call model, the cached model value is null, but this expression converts it to undefined; resolveModelSelector(undefined) then silently selects jev-1.13.0. Batch previews and evaluations therefore proceed with the default even though the other service methods return unknown_model_selector for the same configuration. Preserve the invalid configuration as an error unless the request explicitly supplies a valid override.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 85f7832da5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let output = ''; | ||
| let guestPlatform = null; | ||
| try { | ||
| assertIsolationConfig(root); |
There was a problem hiding this comment.
Validate isolation config from the commit under test
When a pre-push verifies a tip that is not checked out, or the worktree has uncommitted changes to .ci/lima.yaml, this call validates the current worktree while archiveCommit later runs exactSha. Because the archived workflow does not validate its own Lima file, a commit that weakens or removes the required isolation settings can pass based on another revision's safe configuration, while unrelated dirty changes can reject a valid commit. Read the configuration from exactSha (or explicitly validate a trusted installed copy) instead.
Useful? React with 👍 / 👎.
Result
Jev Workflows 0.5.1 uses one maintained decision engine with native Codex and Claude Code packages. Both hosts display Jev Workflows and retain the existing plugin, tool and skill namespaces. Verification now runs through local Actions without GitHub-hosted minutes.
Changes
.ci/verify.yml. The previous hosted workflow is disabled and removed. An installed pre-push hook verifies each exact pushed commit through pinnedactand Node 22 in a dedicated Lima VM.Verification
Exact pushed head
85f7832da59f955aced7e9fb0735d68384bbf21bpassed 212 tests in the real installed pre-push path on Node 22.23.2/Linux ARM64, plus typecheck, retained-bundle integrity, manifests and generated-package parity. GitHub readback shows the separatelocal-ci / act Linux ARM64status passing and no hosted Actions run for this commit.A real push containing an intentionally failing verifier was rejected; its disposable local destination received no ref. Ten controller regressions cover exact archives, annotated tags, failed and timed-out runs, unique receipts, isolation admission, hook preservation and transactional installation. Actionlint and shell/Node syntax checks passed.
Fresh installed 0.5.1 Codex and Claude sessions previously loaded the plugin and returned status. Codex loaded twelve trusted/enabled hooks. Runtime bundles changed only release-version strings after the earlier provider/hook QA. Jev 1.13/1.14 text and 280×280 PNG/JPEG Box requests succeeded; the documented 256×307 image boundary returned HTTP 400 and remains a provider discrepancy.
Limits
Local hooks apply to this installation and its linked worktrees. Web edits and other clones need their own checks. The GitHub account billing lock is unchanged; historical hosted failures remain historical evidence. No decision-quality improvement, provider billing reconciliation or official marketplace approval is claimed.
See verification, local CI setup, and sanitized CI evidence.