Repository navigation
feat(enterprise-adapter): versioned Upsilon lineage adapter + fixtures - #4
Merged
Merged
Conversation
SunrisesIllNeverSee
force-pushed
the
feat/enterprise-lineage-adapter
branch
from
August 28, 2026 20:00
e7c42ab to
88b1551
Compare
SunrisesIllNeverSee
force-pushed
the
main
branch
from
August 29, 2026 21:46
8e63df3 to
7b57cea
Compare
Add the Upsilon Enterprise Lineage Adapter (upsilon/enterprise-adapter/0.1-draft) that bridges sigrank/0.1-draft portable observations into Upsilon's governed enterprise namespace. Namespace separation: - portable: preserved verbatim (spec, telemetry, metrics, warnings) - enterprise: separate namespace (cohort, window, lineage, derivations) - Construction, composite scores, outcome correlations, and other enterprise derivations never leak into portable metrics The adapter: - Accepts sigrank/0.1-draft portable records - Rejects records that don't declare the correct spec version - Rejects records with enterprise leaks in portable metrics/fields - Validates telemetry primitives (non-negative integers or null) - Preserves null/zero distinction for unavailable cache - Validates pilot manifests against the canonical pilot schema - Enforces governance constraints (no personnel_action, no content_inspection) Fixtures (4): - complete-telemetry: all four pillars, all five metrics - partial-cache: cache_write/cache_read unavailable (null) - zero-values: zero cache distinct from null - invalid-version: rejects non-sigrank/0.1-draft records Schema: - enterprise-adapter/upsilon-enterprise-observation.schema.json defines the enterprise observation structure with portable + enterprise namespaces Tests (15): - Adapter version + namespace contracts - Fixture-driven tests (complete, partial, zero, invalid) - Namespace separation (no enterprise leak into portable) - Adapter rejection (missing fields, negative telemetry, enterprise leak) - Pilot manifest validation (valid, wrong roles, punitive, inspecting) - Enterprise observation schema validation Verification: - node --test tests/enterprise-adapter.test.mjs → 15/15 pass - node --test tests/ (all) → 30/30 pass Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ad arg fix Add tests/enterprise-adapter-conformance.test.mjs — validates the portable portion of enterprise observations against all 13 sigrank-standard fixtures (pinned ref 224505a). Ensures the adapter preserves portable metrics, telemetry, warnings, and namespace isolation across the same fixture pack consumed by sigrank-mcp and sigrank-app. Add .github/workflows/enterprise-adapter.yml — runs enterprise adapter unit tests + standalone conformance gate on every push/PR touching the adapter. Checks out sigrank-standard at the pinned ref. Fix dead 4th argument in validatePilotManifest checkNode call (errors array is captured via closure, not passed as parameter). Rebased onto origin/main so this PR is independently reviewable without PR #3 (worker recovery). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
SunrisesIllNeverSee
force-pushed
the
feat/enterprise-lineage-adapter
branch
from
August 29, 2026 21:48
88b1551 to
10c9fe8
Compare
actions/checkout cannot resolve a bare commit SHA with the default depth=1 fetch. Adding fetch-depth: 0 allows the pinned ref (224505a) to be resolved correctly. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
actions/checkout cannot resolve a bare commit SHA as a ref. Changed to checkout main with fetch-depth: 0, then git reset --hard to the pinned SHA. Updated pinned ref from 224505a (12 fixtures) to c73f152 (13 fixtures, includes enterprise-adapter-lineage fixture). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Replace process.exit(2) with test.skip when sigrank-standard is not available. This prevents the build job (which runs all tests via npm run test:coverage) from failing when the cross-repo checkout hasn't been performed. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
upsilon/enterprise-adapter/0.1-draft) that bridgessigrank/0.1-draftportable observations into Upsilon's governed enterprise namespace.enterprisenamespace that never leaks into portable metrics.personnel_action, nocontent_inspection).Namespace separation
Fixtures (4)
complete-telemetry— all four pillars, all five metricspartial-cache— cache_write/cache_read unavailable (null)zero-values— zero cache distinct from nullinvalid-version— rejects non-sigrank/0.1-draft recordsTest plan
node --test tests/enterprise-adapter.test.mjs→ 15/15 passnode --test tests/(all) → 30/30 passGenerated with Devin