kunibert
All repositories: gitoria
3.7 KB
$mode = 'static'import { RULES_VERSION, CALIBRATION, noSuggestions } from './review-prompt.hl'rules = "Memory rules:- A thread that is resolved, or where the author replied with a reason you accept, is settled: never raise that point again, not as a new finding and not reworded.- If the author shows your point was wrong, say so plainly in that thread (start the reply with \"Withdrawn:\") and resolve it; do not restate it.- If a reply does not convince you and the point still matters, answer in that thread through \"replies\" (thread key, e.g. T3) instead of a new finding. Keep it short.- If a thread's problem is fixed by the new code, reply briefly with resolve: true.- \"findings\" holds only NEW points: problems in the new changes, or ones you missed before.- verdict reflects the whole PR as it stands now: unresolved blocking points still count.- Scope is exactly .kunibert/pr.diff (merge base..head). Code that arrived by merging the base branch into the PR is not the author's change: never review it and never report it as scope creep."wakePrompt = (Hybrid state, String sha, Boolean rewritten, Boolean emptyDelta, Hybrid updates, Boolean forced, String specChanged = null) => {let parts = ['Wake-up: pull request head is now ' + sha.slice(0, 10) + '. The working tree is that commit.']if (forced) { parts.push('The author asked for a review again: look again at your open threads and the changes below, still within the memory rules below; a full fresh review is @kunibert reset, not this.') }if (rewritten) { parts.push('The branch history was rewritten since your last review, so there is no reliable delta: re-read .kunibert/pr.diff for what changed.') }else if (state.head != sha && emptyDelta) { parts.push('New commits since your last review (' + state.head.slice(0, 10) + '..' + sha.slice(0, 10) + ') touch none of this PR\'s files (e.g. a merge from the base branch): there is no new PR code to review.') }else if (state.head != sha) { parts.push('Changes since your last review (' + state.head.slice(0, 10) + '..' + sha.slice(0, 10) + ', limited to the files of this PR, so changes merged in from the base branch are left out) are in .kunibert/delta.diff. Review those. The whole PR diff, which is the scope, is in .kunibert/pr.diff: a delta hunk that is not part of it came from the base branch.') }else { parts.push('No new commits since your last review; do not re-review code you already reviewed.') }if (specChanged == 'changed') { parts.push('The linked tickets changed since your last review: the current text is in .kunibert/spec.md (a later comment overrules the description and earlier comments). Re-read it before you judge the spec axis.') }else if (specChanged == 'gone') { parts.push('The linked tickets changed since your last review: none is linked or readable now, so there is no .kunibert/spec.md any more.') }if (updates.length > 0) { parts.push('Updates on your review threads since your last run:') parts.push(updates.join('')) }else { parts.push('No updates on your review threads.') }if (state.pending.length > 0) { parts.push(state.pending.join('')) }let open = []for (t of state.threads) { if (!t.resolved && !t.settled) { open.push(t.key) } }if (open.length > 0) { parts.push('Keys of the threads your last review posted (for "replies"; resolve those the new code fixes):' + open.join('')) }parts.push('Settled keys (never raise again): ' + state.settled.join(', '))if (state.rules == null || state.rules < RULES_VERSION) { parts.push(CALIBRATION) }parts.push(rules)parts.push(noSuggestions)parts.push('Answer in the same JSON format as before (summary, axes, verdict, findings, replies, gates). No gates have run: gates="not run".')return parts.join('')}
Branches
Latest commits
- 070e01a4Records: parkmre
- bf8af0dcRecords: v1.4 checkedmre
- 44af321bRecords: contract v1.4mre
- 310f3fd0Records: outdated semanticsmre
- 268ebfe6Records: #11 proven live and closedmre
- 88e8aad3Records: K11 verified and deployedmre
- cd4cb09cNo review and status error when the model's tools did not run (kunibert#11)Kunibert
- a6b54efaStatus updatemre
- 5a72268eRecords: #4-#10 done, #11 started, review package on #1mre
- 194c7da6Records: real proof greenmre
- cdfa94a9Records: AppArmor profile for the review sandboxmre
- c1bf02d8Status: sandbox blockermre
- 88aaacc5Records: real proof part 2 (posting works, sandbox blocked by AppArmor userns)mre
- 401df4e8Records: review user logged inmre
- 6ca681b3Records: login command, status cleanupmre
- 6b8d763cRecords: review user, device login startedKunibert
- 07025b99Open the job worktree read-only for the review user before each model runKunibert
- 2a44bd54Runner CLI: --review-user/--codex-bin/--work-dir work in every modeKunibert
- 2177f66fReview model runs as its own unix user (reviewUser, codexBin, workDir)Kunibert
- 35df8306Records: live service on byrodin, real proof part 1Kunibert