Skip to content

feat: share Jev Workflows across Codex and Claude with local CI - #10

Merged
integrate-your-mind merged 10 commits into
mainfrom
feat/jev-cross-host-sync
Oct 15, 2026
Merged

integrate-your-mind merged 10 commits into
mainfrom
feat/jev-cross-host-sync

Conversation

@integrate-your-mind

@integrate-your-mind integrate-your-mind commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

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

  • Native Claude hooks and MCP configuration preserve existing credentials/state and unlimited defaults, with recursive consultation prevention.
  • Shared Jev fixtures align with QQ's contract update. Current model aliases, resolved-model provenance, unknown usage and provider errors are represented explicitly. Images and Box remain experimental opt-in.
  • The Actions-format workflow lives in .ci/verify.yml. The previous hosted workflow is disabled and removed. An installed pre-push hook verifies each exact pushed commit through pinned act and Node 22 in a dedicated Lima VM.
  • The VM has no host mounts, credential forwarding or job-container Docker socket. The controller preserves unrelated hooks, records per-run receipts, rejects stale guest helpers, handles failed runs/timeouts and stops the VM after cleanup.

Verification

Exact pushed head 85f7832da59f955aced7e9fb0735d68384bbf21b passed 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 separate local-ci / act Linux ARM64 status 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.

@integrate-your-mind
integrate-your-mind marked this pull request as ready for review October 15, 2026 22:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T23:56:40.707362Z 85f7832 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +67 to +69
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};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +79 to +81
node dist/cli.mjs status
node dist/cli.mjs classify-decision < request.json
node dist/cli.mjs classify-decision --evaluate < request.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +65 to +66
const parts = path.split('/').filter(Boolean);
let current = '/';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +290 to +292
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};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@integrate-your-mind integrate-your-mind changed the title Sync Jev 0.5.0 across Codex and Claude Code feat: add Jev Workflows 0.5.1 for Codex and Claude Code Oct 15, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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)); }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@integrate-your-mind integrate-your-mind changed the title feat: add Jev Workflows 0.5.1 for Codex and Claude Code feat: share Jev Workflows across Codex and Claude with local CI Oct 15, 2026
@integrate-your-mind
integrate-your-mind merged commit 646800e into main Oct 15, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread scripts/local-ci.mjs
let output = '';
let guestPlatform = null;
try {
assertIsolationConfig(root);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

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