integrationsWorkspace onlyv0.1.3

integration.meeting-effect-worker-postgres-http

Production PostgreSQL, BYOK, authority, rollout, and HTTP delivery composition for the meeting effect worker.

@lssm-tech/integration.meeting-effect-worker-postgres-http
Source, release and verification context

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

Package source ↗ Manifest ↗
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.meeting-effect-worker-postgres-httpintegrations

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

3 declarationsSELECT TO INSPECT

Meeting Effect Worker PostgreSQL + HTTP Composition

Production composition for @lssm-tech/app.meeting-effect-worker. It claims only explicitly assigned owner scopes, binds all five RLS axes inside PostgreSQL transactions, decrypts meeting state with the shared versioned BYOK cipher, obtains fresh authority and effect-time reproof from a host authority service, enforces the host rollout contract, and submits approved artifacts to a live delivery service.

The package does not contain a success stub or a generic “delivered” fallback. A delivery is successful only after the configured HTTPS service returns an exact, identity-matched provider receipt. Network errors, timeouts, non-200 responses, malformed JSON, stale authority, missing rollout, and receipt mismatches all fail closed and flow into the worker's bounded retry policy; typed permanent rejections are dead-lettered with their failure code.

Host configuration

Set the worker host's module to:

text
OPA_MEETING_EFFECT_WORKER_COMPOSITION_MODULE=@lssm-tech/integration.meeting-effect-worker-postgres-http

Required variables:

Variable Contract
OPA_MEETING_EFFECT_DATABASE_URL PostgreSQL URL for the governed meeting schema.
OPA_MEETING_EFFECT_OWNER_SCOPES_JSON JSON array of 1–100 strict OpaOwnerScope values; duplicates are rejected.
OPA_MEETING_EFFECT_AUTHORITY_URL HTTPS endpoint for fresh resolution and effect-time reproof.
OPA_MEETING_EFFECT_DELIVERY_URL HTTPS endpoint that performs real provider delivery.
OPA_MEETING_EFFECT_AUTHORITY_TOKEN Authority-only bearer credential of at least 32 UTF-8 bytes.
OPA_MEETING_EFFECT_DELIVERY_TOKEN Delivery-only bearer credential of at least 32 UTF-8 bytes.
OPA_MEETING_EFFECT_ROLLOUTS_JSON Strict rollout-config array with one entry for each assigned product.
OPA_BYOK_KEY_VERSION Active version used by EnvMasterKeySource.
OPA_BYOK_MASTER_KEY_v1, _v2, _v3 Current and retained rotation keys; each configured value is at least 32 decoded bytes.

Optional bounded settings are OPA_MEETING_EFFECT_DATABASE_SSL_MODE (require, prefer, or explicit allow), OPA_MEETING_EFFECT_INTERVAL_MS, OPA_MEETING_EFFECT_LIMIT, OPA_MEETING_EFFECT_LEASE_MS, OPA_MEETING_EFFECT_MAX_ATTEMPTS, and OPA_MEETING_EFFECT_HTTP_TIMEOUT_MS. OPA_MEETING_EFFECT_KILL_SWITCH=1 stops new claims (readiness reports paused); any value other than unset, empty, 0 or 1 is rejected at startup.

The database must have migration 0166 (opaMeetingFollowUpMigrationStatements): it adds the dead_letter outbox state, last_error_code, provider_receipt_ref and the host delivery ledger. Without it, settling a lease fails and the effect is retried after its lease expires.

HTTPS boundary

Both endpoints receive authenticated JSON POST requests and must return HTTP 200 with application/json. Authority requests carry version, a unique requestRef, the full lease, and either operation: "resolve" or operation: "reprove". An allow response must echo the request reference and return an active, strict runtime authority containing opa.meeting_dispatch.execute; a deny response contains only version, requestRef, and decision: "deny".

Delivery requests use the v2 envelope defined by OpaMeetingEffectDeliveryRequestSchema in @lssm-tech/lib.organization-planning-spec: operation: "deliver", a requestRef, the effect reference as idempotencyKey, the owner scope, plan and meeting references, the approved effect (target, artifact, recipient and effect digest), the approved artifact digest and the plan approval receipt. Artifact content is never sent; the host reloads and re-verifies it. The API host (/api/internal/opa/meeting-effects/deliver) routes targets to its follow-up adapters and answers with OpaMeetingEffectDeliveryResponseSchema:

JSON
{
  "version": "v2",
  "requestRef": "meeting-effect-request:...",
  "effectRef": "meeting-dispatch-effect:...",
  "status": "delivered",
  "providerReceiptRef": "provider-receipt:..."
}

status may also be drafted (calendar proposals) or rejected with a failure code and retryable flag. Permanent rejections dead-letter the effect at once; retryable ones follow the bounded exponential backoff (1 s doubling to 5 min, OPA_MEETING_EFFECT_MAX_ATTEMPTS, then attempts_exhausted).

The distinct authority and delivery bearers are sent only in the Authorization header. They are never included in configuration errors, response bodies, rollout digests, or persisted meeting state.

Declared capabilities.

This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.

Imports and export paths.

5 entries

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

5 imports

@lssm-tech/integration.meeting-effect-worker-postgres-http
@lssm-tech/integration.meeting-effect-worker-postgres-http/config
@lssm-tech/integration.meeting-effect-worker-postgres-http/postgres

Dependencies and related packages.

Runtime dependencies 3
postgres
^3.4.9
Development dependencies 4
@types/bun
catalog:types
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
prebuildcontractspec-bun-build prebuild
typechecktsgo --noEmit
Your view

Make room for your context.

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

Your context

The different parts of you

Choose a starting point

A useful mix of context, visuals and gentle guidance.

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

Reading comfort

Choose your language

Interface language changes text only. Markets, prices and workflows keep their own settings.

Translation coverage

Original source

Navigation151
Graph616
Categories378
Portfolio833
Examples2,035
Source preview1,542

More translations will be added as content is reviewed.

This preference is saved on this browser.

Search the website

Useful starting points

No results. Try a shorter phrase, an operation name or another search area.

A LITTLE ROOM TO EXPLORE

Find something to explore.

Open a closer look on this page, try a different perspective, or follow the detail into its own page.

How previews and controls work
01

Look before you leave

Hover a link or focus it with Tab to see a preview. Clicking the original link or pressing Enter always opens its destination.

02

Stay with the context

Move into the preview to explore its sections. Use Alt + ↓ from a focused link to enter it with the keyboard. Escape closes it.

03

Open the possibilities

Disclosure rows, perspective choices and highlighted controls reveal more. Your view changes reading comfort and the context you explore.

A separate button for a closer look

Show small preview buttons beside links where there is room. Tap the eye to inspect, or tap the link to go straight there. This choice stays in this tab.

No browsing history is collected. Reduced motion follows your device and Your view.