Skip to content

feat(integrations): real CG-INT/1 x402, IdP, KMS/HSM, witness, OTEL adapters - #118

Merged
EslaM-X merged 2 commits into
mainfrom
feat/cg-int-real-integrations
Nov 23, 2026
Merged

EslaM-X merged 2 commits into
mainfrom
feat/cg-int-real-integrations

Conversation

@EslaM-X

@EslaM-X EslaM-X commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

What this adds

Real, fail-closed protocol adapters for the five external integration areas (CG-INT/1):

  • x402 / settlement verifier — live verifier call with locally re-checked network/asset/amount/payTo/txHash/confirmations, replay refusal, optional verifier-response signature. No signing, broadcast, or custody.
  • IdP — OIDC discovery + JWKS + RS256/384/ES256/384 JWT verification; SAML assertion policy with mandatory injected XML-DSig verifier; SCIM 2.0 lifecycle with forced tenant scoping and cross-tenant response refusal.
  • KMS/HSM — AWS KMS SigV4 (TrentService.Sign), GCP KMS, Azure Key Vault, Vault Transit, injected PKCS#11 signer, and CG-KEYS/1 rotation/revocation lifecycle. local-dev-only is refused outside tests.
  • Witness/anchor — RFC 6962 inclusion-proof verification, signed STH verification, and read-only Stellar Horizon transaction + hash-memo binding.
  • OTEL/SLO/on-call — real OTLP/HTTP JSON export, multi-window burn-rate SLOs (NO_DATA is never OK), webhook alert routing with dedup, deterministic on-call rotation.

Plus: config decoder that never treats placeholders as provisioned, live probe tooling that records only observed outcomes, readiness-report integration that still cannot emit a production-ready/SLA claim, an offline aggregate self-check, and 21 protocol-level tests against local real-protocol servers (tamper, replay, cross-tenant, forged STH, no-data cases).

Honest boundary

INTEGRATION_READY, NOT_PROVISIONED. This PR implements the adapters. It does not provision cloud accounts, IdP tenants, HSM keys, a transparency log, or an on-call rotation; no real credentials/endpoints exist here. No settlement, signing, broadcast, custody, or physical-world truth is claimed. VERIFIED != SAFE.

Pinned machine counts refreshed to 2020 tests / 1538 files. No npm publish, no MCPRush edit, no schema expansion, no Mainnet write.

EslaM-X added 2 commits November 23, 2026 20:20
…dapters

Implements fail-closed protocol adapters for settlement verification, OIDC/
SAML/SCIM, AWS/GCP/Azure/Vault/PKCS#11 signing, RFC 6962 + Stellar anchoring,
and OTLP/SLO/alerting/on-call. Adds config decoder, live probes, honest
readiness-report integration, offline self-checks, and 21 protocol tests
with tamper/replay/cross-tenant/no-data cases.

Status remains INTEGRATION_READY, NOT_PROVISIONED: no real endpoints or
credentials are provisioned here, and no production-ready/SLA claim is made.
VERIFIED != SAFE. Pinned counts refreshed to 2034 tests / 1541 files.
@EslaM-X
EslaM-X merged commit d3fbf83 into main Nov 23, 2026
9 checks passed
@EslaM-X EslaM-X added enhancement New feature or request security Security-relevant change (secrets, signing, or execution safety) stellar Stellar/Soroban lane work infrastructure CI, tooling, freeze records, boundary audit integration Integration with wallets, DEXs, agents, or apps ai-agents AI agents, automation, and agent payments ci-cd CI/CD, release, and automation hardening mcp-server Model Context Protocol server surface (protocol 2025-06-18) operations Operational readiness, runbooks, and production operations release Release, packaging, publishing, and versioning testing Tests, regressions, and verification coverage labels Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-agents AI agents, automation, and agent payments ci-cd CI/CD, release, and automation hardening enhancement New feature or request infrastructure CI, tooling, freeze records, boundary audit integration Integration with wallets, DEXs, agents, or apps mcp-server Model Context Protocol server surface (protocol 2025-06-18) operations Operational readiness, runbooks, and production operations release Release, packaging, publishing, and versioning security Security-relevant change (secrets, signing, or execution safety) stellar Stellar/Soroban lane work testing Tests, regressions, and verification coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant