@scoutflo/correlation-core
v0.2.0
Published
Pure shared correlation contracts and Zod schemas for Scoutflo correlation workflows.
Maintainers
Readme
@scoutflo/correlation-core
Pure shared correlation contracts and Zod schemas for Scoutflo correlation workflows.
This package owns reusable vocabulary only:
- entity refs
- facts and fact kinds
- evidence
- confidence and confidence source
- candidates
- decisions and statuses
- diagnostics
- source refs
- stable key contract types
- correlation contract framework types and registry
It does not own provider clients, database models, Express controllers, LangGraph state, topology apply logic, provider payload storage, or lifecycle authority.
Version
Current package version: 0.2.0.
0.2.0 adds additive fact/evidence provenance fields and the
CorrelationContract registry framework. It does not add concrete contracts or
matcher behavior.
Usage
import {
correlationDecisionSchema,
type CorrelationDecision,
} from '@scoutflo/correlation-core';
const decision: CorrelationDecision = correlationDecisionSchema.parse(input);Release Flow
Use this flow when releasing only @scoutflo/correlation-core. Do not publish the root @scoutflo/integration-sdk package for a correlation-core-only release.
npm run build --workspace @scoutflo/correlation-core
npm test --workspace @scoutflo/correlation-core
npm pack --dry-run --workspace @scoutflo/correlation-coreIf local npm cache permissions fail during npm pack --dry-run, use a repo-local cache:
mkdir -p .tmp/npm-cache
npm_config_cache=.tmp/npm-cache npm pack --dry-run --workspace @scoutflo/correlation-coreAfter release approval:
npm view @scoutflo/[email protected] version
npm publish --workspace @scoutflo/correlation-core
npm view @scoutflo/[email protected] versionConsumer Order
- Publish
@scoutflo/correlation-core. - Publish a compatible
@scoutflo/alert-correlationversion that depends on it. - Migrate Gateway imports where local DTO drift is highest.
- Migrate Voyager validation after Gateway returns shared-compatible context.
- Update Client only if it gains a direct shared-contract dependency.
