Governed Coding Workflow

Governed Coding Workflow A workflow diagram generated by Archify. 01 / Human decisions (verified identity) 02 / Engine runner + local worker (argv, no shell, SQLite transactions) EX / Bounded correction + holds Correction loop (maxCorrections) Approve plan · material-bound · Human decisions (verified identity) · human gate Approve plan material-bound human gate Accept deliverable · digest + revision · Human decisions (verified identity) · human gate Accept deliverable digest + revision human gate Create draft · canonical plan · Engine runner + local worker (argv, no shell, SQLite transactions) Create draft canonical plan Implementation · approved argv · Engine runner + local worker (argv, no shell, SQLite transactions) Implementation approved argv Validation · real test command · Engine runner + local worker (argv, no shell, SQLite transactions) Validation real test command Pin artifacts · fsync + sha256 · Engine runner + local worker (argv, no shell, SQLite transactions) · immutable Pin artifacts fsync + sha256 immutable SUCCEEDED · work order CLOSED · Engine runner + local worker (argv, no shell, SQLite transactions) SUCCEEDED work order CLOSED Correction · optional reapproval · Bounded correction + holds › Correction loop (maxCorrections) Correction optional reapproval HELD · limit or UNKNOWN · Bounded correction + holds › Correction loop (maxCorrections) HELD limit or UNKNOWN Human resume · restart approval · Bounded correction + holds · human only Human resume restart approval human only accept() dispatch: claim + admission limit reached AWAITING_APPROVAL RECOVERY_REQUIRED revalidate assertion failed AWAITING_ACCEPTANCE outputs + evidence Legend Agent logic Policy Tool action Context / trace

One Governed Path

  • • create() records an immutable plan; nothing dispatches before a human approval
  • • Each stage dispatch is one SQLite transaction checking epoch, approval expiry and handoff

Bounded Correction

  • • Validation failure creates a corrective task within maxCorrections and maxAttempts
  • • reapproveCorrections decides whether each correction waits for a new human approval

Evidence Before References

  • • Artifacts are fsynced and hashed before the database references them
  • • Worker evidence keeps command, exit code, stdio, timing and digests