Skip to content

Re-land scope-projector once @chittyos/schema is consumable from CI #8

Description

@chitcommit

Split out of PR #6.

What was removed and why

38cec72 added src/scope-projector.js plus this dependency:

"@chittyos/schema": "file:../../CHITTYFOUNDATION/chittyschema"

That path escapes the repository into a sibling checkout on one VM. It resolves there as a symlink, so local npm ci, npm run build, and wrangler deploy --dry-run all pass — which is exactly why it went unnoticed. It cannot resolve anywhere else:

  • @chittyos/schema is not published (npm view @chittyos/schema → 404)
  • Cloudflare Pages clones only this repo

The Pages build failed with:

✘ [ERROR] Could not resolve "@chittyos/schema/scope-projector"
    src/scope-projector.js:10:37

Pages succeeds on main and failed on the branch, so merging would have broken main. The branch had never been pushed, so this was the first CI run that ever saw 38cec72.

Removed in d457a74

  • src/scope-projector.js
  • the import at src/index.js:5
  • both traceScopeLog call sites (src/index.js:130, :328)
  • the file: dependency

Nothing was lost from production — the code could never build, so it never deployed. It remains in history at 38cec72.

To re-land

The capability itself is wanted: projecting forensic investigation lifecycle events into the canonical scopes table as trace_investigation. It needs @chittyos/schema consumable from CI first. chittyschema-overlord owns that decision — likely publishing to a registry (npm or GitHub Packages) and adding auth to the Pages build environment. Vendoring the module into this repo was considered and rejected: forking a canonical schema artifact into a leaf app is drift by construction.

@chittyos/schema@0.2.0 already declares the subpath export, so the import is correct; only distribution is missing:

"./scope-projector": {
  "import": "./connectivity/dist/scope-projector.js",
  "types": "./connectivity/dist/scope-projector.d.ts"
}

Worth checking fleet-wide

Any other repo depending on @chittyos/schema via a file: path has the same latent break — green locally, unbuildable in CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PSJp8eaY4ABrZKGkcD1xgM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions