docs: document action candidate governance flow - #234
Draft
cursor[bot] wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Sara Loera <saraeloop@users.noreply.github.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
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.
🧠 Noēsis Pull Request
Overview
Documents the pre-act action-candidate governance flow so the public event reference, cognitive-loop narrative, and governed side-effects tutorial match the runtime trace contract.
Type of Change
Motivation & Context
Recent runtime work made
action_candidatea first-class event phase for side-effect governance, but the docs still skipped its payload contract and omitted the blocked-direction trace emitted for enforced vetoes.Technical Details
docs/reference/events.mdxwith theaction_candidatepayload schema, required state/redaction fields, lineage rules, andact.payload.action_candidate_idlinkage.GovernanceResult.to_mapping()fields, includingschema_version,decision_id,mode,failure_policy,enforced, anderror.docs/explanation/cognitive-loop.mdxto includeaction_candidatein the phase sequence, refresh the direction/governance examples, and explain enforced-veto versus pause-on-veto ordering.docs/tutorials/governed-side-effects.mdxto showdirection(status="blocked") → action_candidate → governancebefore terminate/checkpoint outcomes.Covered codepaths:
noesis/domain/action_candidates.py,noesis/usecases/action_gating.py,noesis/usecases/actuation/candidate_builder.py,noesis/usecases/governed_actuation.py,noesis/interfaces/observability.py, and governance/veto assertions intests/insight/test_governance_metrics.py.Key knowledge gaps addressed: missing
action_candidatereference payload, unclearstate_ref/state_hash/redaction constraints, missingaction_candidate_idlineage foract, and misleading veto ordering for governed side effects.Validation
Required
git show --check --stat --oneline HEAD; concrete JSON-fence parser for changed docs (22parsed,2pre-existing placeholder fences skipped)Situational
pnpm run buildin docs/) (not run; no local docs package)python scripts/pre_release.py --check-all) (not run; docs-only change)Additional validation:
npx --yes mintlify@latest broken-linksfromdocs/ADR-003 Schema Governance Checklist
$schema_versionbumped for every artifact whose stable fields changed (not applicable; docs-only)docs/schema/**regenerated (not applicable)internal_docs/schema/kpi*.yaml(not applicable)MIGRATIONS.schema.mdorMIGRATIONS.kpi.md(not applicable)python scripts/schema_guard.py --strict --jsonpasses locally (not run; docs-only)Observability & Safety
Clarifies audit evidence and no-act invariants for governed side effects. No runtime behavior changed.
Educational / Research Value
Improves developer/operator understanding of how Noēsis records candidate side effects before governance and how veto evidence should be read from
events.jsonl.Screenshots / Logs
Related Issues / References
ActionCandidate,govern_pre_act_action,RuntimeEventBus.emit_action_candidate,GovernanceResult.to_mapping()