Skip to content

Separate hosted commercial services and harden open-core boundaries#53

Merged
Coding-Dev-Tools merged 6 commits into
mainfrom
codex/cloud-open-core-boundary
Jul 22, 2026
Merged

Separate hosted commercial services and harden open-core boundaries#53
Coding-Dev-Tools merged 6 commits into
mainfrom
codex/cloud-open-core-boundary

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner

Summary

  • move hosted authorization, billing, relay, compute, worker, signer, vendor, and S3 implementations out of the public open-core package while preserving stable public adapters
  • add hardened Cloud session, hosted-client, snapshot, relay, and private-state boundaries
  • enforce session privacy across graph, sync, export, stats, workspace access, handoff, and authenticated principal handling
  • make snapshot generations monotonic and atomic, create operation IDs per run, serialize credential refresh, and align public validation with the private relay contract
  • update packaging, release verification, licensing, sync documentation, plugin assets, and regression coverage for the public 1.0.0 boundary

Why

The Public-GA adversarial audit found release-blocking cases where commercial implementation details remained in the open repository and where session-scoped or authenticated data could cross user, workspace, graph, snapshot, and sync boundaries. The principal root causes were inconsistent identity validation, legacy ownerless-session fallbacks in authenticated mode, insufficient filtering at off-device/export boundaries, and concurrency/idempotency assumptions that did not hold across processes.

This PR makes the public/private boundary explicit and fails closed at every authenticated or off-device boundary while preserving standalone local-owner compatibility.

Validation

All checks were run locally from commit 189f96c:

  • python -m pytest tests/ -q -p no:cacheprovider — passed
  • ruff check . — passed
  • python -m eval.harness --dataset eval/datasets/sample.jsonl --k 5 — recall@k, hit@k, and answer-token recall: 1.000
  • python -m eval.harness --dataset eval/datasets/codemem.jsonl --k 5 — recall@k, hit@k, and answer-token recall: 1.000
  • python -m eval.ablation — standard recall@5: 1.0 for vector-only, hybrid-1hop, and hybrid-PPR; multi-hop graph arm: vector 0.6667, 1-hop 0.0, PPR 1.0
  • focused principal, workspace, graph, cloud, packaging, and infrastructure matrix — 120 passed
  • uv build . --no-create-gitignore — wheel and sdist built
  • python -m twine check <artifacts> — wheel and sdist passed
  • python scripts/verify_release_artifacts.py --version 1.0.0 --allow-subset --retries 1 — passed
  • python scripts/check_commercial_manifest.py — passed
  • archive boundary inspection — no forbidden signer/vendor/S3 commercial implementation files; principal fix present in both wheel and sdist
  • plugin asset checksums, secret-pattern scan, git diff --check, and origin/main ancestry — passed

GitHub Actions caveat

GitHub Actions may be blocked account-wide by the repository owner's billing or spending limit. Private PR #1 had its job rejected before any runner step for that account-level reason; that event was not a code/test failure. This draft should therefore rely on the local evidence above until hosted runners successfully start.

- Cloud license leasing with Polar integration
- Sync relay improvements for team mode
- Inspector auth and webhook enhancements
- Email outbox retention policies
- HTTP security hardening
- Dashboard v2 team audit capabilities
- Release workflow improvements
- Commercial manifest validation

All tests passing (1606 passed, 14 skipped).
Ruff clean.
@Coding-Dev-Tools
Coding-Dev-Tools marked this pull request as ready for review July 22, 2026 20:06

@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: 189f96cf86

ℹ️ 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".

"""Read the cloud-authoritative managed-maintenance policy."""
from engraphis.cloud_features import CloudFeatureClient

ws = _require_ws()

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 Scope automation requests to the active workspace

When an installation has multiple workspaces, these handlers always use _default_ws() via _require_ws() (the first listed workspace), while the dashboard's automation calls carry no workspace argument. Thus viewing, saving, or running automation after selecting another workspace silently reads, uploads, and schedules the first workspace instead of the selected one. Accept and propagate a workspace parameter (as the analytics route does) through the automation and maintenance calls.

AGENTS.md reference: AGENTS.md:L148-L149

Useful? React with 👍 / 👎.

@Coding-Dev-Tools
Coding-Dev-Tools merged commit 4a36438 into main Jul 22, 2026
8 checks passed
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