libraryPackage manifestv3.0.5

lib.companyos-runtime

Pure CompanyOS V0 runtime helpers for authority, autonomy, inbox routing, and operating review projections.

@lssm-tech/lib.companyos-runtime
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 3.0.5. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
servernode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGElib.companyos-runtimedomains

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

4 déclarationsSELECT TO INSPECT

@lssm-tech/lib.companyos-runtime

Canonical Work reducers and persistence ports live in @lssm-tech/lib.work-runtime; CompanyOS runtime projections consume Work refs without duplicating task or project state.

Company Intelligence graph runtime

./company-intelligence-graph provides deterministic, provider-free graph integrity, SHA-256 replay, immutable bitemporal versions, as-of/diff, bounded traversal and tenant-authorized hybrid lexical/structured search. It preserves tombstone history while excluding tombstoned current state, and rejects orphan, conflicting, predicate-prohibited cyclic, cross-tenant, stale and unauthorized state with stable CI_GRAPH_* codes. Stable SHA-256 identifier digests match deterministically; label-only matches remain review-required and only trusted, candidate-bound decisions produce reversible aliases.

Run bun run test:company-intelligence:graph.

Pure, backend-neutral CompanyOS runtime helpers for deterministic V0 replay and V1 operating-loop projections.

This package consumes public contracts from @lssm-tech/lib.companyos-spec and provides reusable helpers for:

  • explaining authority for an action proposal
  • classifying autonomy requests into safe policy decisions
  • routing approval/reserved-risk decisions into operator inbox items
  • summarizing a CompanyOS V0 operating review
  • projecting V1 objectives, temporal memory, operating cadence review packets, agent handoffs, execution readiness/dispatch/receipt evidence, correction/outcome receipt linkage, agent-native operation access, surface profile selection, CompanyOS operating graph views, and evidence-backed outcome value reports
  • normalizing rich reply/call/meeting/CRM/deal observations into deterministic, evidence-backed ContractSpec outcome claims with explicit correction lineage and correlation-only attribution windows
  • converting schema-constrained Company Intelligence candidates into canonical evidence-linked records, with deterministic review gates, redacted receipts, and immutable correction lineage

Positioning

Long-term governance/runtime layer behind proofs like CompanyOS VoiceOps.

Limite

The runtime package has no providers, I/O, modules, bundles, apps, integrations, or UI. It does not execute actions. It only projects deterministic decisions, packets, selections, dispatch drafts, receipts, inbox items, and summaries over CompanyOS spec objects.

