@hrevn/genkit-plugin
v0.2.0
Published
HREVN Genkit integration (Developer Alpha): thin wrapper around the HREVN managed integrity service.
Maintainers
Readme
HREVN Genkit Integration (Developer Alpha)
This repo is a Google / Genkit-facing wrapper surface for the live HREVN managed runtime.
Why HREVN
AI agents and multi-step workflows fail in ambiguous ways. When a sequence is interrupted, neither the user nor the system can always determine with certainty what completed, what failed mid-execution, and where work can safely resume. Without a verifiable record, context is reconstructed from memory or chat history, wasting tokens, repeating work, and leaving no reliable trail.
HREVN adds a structured evidence layer: baseline checks before consequential steps, tamper-evident receipts after execution, and manifests that allow workflows to continue from the last verified point rather than restarting from scratch.
For teams operating in regulated or high-stakes environments, HREVN also supports evidentiary discipline: structured records of what ran, under what authority, and when it stopped. This is particularly relevant for AI systems that may fall within EU regulatory timelines in 2026 and beyond. HREVN does not make a system legally compliant, but it provides structured, verifiable evidence that compliance, audit, and governance processes can use.
In Google / Genkit workflows, HREVN acts as a thin evidence layer over flows: baseline before consequential steps, tamper-evident receipt after execution, and structured records for audit and regulatory readiness without moving the core runtime into the wrapper.
What it is
- a thin Google-facing wrapper
- a reusable managed API client
- a middleware path for baseline-before-flow and bundle-after-flow patterns
- a public bridge to
https://api.hrevn.com
Current supported alpha path:
- client-first
- flow-second
- managed runtime behind
https://api.hrevn.com
What it is not yet
- not the private HREVN runtime
- not a final production npm package
- not a full Vertex SDK implementation
- not a replacement for
hrevn-core
Quick Start
npm install
npx hrevn-cli setup --key <issued-alpha-key>For the supported technical alpha path, see:
docs/GOOGLE_ALPHA_TESTING.mddocs/ALPHA_EXECUTION_TRACE.md
The bootstrapper validates the live runtime connection, updates .env without
deleting other variables, prints a real baseline result, and writes a
hrevn_test_flow.ts example if it does not already exist.
Recommended test sequence
Run the tests in this order:
npx hrevn-cli setup --key <issued-alpha-key>npx tsx examples/managed_api_client.tsnpx tsx examples/treasury_transfer_flow.tsnpx tsx examples/governance_gap_example.ts
First test: client
npx tsx examples/managed_api_client.tsSecond test: flow path
npx tsx examples/treasury_transfer_flow.tsOptional third test: governance gap
npx tsx examples/governance_gap_example.tsThis intentionally sends an incomplete governance-oriented record so the live runtime returns:
missing_required_blocksrisk_flagsrecommended_next_stepremedy_payload
The first test validates direct connectivity to the live managed API. The second test validates the middleware path around a simulated treasury flow. The optional third test shows why the remedy path matters when governance evidence is still incomplete.
What is already proven in this repo
- the TypeScript client can call the live managed API
- the middleware path can wrap a simulated treasury flow
- the runtime stays behind
https://api.hrevn.com
Included
src/client.tssrc/middleware.tssrc/adapters/vertex_metadata.tsexamples/managed_api_client.tsexamples/treasury_transfer_flow.tsexamples/governance_gap_example.tsdocs/integration/GENKIT_INTEGRATION.mddocs/bundle/GOOGLE_BUNDLE_DECISIONS.mddocs/references/AER_STANDARD_V1.md
Core rule
Google-specific metadata is extension only. It must not change canonical HREVN semantics.
Managed Runtime Bridge
The live managed endpoint is:
https://api.hrevn.com
Canonical semantics stay in the managed runtime and in the private HREVN core.
Current status
This is a technical alpha with a real developer test path. The supported first path is client-first and flow-second against the live managed runtime. It is not presented as a finished production package or a final Google-native distribution.
npm publication note
The package is intended to be published as a public developer alpha:
- thin wrapper
- real runtime behind
https://api.hrevn.com - not a final Google-native SDK
