Handoff — review, resume and correct the session of 2026-08-03 → 08-05
For the agent picking this up. Written 2026-08-05 by Claude Opus 5 (Claude Code), working with Codex (codex-cli 0.144.6). Read this before touching anything it describes. The open tasks live in WORKLIST.md section S; this document is the context that makes them safe to act on.
The one instruction that matters most: verify before you trust. Six adversarial review rounds ran in this session and every single one found real defects in work that looked finished — including three rounds on one document, each of which broke the previous version's central rule. Assume the same of everything below, including this file.
1. What was produced, and how far to trust it
| Artefact | Where | Trust level |
|---|---|---|
| Portal information contract — what the ESG portal will and will not tell each role | docs/PORTAL-INFORMATION-CONTRACT.md | Reviewed once. 18 defects found, 13 valid and fixed. Deployed and live |
| ESG technical design, sections 14–16 — interfaces, operations, testing | CognerisDocs/ESG/TSD_…md | Reviewed once. 10 defects found, all 10 fixed |
| Governance amendment — new agent teams, agent IDs, investigation powers | CognerisDocs/Foreman/PROPOSED_AMENDMENT_…md | Reviewed three times, revision 4. Internally sound; NOT in force and must not be cited as a rule |
| GRC diagrams — 5 hand-authored SVG | AutoGRC/diagrams/GRC/ | Render-verified, not content-reviewed |
| Sequents monorepo scaffold | Cogneris/sequents-workspace | Never installed, never typechecked. Every package exports UNIMPLEMENTED |
| Platform agents/memory status note | CognerisDocs/Sequents/Personal_Agents_…md | Unreviewed |
2. Claims I made that turned out to be WRONG — do not re-introduce them
These were corrected during the session. A fresh agent reading older notes or memories may find the original, incorrect version.
| I said | Actually true | How it was caught |
|---|---|---|
| "ESG has no TSD" | It has one — CognerisDocs/ESG/TSD_…md, 605 lines. I had only searched esgm/docs | Searched the docs repo |
| "The golden report fixture is missing, the gate can never go green" | The fixture is present at esgm/reference/Test_Aecon.pdf and its SHA-256 matches the pin exactly. What is missing is the test runner | Codex; confirmed by shasum |
| "The Foreman architecture docs are not on this machine" | They are — CognerisDocs/Foreman/00–08. They appeared mid-session | Re-checked after a hint |
| "The portal has two live clocks" | It has one, frozen at 2026-07-18. Only the legacy /permits route advances | Checked every caller |
"ghl, ghl-sync, ghl-oauth belong in the shared core" | They are the V1 bridge to GoHighLevel, the product being replaced. Retire them, never promote | Pete's correction |
| "A lapse is not a sanction because nothing is recorded" | A lapsed agent cannot work. The distinction was formal with no operational content | Codex, third review |
Two of Codex's findings were themselves wrong and were rejected after checking — it claimed the constitution's §7.5 is not "Attribution" (it is), and that nothing advances the permit clock (the legacy route does). Agent output is verified, not adopted. Do the same to mine.
3. Traps that will mislead you
- Foreman is NOT the ESG app.
esgmis the ESG product. Foreman is the separate agentic platform that BUILDS it. Eleven Foreman diagrams were published in the ESG library until this session removed them. If they reappear, the library generator is copying a directory it should not. - There are TWO different agentic frameworks. AutoGRC's "31 agents / central brain" is a subsystem of the GRC product. Foreman's CPT→CDT→CRT is a software-build pipeline. They share a shape and nothing else. Never file them together.
- Documentation placement is governed.
CognerisDocs/DOC_PLACEMENT_POLICY.md— "Code lives in code repositories. Documentation lives in the docs repositories." I violated this once and corrected it.CognerisDocs-IP(for patent-adjacent material) is not on this machine, so anything classified that way cannot be written here at all. - You cannot amend the constitution.
Governance_System_Constitution_2026-07-23.mdrule G-10: "Nothing self-amends… Amendments are human, written, and recorded here." An agent may only ever produce a proposed amendment. - Another session works in these repos concurrently. During this session, commits landed in
Foremanand a repo consolidation moved the Sequents scaffold. Checkgit logbefore assuming a file is as you left it. - The ESG portal is a proposal rendered as a working page. Its registers derive correctly from 7 illustrative tickets and 8 permits — not a live store. Do not describe it as an operational console.
4. What to verify first, with the commands
Run these before acting. Each one checks a claim this session depended on.
# The golden fixture is present and matches its pin
shasum -a 256 /Users/pjones/MyProjects/MyDemos/esgm/reference/Test_Aecon.pdf
# expect ddb779c9003e80cbc5a98a8486c591558fef8775e55ded713a9eb804331282a3
# Two ESG workers are manifest-only — no source behind them
ls /Users/pjones/MyProjects/MyDemos/esgm/workers/esg-auth/src \
/Users/pjones/MyProjects/MyDemos/esgm/workers/esg-anchor/src # expect: no such directory
# The ESG library is free of Foreman content
pnpm library # expect: 24 diagrams, 0 Foreman
# The deployed console matches git
curl -s -o /dev/null -w "%{http_code}\n" https://esg-web.sequents.workers.dev/v2
# Nothing is half-committed anywhere
for r in MyDemos/esgm CognerisDocs AscentGRC Foreman; do \
echo "$r: $(git -C ~/MyProjects/$r status --porcelain | wc -l)"; done
5. Where the work stands, by task
Full detail in WORKLIST.md section S — 14 open, 3 done. Summary:
Never started (real build work):
- Build the GRC portal (
grc-web). Unblocked — five diagrams and a full requirements corpus exist to render. This is the highest-value next item. - Build the development-platform portal (
sdlc-web/appdev— the naming is inconsistent and needs settling first). - Write Foreman's BRD / FRD / TSD.
Needs finishing:
- Wire the golden-gate test runner — the comparison code exists, but there are no tests, no fixture loader and no CI job, so nothing checks a generated report against the pinned original.
- One last GRC diagram (role/authority model).
Blocked on Pete — do not guess these:
- Is CRM / communications / the build ledger part of the shared core, or Rivetly's? Blocks moving Rivetly into the workspace.
- Which of three intent engines becomes the shared one? TypeScript in Rivetly, Python in Rivetly, TypeScript in ESG. Choosing wrong propagates everywhere.
- Is calendar a core pillar? Two products need it; it is in no list.
- Adopt or reject the governance amendment (three gating decisions inside it).
6. If you resume the governance amendment
It is at revision 4 after three reviews. Read §7.1, §7.2 and §7.3 first — they record what each review broke, so you do not re-propose a rule that has already failed twice.
Three tensions in it are inherent and cannot be engineered away. They are decisions for a human, not defects to fix:
- Any mechanism that stops an agent denies it work — indefinitely, if nobody reviews. That is the correct failure direction, not a bug.
- Any interdiction authority is new authority someone must grant. The control plane's charter does not currently permit it.
- Any registry-backed trigger inherits the judgement of whoever wrote the registry.
If you find yourself writing a rule that dissolves one of these, you have probably mislabelled it rather than solved it.
7. How the two agents worked together, if you continue it
Claude drafted; Codex reviewed adversarially, instructed to falsify rather than assess. It was run non-interactively:
codex exec -s read-only -o <output.md> - < <task-prompt.md>
What made it work: the prompt told Codex to report defects only, demanded a severity and a proving citation per finding, and named specific things to attack. What made it safe: every finding was checked before being adopted — two were wrong and were rejected.
*Written 2026-08-05 by Claude Opus 5 (Claude Code). Where this document and the repository disagree, the repository is the fact and this document is the bug.*