Public entrypoints

  • @lssm-tech/lib.companyos-runtime — root barrel
  • @lssm-tech/lib.companyos-runtime/authority — authority explanation helpers
  • @lssm-tech/lib.companyos-runtime/autonomy — autonomy classification helpers
  • @lssm-tech/lib.companyos-runtime/inbox — operator inbox routing helpers
  • @lssm-tech/lib.companyos-runtime/review — operating review summarization helpers
  • @lssm-tech/lib.companyos-runtime/objectives — V1 objective health and drift projections
  • @lssm-tech/lib.companyos-runtime/memory — V1 temporal memory snapshot projections
  • @lssm-tech/lib.companyos-runtime/cadence — V1 operating cadence review packet builders
  • @lssm-tech/lib.companyos-runtime/execution — V1 execution readiness, dispatch draft, policy-gate, receipt, and inbox projections
  • @lssm-tech/lib.companyos-runtime/execution-receipts — deterministic execution receipt summaries and correction/outcome linkage projections
  • @lssm-tech/lib.companyos-runtime/agent-org — V1 agent delegation and handoff planners
  • @lssm-tech/lib.companyos-runtime/operations — V1 agent-native operation access classifiers
  • @lssm-tech/lib.companyos-runtime/surfaces — V1 dynamic surface profile selectors
  • @lssm-tech/lib.companyos-runtime/operating-graph — deterministic graph snapshot, source-record replay, and idempotent change helpers over CompanyOS spec node kinds
  • @lssm-tech/lib.companyos-runtime/identity-resolution — cross-source identity candidate and link decision projections
  • @lssm-tech/lib.companyos-runtime/ingress — fixture-only tenant-bound HMAC ingress verification, replay rejection, outbox retry, and redacted dead-letter evidence
  • @lssm-tech/lib.companyos-runtime/graph-permissions — actor-bound graph filtering and required-field redaction projections
  • @lssm-tech/lib.companyos-runtime/graph-realtime — data-transmission-compatible event envelope and replay projections
  • @lssm-tech/lib.companyos-runtime/runbooks — fail-closed runbook readiness projections for stale, conflicted, unauthorized, or low-confidence graph evidence
  • @lssm-tech/lib.companyos-runtime/substrate-adapters — thin adapter-shaped projections for AuthOS/RBAC decisions and data-transmission refs
  • @lssm-tech/lib.companyos-runtime/layer0-policy — sponsor-neutral Layer 0 policy summary and accountable packet transition helpers
  • @lssm-tech/lib.companyos-runtime/layer0-routing — deterministic Layer 0 routing matcher that refuses unreviewed active rules
  • @lssm-tech/lib.companyos-runtime/layer0-replay — deterministic Layer 0 replay projection helpers
  • @lssm-tech/lib.companyos-runtime/outcome-value-projections — deterministic business value reports, review queues, readiness signals, sales reports, and prompt/skill influence grouping over ContractSpec outcome claim refs
  • @lssm-tech/lib.companyos-runtime/outcome-ingestion — deterministic normalized observation, correction/supersession, correlation-window, OutcomeClaim, and learning-ref projection
  • @lssm-tech/lib.companyos-runtime/temporal-store — deterministic, fault-injectable in-memory reference fake and conformance semantics for the storage-neutral temporal store port; not a durable adapter

Operating graph / AI OS projections

The operating graph helpers consume CompanyOS spec-compatible node kinds and stay provider-free. They preserve source-record evidence during realtime replay, bind permission decisions to the requesting actor, and union required redactions before returning graph fields. Permissioned graph query projections filter requested nodes, deny or redline unsafe nodes before agent use, and expose only redacted fields plus evidence refs. Runbook conformance helpers derive pass/fail evidence from procedures, readiness records, and conformance cases without provider execution. Examples should call these runtime helpers and keep deterministic sandbox adapters only at execution boundaries.

Layer 0 projections

@lssm-tech/lib.companyos-runtime/layer0-policy, /layer0-routing, and /layer0-replay provide sponsor-neutral, deterministic helpers over the additive Layer 0 CompanyOS contracts. Policy summaries expose stable Layer 0 reason-code constants while preserving upstream free-form reasons. Routing refuses unreviewed active rules, exported packet transitions require both an accountable actor and evidence, and replay summaries are order-stable with policy, CompanyBrain, and routing governance ref ids derived from existing packet refs.

Outcome value projections

projectBusinessValueReport and projectSalesValueReport consume structural ContractSpec outcome claim data without owning the generic claim schema. Claims with no evidence are excluded, low-confidence/high-impact/unreviewed claims enter the review queue, corrections reduce readiness, and prompt/skill attribution groups are reported as correlation unless upstream claims explicitly prove causality. The helpers are deterministic and side-effect-free.

Safety model

extractCompanyIntelligenceCandidates accepts untrusted model output only at a strict schema boundary. It resolves evidence IDs and exact locators solely from the caller-supplied authorized evidence set, rejects instruction-like content and policy override attempts, and requires a separately supplied trusted review decision for confidence below 0.75 or high/critical risk. Exact replay is deterministic; corrections create a new record/receipt version and supersede the prior accepted record without mutating history.

Authority and autonomy remain separate. Authority explains whether a principal has a matching capability grant and accountable owner path. Autonomy classifies how far a proposed operation may proceed. Customer-facing, approval-required, and reserved-human-only operations are never escalated to autonomous execution by this package. Execution helpers preserve policy-gate verdicts and only return dispatch drafts or operator inbox projections.

Policy Runtime Projections

@lssm-tech/lib.companyos-runtime/policy-runtime provides pure fail-closed projections for CompanyOS policy evaluation packets: readiness, missing evidence, next operator action, reserved-human-only enforcement, dry-run-before-execute state, assurance coverage, and fallback/failure explanations.

These helpers are deterministic and side-effect-free. They do not call providers, storage, queues, modules, or adapters.

Company Intelligence Brain runtime

@lssm-tech/lib.companyos-runtime/company-intelligence-brain provides pure entry versioning/review/diff/filter/projection, exact immutable edition build, validation/compare/as-of selection, gap/remediation classification, and bounded policy/procedure compilation. Unsafe inputs fail with stable CI_BRAIN_* reasons. Compiled artifacts preserve owner, evidence, policy and approval paths while explicitly granting and executing no action.

Run bun run test:company-intelligence:brain for the frozen fingerprint, reason-code, replay, bitemporal, redaction, gap, and compile corpus.

@lssm-tech/lib.companyos-runtime/company-intelligence-brain-public-projection provides the public API entry projection, separate from projectBrainEntry: projectPublicBrainEntry, matchesPublicBrainEntryFilter, readProjectedPublicBrainEntry and listProjectedPublicBrainEntries drop tombstoned entries and report only the withheld public fields (title, content, ownerRef, domain) in redactedFields, whereas projectBrainEntry keeps tombstoned entries as historicalOnly and reports every sensitive field. The list/read helpers take rows already read by a host (newest first per entry) and do no I/O; tenant-scoped storage stays in the host.

Published browser conditions select the emitted browser artifacts alongside existing Node/Bun/type targets. Export keys and source behavior are preserved; this packaging metadata does not activate providers or grant execution authority.

The existing ./outbox/types, ./outbox/in-memory, ./outbox/dispatcher and ./outbox/backoff exports now forward to the canonical generic Jobs outbox exports (@lssm-tech/lib.jobs/outbox/*). Class, function and constant identities are preserved; Company composition stays here. The in-memory adapter remains single-process test/bootstrap support, not a production persistence substitute.

Structured extraction review threshold (decided, D36)

Statut : decided (D36, owner decision 2026-10-15), implemented in @lssm-tech/lib.companyos-spec.

extractCompanyIntelligenceCandidates sends every candidate below COMPANY_INTELLIGENCE_REVIEW_CONFIDENCE (0.9), or with high/critical risk, to review instead of recording it.

Decision (option 1): validateCompanyIntelligenceRecordSemantics accepts a claim, entity or relation record below 0.9 when its reviewState is approved and its payload carries a reviewDecision attestation by a human reviewer whose reviewerRef differs from the extracting agent (extractedByRef, the extraction modelRef). The model confidence is recorded unchanged. Every other record below 0.9 still needs review_required (CI_REVIEW_REQUIRED).

The extraction runtime writes that attestation only when the trusted review decision declares reviewerKind. Decisions without it keep the previous behaviour: an approved low-confidence record still fails canonical validation, so hosts must supply reviewerKind: 'human' from their reviewer identity, never from model output.

Managed CompanyOS host policy

These subpaths own reusable behavior that the managed CompanyOS API host used to keep locally. Hosts keep SQL, environment reads, secrets and composition, and implement the declared ports.

  • ./context-authority-refs, ./context-authority-projection, ./context-authority-resolver — HMAC-opaque context/team/workspace refs and projection digest (on lib.crypto-utils), the context.list projection, and active scope resolution over a structural verified-authority input
  • ./personal-context-lifecycle, ./personal-context-lifecycle-types — personal-context ensure/disable use cases behind PersonalContextAuthorityStore (receipt replay, version checks, authority proof, fixed revocation cascade)
  • ./self-service-organization, ./self-service-organization-policy, ./self-service-membership, ./self-service-membership-types — self-service organization creation and membership (DNS-TXT domain claims, joins, access requests) behind store ports; randomness is injectable
  • ./design-partner-scope-admission, ./design-partner-readiness-projection, ./design-partner-approval-types, ./design-partner-approval-workflow — cutover scope admission, entitlement/health/readiness projection, and attestation/founder-approval transitions behind DesignPartnerApprovalStore
  • ./company-intelligence-graph-persistence — graph projection and identity candidate/decision admission validators
  • ./company-intelligence-ingestion (plus /orchestrator, /ports, /types, /submission, /connector-registry, /idempotency, /testing) — ingestion job state machine, connector registry, budget, control jobs and deterministic test doubles. Run bun run test:company-intelligence:ingestion.
  • ./company-intelligence-tombstones — source deletion / ACL revocation tombstones and propagation packet assembly
  • ./calendar-intelligence-run, ./calendar-intelligence-run-types — briefing run (gating, due windows, event cap, idempotency keys, claim/finish receipts) behind delivery-store, sender, composer, meeting-loader, clock, digest and logger ports
  • ./calendar-intelligence-email — localized briefing email renderer

Founder context store

@lssm-tech/lib.companyos-runtime/founder-context owns the append-only store port for founder account bindings, executive federation grants, context slot resolutions, context associations, bootstrap receipts and desired operating outcomes. Records are scoped to (tenantId, ownerSubjectRef); revocation and correction append a new version and never update or delete.

  • FounderContextStore port with idempotent append (replay, stale and idempotency-conflict results), current, listCurrent and history.
  • createInMemoryFounderContextStore for tests; payloads are validated on write and read and must match their record identity and owner.
  • founderContextPostgresMigrationStatements() (founder-context:0001): founder_context.records with forced owner-scoped RLS (app.tenant_id / app.actor_ref) and triggers rejecting UPDATE, DELETE and TRUNCATE. Hosts register it in their migration catalog.
  • createStoredBindingSource feeds createAccountAuthorityResolver and createAccountContextResolver from the store.

Declared capabilities.

Lib Companyos Runtime

Pure CompanyOS V0 runtime helpers for authority, autonomy, inbox routing, and operating review projections.

Use it to

  • Adopt pure companyos v0 runtime helpers for authority, autonomy, inbox routing, and operating review projections

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/lib.companyos-runtime package constraints do not match the target runtime or platform.

@lssm-tech/lib.companyos-runtime

@lssm-tech/lib.companyos-runtime/agent-org

@lssm-tech/lib.companyos-runtime/authority

@lssm-tech/lib.companyos-runtime/autonomy

@lssm-tech/lib.companyos-runtime/cadence

@lssm-tech/lib.companyos-runtime/company-brain-edition

@lssm-tech/lib.companyos-runtime/company-intelligence-brain

@lssm-tech/lib.companyos-runtime/company-intelligence-brain-canonical

@lssm-tech/lib.companyos-runtime/company-intelligence-brain-compile

@lssm-tech/lib.companyos-runtime/company-intelligence-brain-edition-runtime

@lssm-tech/lib.companyos-runtime/company-intelligence-brain-entry

@lssm-tech/lib.companyos-runtime/company-intelligence-brain-public-projection

@lssm-tech/lib.companyos-runtime/company-intelligence-brain-types

Imports and export paths.

97 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

97 imports · 35 affichés

Dependencies and related packages.

Runtime dependencies 4
Development dependencies 4
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
publish:pkg:canarybun publish:pkg --tag canary
buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
devcontractspec-bun-build dev
cleanrimraf dist .turbo
lintbun lint:fix
lint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .
lint:checknode ../../../../scripts/biome.cjs check .
testbun test
test:company-intelligence:extractionbun test testdata/company-intelligence-extraction.test.ts testdata/company-intelligence-extraction-security.test.ts
test:company-intelligence:graphbun test testdata/company-intelligence-graph-integrity.test.ts testdata/company-intelligence-graph-temporal.test.ts testdata/company-intelligence-identity.test.ts
test:company-intelligence:brainbun test testdata/company-intelligence-brain-editions.test.ts testdata/company-intelligence-brain-lifecycle.test.ts testdata/company-intelligence-brain-public-projection.test.ts
test:company-intelligence:ingestionbun test src/company-intelligence-ingestion
prebuildcontractspec-bun-build prebuild
typechecktsgo --noEmit
Votre vue

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.