Skip to content

Forge provenance

Local Claude Code attribution experiment for FLT-369. C# / .NET 10. The ledger helps explain recorded operations; it never authorizes an action. Same-user processes can tamper with every local record.

Build with SDK 10.0.301: dotnet build Forge.Provenance.slnx; run the tests with dotnet test Forge.Provenance.slnx. Publish the windowless hook with dotnet publish src/Forge.Provenance.Hook -c Release -r win-x64 --self-contained false -p:PublishReadyToRun=true.

prov asked --today, prov spawned <id>, prov who <file>:<line>, and prov why <file>:<line> print their coverage. prov health reports malformed lines and best-effort drop hints. Only a whole later human typed confirmation can produce ANDREW-CONFIRMED; a quote produces CITED or POSSIBLE.

Use --root <directory> (or FORGE_PROV_ROOT) for the experiment store and --transcripts <directory> (or FORGE_PROV_TRANSCRIPTS) for transcript inventory. Tests always supply temporary roots. The normal root is %LOCALAPPDATA%\forge-provenance; this build session does not write there.

Installation is explicit: prov install --settings <settings.json> --hook-path <absolute prov-hook.exe>. It backs up settings and adds marked hook entries. prov uninstall --settings <settings.json> removes only those entries from current settings. prov wipe --root <directory> removes experiment data, preserving tracked decisions and unrelated root files. Uninstall before wiping an installed experiment. No live installation or one-day soak is part of this build.

prov decide add --rule "..." --source <path:line> --agent-proposed creates a pending decision. --quote "..." verifies a citation against local human prompt evidence. prov decide pending prints the exact accept/reject lines. There is no agent acceptance option. Tracked .forge/decisions.jsonl rows without matching local ledger evidence remain claims.

See plan v5 and probe evidence and open contracts. Codex, agy, Grok and Muse are uncovered beyond observed spawn/dispatch/commit facts. Incomplete payloads, missing transcripts, uncertain joins and broken operation chains downgrade attribution. Treat all output as untrusted text; future UIs must use encoded text rendering.