integrationPackage manifestv2.0.5

integration.osint-store

Postgres, object, and vector storage adapters for OSINT v0.

@lssm-tech/integration.osint-store
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 2.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 PACKAGEintegration.osint-storeintegrations

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

9 déclarations · les 6 premières affichéesSELECT TO INSPECT

@lssm-tech/integration.osint-store

Storage adapters and migrations for OSINT v0.

  • PostgreSQL is the transactional source of truth across osint_core, osint_projection, and osint_analytics.
  • Every table carries ecosystem, tenant, dataset, and deployment scope. RLS is enabled and forced, and runtime transactions set all scope and purpose claims locally before access.
  • Raw snapshots are content-addressed in an S3-compatible object store with conditional writes, checksums, and encryption-key metadata.
  • The AWS SDK adapter is exercised against pinned MinIO, including fail-closed conditional writes, metadata round trips, idempotency, and lifecycle deletion.
  • Governed exports encode JSON, CSV, or lossless Parquet, store them content-addressed, and persist scoped checksum/evidence receipts.
  • Assertions, evidence, snapshots, audit entries, and outbox events are append-only to the runtime role.
  • pgvector generations are fingerprinted, dimension checked, shadow-built, and explicitly promoted. Generation-specific HNSW indexes are built with the configured distance through a migration/curation connection. Existing Qdrant and Supabase vector adapters remain valid alternatives behind the runtime ports.
  • Hybrid retrieval uses PostgreSQL FTS plus dense reciprocal-rank fusion and returns evidence references.

The schemas are private and explicitly revoked from public, anon, and authenticated. Deployments may expose a separate API surface, but must not expose these tables directly through the Supabase Data API.

Thirty-one ordered migrations cover the evidence spine, durable operations, FORCE RLS, warehouse/rights, bounded research/curation, knowledge/embedding provenance, and exact deep-research provider/model/prompt/policy/replay provenance. Migration 0009 adds an append-only, FORCE-RLS source transition ledger with revision fences and idempotency keys; each transition atomically updates the canonical source manifest and stores its exact resulting representation. The same migration stores request-digest-bound lifecycle claims with bounded leases, monotonic crash recovery attempts, terminal completion receipts, update guards, and database-enforced overlay_write RLS predicates. Canonical source commits transactionally validate the exact claim owner, attempt, request digest, and live database-clock lease. Knowledge documents and append-only query receipts retain source versions, evidence locators, ACL/purpose bindings, suppression state, and destination policy decisions. A policy-verifier port must independently bind the exact purpose, ACL grants, restricted-field status, and decision reference before SQL; FORCE RLS repeats the purpose and ACL checks from transaction-local claims. Embedding generations require provider, model, redaction, extractor, and chunker fingerprints before registration. To replay the executable RLS and pgvector conformance proof against a disposable PostgreSQL database:

sh
OSINT_TEST_DATABASE_URL=postgresql://... bun run test:postgres
bun run test:minio

When host psql is unavailable, run the hermetic PostgreSQL 17/pgvector proof:

sh
bun run test:postgres:docker

The runner refuses to reuse an existing container, pins the pgvector image by digest, applies every migration, bootstraps distinct migrator/runtime/worker/ curation/read-only login roles, and then executes schema-wide FORCE-RLS, public-privilege, empty-scope, restricted-field, base-overlay, queue-fencing, lifecycle, vector, and rights-deletion conformance. This deterministic proof does not replace the required managed non-owner qualification. Its database lives in a uniquely created host temporary directory rather than Docker's shared writable layer; cleanup stops only the exact named container and removes only that generated directory. Existing Docker images, volumes, and containers are never pruned.

Pinned MinIO conformance stores its small disposable object set on a bounded 512 MiB tmpfs. This avoids inheriting host or Docker free-space thresholds and is removed with the exact named container; it never mounts or prunes shared object data.

The PostgreSQL proof also exercises the dedicated osint_rights role against real projection, embedding, and export rows, plus the lifecycle runtime role against grant denial, live-claim reclaim denial, terminal immutability, and receipt isolation. The MinIO command creates and removes only its explicitly named disposable container.

Migration 0010 adds the generic operation work queue used by continuous OSINT workers. Claims use FOR UPDATE SKIP LOCKED, database-clock leases, monotonic attempts, and exact owner/attempt fencing. Completion, retry, dead-letter, and explicit replay are guarded in PostgreSQL and remain scoped by FORCE RLS. Workers must still reauthorize persisted requests before effects; stored grants are replay evidence and never replace a fresh authority decision.

Migration 0024 removes global dataset and grant identifiers. Primary keys and business uniqueness now include ecosystem, tenant, dataset, and deployment so partner ecosystems can safely reuse equivalent local identifiers and grants. Migration 0025 applies the same complete identity to the canonical snapshot, evidence, entity, assertion, relation, identity, curation, embedding, and current-projection graph, including composite foreign keys between every edge. Migration 0026 removes the remaining global operational, warehouse, knowledge, source-lifecycle, work-queue, and embedding-ledger identifiers and replaces their dependent references with complete deployment-scope foreign keys. Migrations 0027–0029 add evidence-bound job availability reconciliation, leased signed-webhook deliveries with append-only attempts and replay receipts, and revision/attempt-fenced dead-letter recovery. Failed scans cannot advance absence counters, and canonical job closure assertions require authorized evidence rows in the same transaction. Migration 0030 adds the immutable acquisition execution receipt to each source snapshot. Evidence reads can therefore resolve the exact plan, selected route, failed attempts, egress binding, normalized request/cost usage, and timestamps without relying on worker memory or logs. Migration 0031 adds shared job-source rate slots for multi-replica workers. Security-definer claim/release functions serialize each complete scope and rate key with a transaction advisory lock, enforce concurrency and reserved start spacing, reclaim expired crash leases, and fence release by claim and owner. The worker role has function execution only and no direct slot-table access.

Migration 0011 upgrades rights deletion work with database-clock leases, monotonic attempts, exact owner/attempt settlement, crash reclaim, explicit replay, overdue-SLO indexing, and a dedicated osint_rights FORCE-RLS policy. PostgresOsintRightsRepositoryV0 persists verified requests, monotonic suppressions, and idempotent fan-out tasks. PostgresOsintDeletionTaskQueueV0 claims deadline-prioritized work and rejects stale or cross-worker settlement.

Migration 0012 adds the embedding effect ledger and append-only transition history. Exact batch and request digests bind provider, model, dimensions, generation, content hashes, and the fresh policy decision, evidence, and expiry. A database trigger keeps those bindings immutable and permits only running to completed or ambiguous transitions. Vectors and their provider-reported usage/cost receipt commit in the same scoped transaction; incomplete or uncertain effects cannot be reclaimed as fresh provider calls. PostgresOsintProjectionSourceV0 reads only current, non-retracted, non-restricted assertions and authorized evidence before current or knowledge projection.

Migrations 0013 and 0014 add the governed subject-rights lifecycle and its grant-aware FORCE-RLS policies. Admission is effect-free. Verification, approval or denial, manual completion, and deletion-worker reconciliation use optimistic revisions and append-only receipts that bind the actor, operation request digest, policy decision, contract fingerprint, reason, and evidence. Only an approved deletion-class request may atomically create suppression and the five destination task families; the final fenced task reconciles the request to completed.

PostgresOsintReadStoreV0 implements every generated OSINT GET operation from canonical, scoped tables. Entity fields are selected deterministically from current assertions only when authorized evidence remains visible; restricted assertions and evidence are filtered by PostgreSQL policy before projection. Graph reads rebuild evidence references through the authorized evidence join, and replay reads omit raw source representations and credential references.

PostgresOsintMetadataMutationV0 executes dataset, grant, program, source registration, subscription, correction, curation, and research-cancellation commands inside one scoped transaction. Each committed effect writes stable audit and outbox identifiers derived from the durable work lease. Provider, research, and export operations fail with an explicit executor requirement when the store is used alone; the managed worker composes their specialized provider and object-store executors. PostgresOsintEvidenceWriterV0 atomically binds deep-research evidence rows to their immutable content-addressed snapshot.

Proposed reviewed development resource authority

PROPOSED_NOT_ADMITTED private development resource authority: optional canonical AuthOS resource JWT/workload profiles; exact <=300-second TTL and registered resource/claim validation; durable scoped OSINT receipts preserve SAME active decisionRef and terminal expiry/revocation. Existing defaults and production RP catalog remain unchanged. Real adoption, security review, TLS/registration, canonical lifecycle/obligation/evidence adapters, migration admission and runtime qualification are required before enablement. Product entitlement is not an OSINT effect grant. No issuer, key, token, grant or database has been created or verified by this source preparation.

Proposé OsintAuthorityLifecycleInstallerV1 writes immutable, scoped authority/delegation/fulfillment records using separately admitted nonowner roles. Readers lock real canonical rows in the receipt transaction. Terminal tombstones, immutable evidence and RLS prevent resurrection or cross-scope reuse. The proposed SQL files are excluded from automatic migration discovery and install no rows, roles or grants. PostgreSQL row locking needs an UPDATE column privilege; dedicated mutation-guard triggers prohibit actual canonical-owner edits through that privilege. Runtime qualification of those roles, guards and the exact development database remains required.

Narrow authority imports

The additive fresh-authority-store, authority-lifecycle-values, authority-lifecycle-reader, and authority-lifecycle-installer subpaths expose the same canonical SQL authority implementations as the root barrel. Use them for custody and lifecycle composition to avoid loading unrelated object/export backends. Existing root exports and authority enforcement remain unchanged.

Declared capabilities.

Integration Osint Store

Postgres, object, and vector storage adapters for OSINT v0.

Use it to

  • Adopt postgres, object, and vector storage adapters for osint v0

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/integration.osint-store package constraints do not match the target runtime or platform.

@lssm-tech/integration.osint-store

@lssm-tech/integration.osint-store/aws-s3-client

@lssm-tech/integration.osint-store/deletion-targets

@lssm-tech/integration.osint-store/evidence-writer

@lssm-tech/integration.osint-store/export

@lssm-tech/integration.osint-store/integration

@lssm-tech/integration.osint-store/knowledge-store

@lssm-tech/integration.osint-store/migrations

@lssm-tech/integration.osint-store/mutation-source-register

@lssm-tech/integration.osint-store/mutation-store

@lssm-tech/integration.osint-store/mutation-store-commands

@lssm-tech/integration.osint-store/mutation-store-values

Imports and export paths.

57 entries

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

57 imports · 35 affichés

Dependencies and related packages.

Runtime dependencies 9
@aws-sdk/client-s3
^3.1135.0
hyparquet-writer
^0.16.9
Development dependencies 5
@electric-sql/pglite
catalog:data
hyparquet
^1.31.1
typescript
catalog:

Package scripts.

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

buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
cleanrimraf dist .turbo
lint:checknode ../../../scripts/biome.cjs check .
testbun test
test:minio./scripts/test-minio-docker.sh
test:postgres./scripts/test-postgres.sh
test:postgres:docker./scripts/test-postgres-docker.sh
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.