Documentation Index
Fetch the complete documentation index at: https://docs.grantex.dev/llms.txt
Use this file to discover all available pages before exploring further.
Commerce V1 Hosted Staging E2E Harness
Purpose And Scope
This guide defines the M11 hosted staging E2E harness plan for Grantex Commerce V1 and the AgenticOrg Commerce Sales Agent handoff. It is a pre-cloud, pre-deploy planning artifact plus a dry-run safety harness. It does not create resources, deploy services, merge branches, change production config, write secrets, enable production Commerce V1, enable live payments, or enable live Plural. The current pass is documentation and dry-run validation only. Hosted execution is a later milestone after the M9 infrastructure and M10 staging data prerequisites are complete.Safety Rules
- No production URL may be used as an E2E target.
- No live payment path may be enabled.
- No live Plural path may be enabled.
- No production secret version may be copied into staging.
- No production database, Redis, bucket, or queue may be used.
- No bearer token, raw passport, idempotency key, provider credential, webhook secret value, or private key may be written to a report.
- All evidence must be redacted before it is committed or attached to a PR.
- The dry-run harness must fail closed before any hosted request can run.
Staging-Only Allowed Domains
The M11 harness may plan checks only for these staging domains:https://api-staging.grantex.devhttps://staging.grantex.devhttps://staging.agenticorg.ai
Refused Production Domains
The M11 harness must refuse these domains in all modes:https://grantex.devhttps://api.grantex.devhttps://app.agenticorg.ai
Preconditions From M9 And M10
- Grantex staging infrastructure is approved but not created by this pass.
- Grantex API target is
grantex-auth-stagingbehindhttps://api-staging.grantex.dev. - Grantex portal target is
grantex-portal-stagingbehindhttps://staging.grantex.dev. - AgenticOrg staging services are planned behind
https://staging.agenticorg.ai. - Dedicated staging Postgres exists before any real seed.
- Dedicated staging Redis exists before any real seed.
- Dedicated staging Secret Manager entries exist before any real run.
- Staging data uses tenant
cten_staging_commerce. - Staging data uses merchant
mch_staging_electronics_pilot. - Staging data uses agent
cag_staging_agenticorg_sales. - Staging data uses category
electronics_appliances. - Staging provider is
mock. - Live flags are false.
- M8 mock provider checkout-state fix is present so payment intent state starts at
authorized. - M10 seed manifest is reviewed and ready:
docs/examples/commerce-staging-seed.manifest.json.
Required Auth Material Names Only
The hosted run will need staging-only secret values loaded from the approved staging runtime, but this guide records names only:ADMIN_API_KEYMOCK_PAYMENT_WEBHOOK_SECRETMETRICS_API_KEY- Commerce Passport signing key material
- One AgenticOrg connector credential:
GRANTEX_COMMERCE_BEARER_TOKEN,GRANTEX_AGENT_ASSERTION, orGRANTEX_API_KEY
E2E Sequence
- Grantex health
- Grantex JWKS
- Grantex commerce well-known
- MCP initialize
- MCP tools/list
- MCP catalog search/get item
- MCP inventory check
- REST cart create
- REST consent request
- passport exchange
- payment intent create
- checkout create
- mock webhook paid/failed/expired
- duplicate webhook check
- manual reconciliation
- audit timeline check
- portal route smoke
- AgenticOrg real-staging demo/eval handoff
Negative Checks
- missing consent
- denied consent
- revoked passport
- expired passport
- amount cap breach
- disabled merchant
- untrusted agent
- stale inventory
- unsupported EMI/discount/warranty claim
- invalid webhook signature
Redacted Evidence Report Schema
The later hosted report should follow this shape and omit all secret values:Rollback And No-Go Criteria
Stop the hosted run and mark the report blocked if any of these occur:- A target resolves to a production domain.
- A target uses a production database, Redis, or secret version.
COMMERCE_LIVE_MODE_ENABLEDorPLURAL_LIVE_ENABLEDis true.- Provider is anything other than
mock. - AgenticOrg tries to use direct Stripe, Plural, Pine, or provider credentials for commerce.
- Checkout succeeds without consent, with denied consent, with a revoked or expired passport, or above amount cap.
- Duplicate webhook changes state twice.
- Audit timeline is missing required events.
- Evidence contains unredacted auth material.