Cogneris
Environmental Compliance & Inspection

Intent · Every environmental obligation current and evidenced — zero reportable exceedances at Woodbine (UTS).

Operating tolerance: issues closed in ≤ 5 days · no repeat findings · every permit condition met.

← Documentsdocs/ARCHITECTURE-high-assurance-and-zero-authority.md2,578 words

High assurance and zero-authority-by-default — a security architecture position

  • Added to the corpus: 2026-08-07 · Claude Opus 5 (Claude Code, session 58cff4ff), at Pete's instruction.
  • PROVENANCE — read this before citing it. Parts 1–10 below are an external position piece, supplied by Pete and reproduced substantially verbatim (formatting repaired only). It is not an assessment of ESG or Cogneris as built, and it was not written by this session. Its footnote links carry utm_source=chatgpt.com, so treat it as an LLM-assisted essay whose cited sources are real and checkable but whose claims have not been independently verified here.
  • The NIST and NSA sources it cites are genuine (NIST SP 800-207 Zero Trust, NIST IR 8320E confidential computing, NSA CNSA 2.0). The interpretation is the author's.
  • Part 11 is this session's addition — an honest placement of ESG as it actually exists today against the ladder the piece proposes. It is the only part written from the code.
  • Related: docs/POSITION-quantum-security-and-identity.md (our own position on §10), docs/PLAN-diamond-identity-card.md, docs/OPS-device-credential.md, app/lib/deviceAuth.ts.

In cybersecurity, the strongest practical security is not simply "better encryption." It is a high-assurance architecture designed so that even if an attacker compromises a user, service, server, cloud administrator, or network segment, they still cannot reach the valuable information.

NIST Zero Trust captures the starting principle: nothing receives implicit trust because of where it is located or who owns it; each request must be authenticated and authorized. [1]

But you can go considerably beyond ordinary Zero Trust.

Think of security as a ladder

LevelArchitectureBasic idea
1Perimeter securityKeep attackers outside
2Zero TrustTrust no user/device/service automatically
3Zero Trust + microsegmentationCompromise one thing, attacker can't move sideways
4Cryptographic Zero TrustData itself requires authorization, not merely the server
5Confidential ComputingProtect data while being processed
6Hardware-rooted high assuranceHardware proves what software is actually executing
7Sovereign / classified-style architectureOperators/cloud/provider themselves cannot freely access data
8Compromise-tolerant architectureAssume components will be breached and mathematically limit what that breach accomplishes

The last level is where I would aim for a system such as Cogneris.

What Level 8 actually looks like

Instead of having:

User → application → database

you create something closer to:

Identity → device proof → workload proof → authorization → cryptographic capability → isolated computation → data

Every one of those gates has to succeed.

Imagine someone steals the CEO's password.

Ordinary system:

Password accepted → access.

MFA system:

Password + phone → access.

Zero Trust:

Identity + MFA + device + location/risk → access.

High-assurance system:

Identity

  • hardware credential
  • approved device
  • approved workload
  • policy
  • purpose
  • role
  • resource permission
  • cryptographic key authorization
  • protected execution environment

= access to only the specific information required for that operation.

The CEO may actually not have a master key.

That is important.


1 · Eliminate master credentials

One of the strongest architectural principles is:

Nobody should possess the keys to the kingdom.

Not the CEO. Not the CTO. Not the DBA. Not AWS. Not Microsoft. Not your security administrator.

For extremely sensitive operations you can use threshold cryptography or multi-party authorization.

For example — 3 of 5 approvals required, which could be:

  • Cogneris security authority
  • customer security officer
  • HSM
  • compliance authority
  • recovery authority

A single administrator cannot decrypt the information. Even stealing two credentials isn't enough.


2 · Hardware becomes the root of trust

Keys should ideally never exist as ordinary files. They live inside hardware such as an HSM (Hardware Security Module), or TPM / Secure Enclave equivalents.

The hardware performs the cryptographic operation without revealing the private key. So rather than:

application asks database for key

it becomes:

approved workload asks HSM to perform operation.

The key itself never leaves. This makes server theft considerably less useful.


3 · Protect data in all three states

Most organizations protect only two:

Data at rest — encrypted database. Data in transit — TLS.

But historically there has been a problem:

Data in use — when the CPU processes information, it traditionally has to decrypt it. That means privileged software, administrators or compromised infrastructure can potentially inspect memory.

Confidential computing addresses this using hardware-protected execution environments, extending protection to data while it is being processed. NIST describes this as encryption/protection of data in active use and considers it a significant improvement for sensitive cloud workloads. [2]

Conceptually:

Encrypted
   ↓
[ Hardware-protected enclave ]
   ↓
Computation
   ↓
Encrypted

The operating system or cloud hypervisor can potentially be treated as untrusted. That is a major change.


4 · The workload itself proves its identity

This is particularly important for agentic architectures.

It isn't enough to say:

"Pete is authenticated."

The service asking for information also has to prove:

"I am Cogneris Compliance Agent version X running the approved code."

