Refactor governance to post-session review model#26
Merged
Conversation
Add spec 048-post-session-governance defining the shift from intrusive inline governance (agent wrapping + rework loops) to non-intrusive post-session review. Update HARNESS.md v0.2.0 to reflect the new model: - Two-layer evaluation (static + AI judge) run after session completes - No agent wrapping, no rework loops, no feedback injection - review() protocol replaces evaluate() with rework semantics - Simplified checkpoint placement (post-session, pre-merge, periodic) Code implementation deferred to avoid conflicts with other branches. https://claude.ai/code/session_01655ZJtGHr213QepuyYdht7
There was a problem hiding this comment.
Pull request overview
This PR updates the Synodic governance protocol documentation to shift from inline, session-wrapping evaluation toward a post-session review model, and adds a new spec describing the intended implementation of harness review.
Changes:
- Redesigns
HARNESS.mdfrom a 3-layer checkpoint-based protocol to a 2-layer post-session review protocol (with asynchronous human review). - Adds a new spec (
specs/048-post-session-governance) documenting the rationale, CLI interface, schema changes, and migration plan.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
specs/048-post-session-governance/README.md |
New LeanSpec-style spec for post-session governance and harness review implementation plan. |
HARNESS.md |
Protocol rewrite to a non-intrusive, post-session governance review model and updated persistence/logging guidance. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+117
to
+122
| ### Tier 1 — Manifest (per-review, local) | ||
|
|
||
| - Location: `.factory/{work-id}/manifest.json` or `.fractal/{work-id}/manifest.json` | ||
| - Content: full run state, attempt history, checkpoint results | ||
| - Lifecycle: created at run start, finalized at run end, gitignored | ||
| - Purpose: operational state for the current run | ||
| - Location: `.harness/.runs/{review-id}/manifest.json` | ||
| - Content: review results, L1/L2 reports, diff snapshot | ||
| - Lifecycle: created at review start, finalized at review end, gitignored | ||
| - Purpose: detailed record of a single review |
Comment on lines
+1
to
+11
| --- | ||
| status: in-progress | ||
| created: 2026-03-18 | ||
| priority: high | ||
| tags: | ||
| - harness | ||
| - governance | ||
| - refactor | ||
| created_at: 2026-03-18T23:27:23.203961706Z | ||
| updated_at: 2026-03-18T23:27:23.203961706Z | ||
| --- |
Comment on lines
+19
to
+22
| Governance is **non-intrusive**. It does not wrap, interrupt, or inject feedback | ||
| into agent sessions. Instead, it runs **after** a session completes, analyzing | ||
| the output (diffs, logs) and producing governance records that feed into rule | ||
| crystallization. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR refactors the governance protocol from an intrusive, inline evaluation model to a non-intrusive, post-session review model. Governance no longer wraps agent execution or injects feedback during sessions. Instead, it analyzes output (git diffs) after sessions complete and generates governance logs for learning and rule crystallization.
Key Changes
HARNESS.md (v0.1.0 → v0.2.0): Complete protocol redesign
evaluate()with Allow/Deny/Modify responses)review()that analyzes diffs and produces governance logs)specs/048-post-session-governance/README.md (new): Implementation specification
harness reviewsubcommand interfacesource,status,issuesfields)Notable Details
harnessCLI commandhttps://claude.ai/code/session_01655ZJtGHr213QepuyYdht7