Skip to content

Add guard/noise/git-memory to autoloop, new reason and predict workflows - #4

Merged
5uck1ess merged 5 commits into
mainfrom
feat/autoloop-guard-reason-predict
Apr 7, 2026
Merged

Add guard/noise/git-memory to autoloop, new reason and predict workflows#4
5uck1ess merged 5 commits into
mainfrom
feat/autoloop-guard-reason-predict

Conversation

@5uck1ess

@5uck1ess 5uck1ess commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Ported useful patterns from autoresearch, adapted to pikit's deterministic workflow model.

autoloop.yml — rewritten

  • Guard command: Guard: field — secondary command that must pass for changes to be kept, even if metric improved
  • Noise handling: Runs: field — run metric N times, take median (volatile benchmarks)
  • Git-as-memory: replaced scratchpad file with git log history reading; survives session crashes
  • Commit-before-measure: enables clean git revert on failure

reason.yml — new

  • Generate A → Adversarial critique → Generate B → Synthesize → 3 blind judges (parallel, randomized labels) → Tally → Converge or loop
  • Hardcoded label maps per judge (deterministic decode, no agent discretion)
  • Supports MODE: debate (skip synthesis)

predict.yml — new

  • Compact recon (entities/deps/clusters, <3k chars)
  • 3 domain analysts in parallel (arch, security, reliability), capped at 6 findings each
  • Devil's advocate debate: challenges ≥50%, adds non-code hypotheses
  • Deterministic priority ranking

All 107 validation tests pass.

5uck1ess added 5 commits April 7, 2026 10:39
autoloop:
- #1: Clarify comparisons are always against original baseline
- #2: Count only autoloop: commits (not Revert commits) for iteration limit
- #3: Constrain guard output to GUARD_PASSED/GUARD_FAILED on first line

reason:
- #4: Add loop max:8 on converge step for bounded stopping
- #5: Feed {{tally}} into generate-a so it gets previous winner
- #6: Report uses only tally+critique instead of all 6 step outputs

predict:
- #7: Inline finding format in all three analyst prompts
- #8: Broaden file extensions, respect user scope, exclude vendor dirs

readme:
- #9: Move predict/reason next to tri-* analysis group
@5uck1ess
5uck1ess merged commit e3be9f2 into main Apr 7, 2026
1 check passed
@5uck1ess
5uck1ess deleted the feat/autoloop-guard-reason-predict branch April 7, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant