Skip to content

ce2e: dual-origin CLI + occupancy + library contract - #16

Closed
CJ-Hurc wants to merge 2 commits into
ahamed:mainfrom
CJ-Hurc:grokbot/ce2e-dual-origin-cli
Closed

ce2e: dual-origin CLI + occupancy + library contract#16
CJ-Hurc wants to merge 2 commits into
ahamed:mainfrom
CJ-Hurc:grokbot/ce2e-dual-origin-cli

Conversation

@CJ-Hurc

@CJ-Hurc CJ-Hurc commented Sep 8, 2026

Copy link
Copy Markdown

Summary

  • Dual-origin CLI runtime (devtools/jext-cli/run.sh + configs/complete-e2e adapter) so cli:jext-cli reconciles static+runtime.
  • Occupancy prove scripts (repository.py / entity.py / fault scripts) with identity-bound named receipts.
  • PHPUnit CompleteE2e library contract (export / invalid-input / error-semantics).
  • Root run.sh fail-closed gate (JEXT_CLI_ALLOWED) for missing-env occupancy.

Test plan

  • bash scripts/complete-e2e/prove.sh
  • php vendor/bin/phpunit -c phpunit.xml
  • complete-e2e exhaustive → CERTIFIED → squash-merge

Summary by cubic

Introduces a dual-origin CLI runtime with a fail-closed root gate, occupancy prove scripts, and a PHPUnit library contract so the project can be machine-proven for the complete-e2e certification ladder.

New Features

  • Adds devtools/jext-cli/run.sh with status, config, validate, and version commands that check CLI surfaces and identify required files.
  • Adds scripts/complete-e2e/prove.sh, repository.py, and entity.py occupancy provers that emit named receipts into .hurc-harness.
  • Adds a runtime adapter (configs/complete-e2e/runtime.json and list-runtime-clis.sh) to reconcile static and runtime CLI origins.
  • Adds tests/CompleteE2e/CompleteE2eLibraryContractTest.php covering public type loading, empty-input rejection, and documented error semantics.

Migration

  • Root run.sh now exits unless JEXT_CLI_ALLOWED=yes.
  • Requires PHPUnit and its dependencies via composer install; the test script runs phpunit --no-coverage.

Written for commit d0f8ff3. Summary will update on new commits.

Review in cubic

Add first-party devtools/jext-cli run.sh with fail-closed root gate,
runtime list-surfaces adapter (cli:jext-cli), repository/entity occupancy
provers, and PHPUnit CompleteE2e library contract for CERTIFIED ladder.
@CJ-Hurc

CJ-Hurc commented Sep 8, 2026

Copy link
Copy Markdown
Author

Opened against upstream by mistake; CE2E PR is CJ-Hurc#1

@CJ-Hurc CJ-Hurc closed this Sep 8, 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