Fidenaut — a governed workflow provider for bounded delegated autonomy.
Fidenaut provides the workflow mechanics for issue-driven, evidence-bound software changes: planning, review, explicit approval gates, candidate integrity, validation, governed commits, draft-PR publication, and fail-closed recovery. It was extracted from ChessEcho, which remains the originating and reference consumer. The workflow is not inherently ChessEcho-specific: the consumer supplies repository identity, configuration, roles, conventions, and application validation.
Fidenaut does not provide an application, a consumer's build or test suite, or
independently authenticated human authorization. Current approval commands
record self-attested local acknowledgments; they do not authenticate the
asserted operator. Role strings likewise do not authenticate actor identity.
See docs/provenance.md for extraction and trust-boundary
context.
The provider owns:
scripts/agent_workflow.pyandscripts/workflow_supervisor.py;- provider regression tests and provider role contracts;
- workflow state, evidence, approval, integrity, and recovery semantics; and
- verification of a pinned external provider runtime.
The consumer owns:
.github/agent-workflow.json;- its authoritative remote, target/base branch, and run root;
- application validation profiles and application tests;
- repository-specific roles and conventions; and
- issue and pull-request conventions.
A consumer must retain its own repository configuration. Do not copy Fidenaut's repository identity, remote, target branch, run root, or application validation profiles into another repository.
New workflow runs pin workflow.role_execution as managed-v0 or
executor-v1. If omitted, it defaults to managed-v0. The legacy
workflow.role_execution_contexts: true setting continues to enable managed
role execution and cannot be combined with executor-v1; setting it to false
keeps managed role execution disabled.
The selected mode is immutable for a run. Mode-sensitive commands reject a
configuration/run mismatch before invoking a runtime. executor-v1 is a
governance mode selection only. The repository includes a file-backed protocol
fake and testable Copilot CLI adapter code, but neither is wired into workflow
commands. The Copilot adapter cannot create provider sessions, and no real
provider integration or executor-v1 adoption is enabled.
From a clean Fidenaut checkout, use Python 3.9 (the provider CI runtime):
python3 -m pip install -r requirements-lint.txt
python3 scripts/run_python_lint.py
python3 scripts/run_agent_workflow_tests.pyThese commands validate Fidenaut's provider implementation and regression suite. They do not validate an external consumer and do not require consumer application dependencies.
An external consumer pins an exact Fidenaut commit; it does not consume an unpinned moving branch. The provider runtime and manifest remain outside the consumer worktree. The runtime consists of these provider-owned files:
scripts/agent_workflow.py
scripts/workflow_supervisor.py
Fidenaut currently provides no package manager, provider bundle command, automatic installer, or fetch mechanism. Create an external manifest:
{
"format": "fidenaut-provider-runtime-manifest-v1",
"provider": {
"repository": "github.com/NathanZK/Fidenaut",
"revision": "<40-character-lowercase-commit-sha>"
},
"files": [
{
"path": "scripts/agent_workflow.py",
"mode": "100755",
"sha256": "<sha256>"
},
{
"path": "scripts/workflow_supervisor.py",
"mode": "100755",
"sha256": "<sha256>"
}
]
}Invoke the pinned provider entry point with explicit roots for every governed command:
python3 /path/to/pinned/fidenaut/scripts/agent_workflow.py init ISSUE \
--consumer-root /path/to/consumer \
--provider-runtime-root /path/to/pinned/fidenaut \
--provider-manifest /path/outside/consumer/provider-runtime-manifest.jsonConsumer configuration, state, Git operations, target/base topology, and
application validation resolve only from --consumer-root. The provider
checkout must match the manifest's repository and exact revision. Every
manifest-listed file is resolved canonically beneath
--provider-runtime-root, then checked for path, Git mode, and SHA-256.
The manifest must list the executing scripts/agent_workflow.py and its
required scripts/workflow_supervisor.py. Missing, relocated, changed,
malformed, symlink-escaping, or tampered provider inputs fail closed before
consumer workflow state progresses. The manifest identity is captured at
init and revalidated on later state reads.
The legacy FIDENAUT_PROVIDER_RUNTIME_MANIFEST environment variable remains
available only for ordinary in-repository compatibility invocation; it cannot
be combined with --provider-manifest.
Keep the consumer's own configuration and select its own application validation profile. Fidenaut's provider tests are not a replacement for consumer validation.
The normal human-gated path is:
init
→ plan submission/review/approval
→ test submission/review/approval
→ implementation submission
→ consumer validation
→ implementation review
→ implementation approval
→ create-draft-pr
Representative command shapes are:
python3 scripts/agent_workflow.py init ISSUE
python3 scripts/agent_workflow.py submit-plan ISSUE --artifact PATH --agent ROLE --scope PATH
python3 scripts/agent_workflow.py review-plan ISSUE --status READY_FOR_HUMAN_APPROVAL --artifact PATH --reviewer ROLE
python3 scripts/agent_workflow.py approve-plan ISSUE --by LOGIN --confirm plan_approved
python3 scripts/agent_workflow.py submit-tests ISSUE --artifact PATH --agent ROLE --not-applicable --reason "Approved rationale"
python3 scripts/agent_workflow.py approve-tests ISSUE --by LOGIN --confirm tests_approved
python3 scripts/agent_workflow.py submit-implementation ISSUE --artifact PATH --agent ROLE --evidence PATH
python3 scripts/agent_workflow.py run-validation ISSUE --profile CONSUMER_PROFILE
python3 scripts/agent_workflow.py approve-implementation ISSUE --by LOGIN --confirm implementation_approved
python3 scripts/agent_workflow.py create-draft-pr ISSUE --title "..." --body-file PATH--not-applicable is valid only when the approved plan establishes that test
implementation is not applicable. Implementation evidence is bound to the
exact candidate diff; changing the candidate requires regenerated evidence.
Approval gates remain explicit even when local self-attestation is configured.
Before create-draft-pr, the consumer or harness must create the local
non-target publication branch, produce the governed implementation commit, and
push that branch to the configured authoritative remote. create-draft-pr
validates the publication topology and invokes GitHub PR creation; it does not
push the initial branch. A disposable end-to-end publication experiment
therefore needs a genuinely disposable writable fork, mirror, or other safe
remote. Do not push an experiment branch to the real ChessEcho repository just
to make publication pass.
docs/engineering/agent-workflow.md: manifest schema, integrity rules, command reference, state transitions, validation, publication, reconciliation, and recovery.docs/engineering/agent-workflow-architecture.md: workflow architecture and trust boundaries.docs/engineering/agent-workflow-maintainer-summary.md: maintainer-oriented contracts and invariants.docs/specs/role-operation-records.md: pinned role-execution modes and governance-owned operation records.docs/specs/executor-protocol.md: the provider-neutral executor boundary and file-backed protocol fake.docs/specs/copilot-provider-adapter.md: the fail-closed Copilot adapter contract and its qualification limits.docs/specs/provider-qualification-evaluator.md: the bounded qualification evaluator API, evidence contract, and adoption limits.