Modern Zero Trust therefore increasingly involves workload/service identities, not just human identities. NIST specifically emphasizes application and service identities in cloud-native Zero Trust architectures. [3]

So:

PERSON      Pete                     → PERSON IDENTITY
DEVICE      MacBook Secure Enclave   → DEVICE IDENTITY
AGENT       GRC Compliance Agent     → WORKLOAD IDENTITY
CODE        Approved hash/version    → ATTESTATION
REQUEST     "Assess Basel compliance"→ PURPOSE
DATA        Basel evidence           → POLICY

Only then does information move.


5 · Purpose becomes part of authorization

This is where I think your architecture could become more sophisticated than conventional RBAC.

Traditional access control asks: Who are you? RBAC asks: What role are you? ABAC asks: What attributes do you possess?

A Cogneris-style system could add:

Why are you accessing this information?

That becomes intent-aware authorization.

For example, Pete may have permission to see Project Alpha financial data, but the request:

"Export every employee's payroll information"

could still be rejected because that data isn't necessary for the declared intent.

So authorization becomes:

Authorization = Identity + Role + Resource + Context + Purpose + Intent + Policy

rather than simply:

Authorization = Role

That is significantly more powerful.


6 · Give agents capabilities rather than permissions

There is an even stronger pattern. Instead of saying:

ComplianceAgent can access Database A.

give it a narrowly scoped cryptographic capability:

ComplianceAgent can read controls 17–29 of Regulation X for Case 2841 for the next 90 seconds.

Then that capability expires. The agent doesn't have general database access.

This is essentially least privilege taken to the object/operation level. For autonomous systems, this is particularly important.


7 · Assume every agent can become malicious

This is the architectural leap I'd make. Do not design:

"Our agents are secure."

Design:

"Eventually one of our agents will be compromised."

Then ask: what can it actually do? Ideally:

Compromised Agent A
   ✗ cannot access Agent B memory
   ✗ cannot access institutional memory
   ✗ cannot obtain encryption keys
   ✗ cannot modify historical state
   ✗ cannot change security policy
   ✗ cannot deploy another agent
   ✗ cannot escalate itself
   ✗ cannot execute financial transactions

It can only exercise capabilities it already possesses. That is compromise containment.


8 · Make historical memory tamper-evident

For institutional memory, this is critical. Don't merely store:

DECISION: Approved.

Store:

State N
   ↓ Evidence
   ↓ Options considered
   ↓ Intent
   ↓ Policy constraints
   ↓ Decision
   ↓ Authorized actors
   ↓ State transition
   ↓ Cryptographic hash
State N+1

Each state can cryptographically depend upon the previous state. Changing historical evidence would therefore break subsequent verification.

Your State Ledger concept lends itself extremely well to this. It turns institutional memory into something closer to a cryptographically verifiable history of institutional state.


9 · Separate knowledge from authority

This becomes especially important with AI. An LLM could be allowed to recommend:

"Transfer $15M."

But recommendation and authority are completely different things. I would architect:

MODEL                     can reason
   ↓
AGENT                     can propose
   ↓
POLICY ENGINE             can authorize
   ↓
STATE TRANSITION ENGINE   can execute
   ↓
LEDGER                    records the transition

The model itself does not get privileged credentials. This is dramatically safer than giving an autonomous agent direct API credentials.


10 · Post-quantum cryptography

At the cryptographic layer, sensitive long-lived systems should now be designed with migration to post-quantum cryptography in mind. NSA has already selected quantum-resistant algorithms under its CNSA 2.0 direction for National Security Systems. [4]

But an important distinction: quantum encryption isn't automatically "better security." In fact, NSA currently does not recommend quantum key distribution for National Security Systems unless significant practical limitations are overcome. [4]

So I would prioritize modern PQC + HSM + hardware attestation + key isolation before exotic quantum communication systems.


What is even better than "Zero Trust"?

This is the terminology distinction I would use:

  • Zero Trust — never trust implicitly. Verify every access.
  • High Assurance — prove that identities, software and hardware are what they claim to be.
  • Confidential Computing — protect information even from infrastructure operators while it is being processed.
  • Capability Security — give every person/service/agent only the specific powers required.
  • Compromise-Tolerant Security — assume something will eventually be breached and engineer the system so the breach cannot spread or expose the institution.

That final idea is the strongest. Instead of trying to build an unhackable system — which isn't realistic — you build a system in which:

being hacked does not automatically mean being compromised institution-wide.

And Cogneris has an interesting opportunity here

Because you already separate institutional memory, identity, agents, intent, state and governed execution, I would not position its ultimate architecture merely as "Zero Trust." I would design something closer to:

Zero-Trust + Zero-Authority-by-Default

No human, agent, application or administrator gets authority merely because of identity. Authority has to be constructed from:

IDENTITY + DEVICE + WORKLOAD + STATE + INTENT + POLICY + CAPABILITY + TIME
                              ↓
                      AUTHORIZED ACTION

Then every resulting state transition becomes cryptographically evidenced.

That would take your Intent Management + State Ledger + personal-agent architecture and turn those concepts into part of the security model itself — not merely features running behind conventional IAM.

That is considerably more interesting than saying Cogneris uses "military-grade encryption" or even simply "Zero Trust." [1]

And there is one level beyond even this that is worth exploring: formally verified high-assurance computing, where critical parts of the security architecture are mathematically proven to obey specified properties rather than simply tested. That is where systems start approaching the security philosophy used for the most sensitive defense, intelligence, cryptographic and safety-critical systems.

Sources cited by the piece

  1. NIST — Zero Trust Architecture · <https://www.nist.gov/publications/zero-trust-architecture>
  2. NIST CSRC — IR 8320E, Hardware-Enabled Security: Confidential Computing of Data in Cloud Workloads · <https://csrc.nist.gov/pubs/ir/8320/e/ipd>
  3. NIST — A Zero Trust Architecture Model for Access Control in Cloud-Native Applications in Multi-Location Environments · <https://www.nist.gov/publications/zero-trust-architecture-model-access-control-cloud-native-applications-multi-location>
  4. NSA — Post-Quantum Cybersecurity Resources · <https://www.nsa.gov/Cybersecurity/Post-Quantum-Cybersecurity-Resources/>

Part 11 · Where ESG actually stands against this ladder (2026-08-07)

Written from the code by this session, not by the author of Parts 1–10. Included because a position piece that floats free of the build is an aspiration, and this corpus is supposed to record what is true as plainly as what is wanted.

Headline: ESG is not yet at Level 2 for human access, and is unusually strong at §8. That combination is worth understanding before anyone plans a jump to Level 8.

The piece's principleESG todayEvidence
§8 Tamper-evident historySTRONGEST ALIGNMENT — already designed and built. Two nested hash chains, three signed actor classes, contentHash binding evidence binaries, deviceTs/serverReceivedTs retained never collapsed. This is the essay's "verifiable history of institutional state", already specified.@esg/event-envelope (envelope.ts, chain.ts)
§9 Separate knowledge from authorityPARTIAL, and deliberate. A guard-no-llm guard script exists to keep model output out of authoritative paths — but no CI job runs it yet.ESG-092a guard scripts; no ci.yml wiring
§2 Hardware root of trustDEVICE side only. Enclave/StrongBox seams exist for the device signer. Server side has no HSM — keys are Wrangler secrets.ESG-010b/010c; wrangler secret
§4 Workload identityPARTIAL. esg-sync requires a cryptographically verified gateway assertion (HMAC-SHA256, issuer + audience checked). That is a service identity. No code attestation — nothing proves which build is calling.workers/esg-sync/src/index.ts
§6 Capabilities not permissionsPARTIAL, and closer than most. The session-JWT carries project + allowedSites scope axes where an empty axis reads nothing, never "all" — the right default. But it is scoped RBAC, not an expiring per-object capability.workers/esg-query/src/authz.ts, scoping.ts
§5 Purpose/intent in authorizationABSENT from authorization. An intent stack exists in the platform (sequents/intent) but is not wired to any access decision.—
§1 No master credentialsABSENT. No threshold or multi-party authorization anywhere.—
§3 Data in use / Level 5ABSENT. Cloudflare Workers; no enclaves, no confidential computing.—
§10 Post-quantumAssessed, not built. Exposure is exactly two ECDSA signatures; the symmetric stack is already resistant. NSA's "PQC before QKD" advice in §10 matches our own conclusion independently.POSITION-quantum-security-and-identity.md
Level 2 — Zero Trust, human accessNOT MET. Console pages are unauthenticated unless Cloudflare Access is configured in front of the origin, and it is not configured. There is no identity provider.deviceAuth.ts, OPS-device-credential.md
Level 2 — Zero Trust, device accessPARTIAL. Enforced and fails closed — but the credential is per-build, not per-device, so two handsets on one build share it and cannot be revoked independently.app/lib/deviceAuth.ts

What this means for sequencing

  1. The unglamorous gap is the real one. Configuring Cloudflare Access in front of the console is a dashboard change that moves human access from nothing to Level 2. Nothing on the Level 5–8 ladder is worth funding while the front door is open.
  2. Per-device enrolment before per-object capability. §6 is a natural direction for ESG, but a shared per-build token cannot express a capability. deviceToken() is the named seam, and OPS-device-credential.md already identifies this as the next step.
  3. §8 is a genuine asset — say so. The envelope's two-chain design already does what the essay describes as the hard part. It is buildable evidence of the position rather than an intention.
  4. The essay's own priority order agrees with ours. "PQC + HSM + attestation + key isolation before exotic quantum communication" is the same conclusion POSITION-quantum-security-and-identity.md reached from the code. Two independent routes to the same answer is the strongest form this corpus has.
  5. Level 8 is a destination, not a plan. The ladder is useful as a shared vocabulary. Treating it as a roadmap without costing Levels 5–7 — confidential computing and sovereign architecture are expensive — would be a mistake this document exists to prevent.