PR I: boot-time env assertions + fix ci.yml for post-webapp layout #13
Reference in New Issue
Block a user
Delete Branch "devin/1776880983-pr-i-boot-assertions-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes gap-analysis v2 §8.1 / §8.4 / §8.6 and §10.1 / §10.2 / §10.4.
What
assertProductionEnv()inorchestrator/src/config/env.tsfails-fast inNODE_ENV=productionwhenSESSION_SECRET/EVENT_BUS_HMAC_SECRET/CHAIN_138_RPC_URL/NOTARY_REGISTRY_ADDRESS/ORCHESTRATOR_PRIVATE_KEY/DATABASE_URLis missing or uses a dev placeholder.EVENT_BUS_HMAC_SECRETenv added to the schema..github/workflows/ci.ymlrewritten: portal jobs target repo root (post-webapp/ gitlink removal), orchestrator type-check + test job added, contracts kept.assertProductionEnv; full suite 87/87 green,tsc --noEmitclean.Why
The pre-existing notary/event-bus code silently degraded to the deterministic mock / dev placeholder when envs were absent. In prod that would turn the Ledger Anchor back into a lie (gap-analysis §8.1) and sign events with a known key (§8.4). This PR makes those failures loud at boot time.
The old
ci.ymlstill pointed at thewebapp/gitlink that PR #4 removed; CI would fail on every PR. Rewritten to match the current monorepo layout.First of a sequence closing all remaining gap-analysis items (PRs I–S).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.