gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit268ebfe6268ebfe6Records: #11 proven live and closedmre268ebfe6/missions/K9-spec-rules.md

3.5 KB

  1. # Mission K9: Konrad's live rules in Kunibert's prompts (kunibert#9)
  2. Task (his words, kunibert#1): "basically we want vinzenz now to build a similar tool with gitoria and hybriel."
  3. This step only: bring Konrad's current prompt rules into Kunibert's fresh and wake-up prompts, word for word, as Vinzenz decided (docs/konrad-handover/4-apps-api-review.md point 18; texts in docs/konrad-handover/5-konrad-rules-verbatim.md).
  4. ## Read first
  5. - docs/konrad-handover/5-konrad-rules-verbatim.md (all of it: REACH, CONTRACT, CHECKLIST, SPEC_SOFT, CALIBRATION, memory RULES, the wake-prompt note, the schema note, Vinzenz's notes).
  6. - docs/konrad-handover/4-apps-api-review.md points 18, 24; reports/K8-tickets.md (spec.md, how the prompt points to it).
  7. - Existing: lib/review-prompt.hl, lib/review-wake.hl, lib/review-memory.hl, lib/runner.hl, schema.json.
  8. - Hybriel: docs/HL-PRIMER.md (strings: no backslash escapes; see the K6 DOCS line), docs/CODE-ORDER.md.
  9. ## Build
  10. 1. **Fresh prompt** (lib/review-prompt.hl): use Konrad's PROMPT structure: correctness line followed by REACH, CONTRACT, CHECKLIST (indented); the spec line with spec.md text (Konrad's line 170 wording, `.konrad` → `.kunibert`) + SPEC_SOFT when tickets exist, else the "no ticket" line. Kunibert's existing extra spec rules stay where they don't contradict (its stricter "moving work to a separate PR is never a finding" stays, Vinzenz confirmed it); remove duplicates that SPEC_SOFT/CHECKLIST now say word for word. No SUGGEST anywhere; keep the existing "no suggestion blocks" line.
  11. 2. **Names**: only in CONTRACT and REACH replace ASI's names with ours, keep every other word: CONTRACT services → "the worldapi.org services (e.g. gitoria, tickets, ident, HyperConductor and the repos on gitoria that read each other's data)"; REACH producers → "Hybriel hl:data schemas and field configs, JSON schemas, mapper functions, DB constraints". Show both lines in the report next to Konrad's original.
  12. 3. **Wake-up** (lib/review-wake.hl): RULES word for word (`.konrad` → `.kunibert`, Konrad → Kunibert), including "Withdrawn:". A withdrawal is a normal `replies` entry (body starts "Withdrawn:", resolve true): no schema change; check the posting code treats it like any resolve.
  13. 4. **CALIBRATION once**: a `RULES_VERSION = 1` constant; the per-PR state stores `rules`; a session whose stored rules < RULES_VERSION gets CALIBRATION (without the SUGGEST line) once in its next wake prompt, right before RULES; then `rules` is saved. New sessions start at RULES_VERSION.
  14. ## Proof (fake codex only; no real codex)
  15. - Print the full fresh prompt with and without spec.md, and a wake prompt for an old-state PR (rules missing) and again after (no CALIBRATION the second time). Put them in scratch and quote the relevant lines in the report.
  16. - diff Kunibert's rule lines against the verbatim file: only the named replacements differ (show the check, e.g. a script that strips the known replacements and compares).
  17. - A fake codex reply with "Withdrawn: …" + resolve true → posted as reply + resolve to the fake gitoria (reuse K7/K8's proof setup).
  18. - K7 scripts/proof.py and K8's proof still pass.
  19. Stop every process you started by its PID.
  20. ## Limits
  21. About 50 tool calls. No real codex, no sudo, no network beyond localhost, no commits, no tickets, no messages to others. Scratch only under /media/STORAGE/claude-scratch/kunibert/K9/.
  22. Runtime: /media/STORAGE/projects/hybriel/native/zig-out/bin/hybriel, launched from /media/STORAGE/projects/kunibert.
  23. Report: /media/STORAGE/projects/kunibert/reports/K9-spec-rules.md (files, exact commands, proof output, DOCS/GAP lines, open points). Stop when done or blocked.

Branches

Latest commits

  • 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
  • 7480a98dkunibert.service: SIGTERM stop is a clean exitKunibert
  • 3a8d93f9gitoria client: parse only JSON answers, accept a plain-text errorKunibert
  • c9b48bfeVendor Hybriel plugins; deploy ships bin/ from zig-outKunibert
  • a41ba15fKunibert: event intake, git cache, review runner, posting, linked tickets, deploy filesKunibert