gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainbd3591c7conductor: gates run on the live day44 binarymremain/missions/K8-tickets.md

4.7 KB

  1. # Mission K8: read linked tickets as the spec source (kunibert#8)
  2. Task (his words, kunibert#1): "basically we want [the consultant] now to build a similar tool with gitoria and hybriel."
  3. This step only: Kunibert reads the tickets a PR links to, with its own read token, and the model reviews the PR's spec axis against them. Decided (Apollo, the design consultant): gitoria only lists the ids in `pull.tickets` (`project#n`); Kunibert fetches the content from tickets.worldapi.org itself.
  4. ## Read first
  5. - docs/reviewer-design/4-apps-api-review.md points 17, 18, 20; docs/reviewer-design/2-prompts-and-memory.md (the earlier reviewer's spec handling); 1-design-and-lessons.md (spec axis lessons).
  6. - Contract v1.2 §4 `pull.tickets`: /media/STORAGE/projects/WorldAPI/gitoria.worldapi.org/docs/apps-api.md.
  7. - Tickets API: /media/STORAGE/projects/antcolony-docs/docs/tickets-for-sessions.md. `GET https://tickets.worldapi.org/api/projects/<project>/tickets/<n>` with `Accept: text/markdown`, a `User-Agent` and `Authorization: Bearer <token>` returns title, description and the history with comments, oldest first.
  8. - Existing code: lib/review-prompt.hl, lib/review-wake.hl, lib/runner.hl, lib/run-job.hl, lib/gitoria-api.hl, reports/K7-wiring.md.
  9. - Hybriel: docs/HL-PRIMER.md, docs/CODE-ORDER.md; hl:fetch (plugins/fetch and its page under /media/STORAGE/projects/hybriel/projects/homepage/generated/pages/).
  10. Copy working shapes from the docs. Not covered → DOCS line; framework gap → GAP line with a minimal repro, no workaround. Hybriel .hl only in lib/, tools/, service/ (Python only for fakes/tests in scratch).
  11. ## Build
  12. 1. **lib/tickets.hl**: fetch each `project#n` (validate the form strictly; at most 10 tickets per PR; one timeout; a 404/403 becomes "not readable" in the spec file, never a crash). Tickets base URL and token file path come from the service config (token file mode 600, never logged). A run with no token configured or no tickets → today's "no ticket linked" prompt line.
  13. 2. **Spec file**: write `.kunibert/spec.md` into the job's worktree: per ticket its id, link, title, description and comments oldest first, with a header line telling the model that a later comment overrules the description and earlier comments. Cap the total size (e.g. 60 KB; cut the oldest comment bodies first, keep the description and the newest comments; say what was cut).
  14. 3. **Prompt**: when spec.md exists, the spec axis line in lib/review-prompt.hl points to it (keep Kunibert's existing spec-axis rules; don't add new rules here, another ticket does that). Also the PR title and body go into the prompt as context (they are part of the spec reading, the design consultant point 18 "read the PR description before calling a requirement missing").
  15. 4. **Wake-up**: tickets are fetched again on every run. When spec.md differs from the last run's (store a hash in the PR state), the wake prompt says "the linked tickets changed since your last review" and shows that the file is there; unchanged → no mention.
  16. 5. **Sources of ids**: `pull.tickets` from gitoria (passed through the job/runner: the runner already does GET pulls/N in gitoria mode, use that). In the local `review` mode a `--tickets project#n,...` option.
  17. ## Proof (fake codex only; no real codex)
  18. - A fake tickets server in scratch (port 8840–8859, check `ss -ltn`) serving two tickets in markdown, one with a comment that overrules its description; one id that answers 404.
  19. - Run review-pr against K7's fake gitoria (copy it to K8 scratch; give PR 1 `tickets: ["demo#1","demo#2","demo#9"]`): spec.md has both tickets in order, the overrule header, "demo#9 not readable"; the prompt the fake codex got points to spec.md and has PR title/body.
  20. - Change a comment on demo#1, re-run on a new head → wake prompt says the tickets changed; re-run again unchanged → no mention.
  21. - Size cap: a huge ticket → spec.md under the cap, newest comments kept, cut noted.
  22. - Token: the token value appears in no file, log or argv (grep).
  23. - One REAL read-only fetch, to check the format: `GET https://tickets.worldapi.org/api/projects/kunibert/tickets/1` with the token file ~/.config/kunibert/tickets-token through lib/tickets.hl (GET only, nothing written; do not print the token). Show the resulting spec.md section.
  24. - K7 scripts/proof.py still passes.
  25. Stop every process you started by its PID.
  26. ## Limits
  27. About 60 tool calls. No real codex, no sudo, no writes to tickets (GET only, the one real fetch above), no network beyond localhost and that one GET, no commits, no messages to others. Scratch only under /media/STORAGE/claude-scratch/kunibert/K8/.
  28. Runtime: /media/STORAGE/projects/hybriel/native/zig-out/bin/hybriel, launched from /media/STORAGE/projects/kunibert.
  29. Report: /media/STORAGE/projects/kunibert/reports/K8-tickets.md (files, exact commands, proof output, DOCS/GAP lines, open points). Stop when done or blocked.

Branches

Latest commits

  • bd3591c7conductor: gates run on the live day44 binarymre
  • 47f747a7records: jukebox #9 fix livemre
  • 0a3169fdMerge branch 'vendored-size' into mainKunibert
  • e447bb09Vendored size fix: keep renames with an app side whole; type the filter parameter (L10)mre
  • 99ccc742Vendored size fix: no renames in the app diff, filter the resumed delta toomre
  • 1a52e100|||PR Diff size limit counts only app files when vendored paths are setmre
  • 50a1867estatus: jukebox #9mre
  • c57484e6log: jukebox #9 diff sizemre
  • 795a20carecords: guard fix live (PR 8)mre
  • 6981d96fMerge branch 'fresh-on-nocmd' into mainKunibert
  • 37c47840runner: one shared prompt for both fresh-session fallbacks (L16)mre
  • f945d2e1|||PR runner: a resumed run with no command on a new head gets one fresh session instead of a tool errormre
  • 10b2a49estatus: PR 314, guard fix proposedmre
  • e73995a3log: hycon PR 314 approved after fresh reviewmre
  • f60427falog: hycon PR 314 false tool errormre
  • 481974f7log: Hermes accepts PR 259 findingmre
  • bb0976acrecords: hycon PR 259 design findingmre
  • 5c637c24records: hycon PR 259 false tool errormre
  • a344c406log: routger 132 reviewedmre
  • 56e70dcbrecords: review time limit 1800 s (routger 132)mre