gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3eeea7333eeea733log: 2026-11-09 PR flow plan and membersmre3eeea733/reports/W46b-REPORT.md

3.0 KB

  1. # W46b — statuses keyed by app + context (gitoria#46, contract v1.4)
  2. Branch `w46b-keyed` (worktree /media/STORAGE/claude-scratch/gitoria/W46b/wt), base 9678a8f. Not pushed, not deployed.
  3. ## Built
  4. - lib/statuses.hl: statusRows key = "<rid> <sha> <appId> <context>"; a PUT replaces only the calling app's row (`ownRow`: new key first, else the sha's rows matched on appId+context = old-shape rows, which are then updated in place and re-keyed — no migration, no script).
  5. requiredRows { rid, key "<rid> <appId> <context>", appId, context }; `requiredOf` = [{app:{id,name},context}] ("(removed app)" if gone) → pull.required via lib/pullsync.hl (unchanged file); `requiredList` rows "App name · context"; `requireContext(user, session, slug, appId, ctx)` (app must belong to this repo, picked by id); `missingOf`: met only by a success row of THAT app + context on the current head; removed app (or old entry without appId) → "(removed app) · ctx (app removed)", never met until the owner removes it (Remove by row id, unchanged).
  6. - components/settings.hl: an App `select` (options from the connected apps, value = app id) + context input; list shows "App name · context".
  7. - Tests: tests/status.mjs extended (Mallory same context stored apart, replaces only own row, required Mallory+ctx not met by Kunibert's success, Kunibert+ctx not met by Mallory's success, other-context success doesn't count, made-up app id refused, removed app → shown "(removed app)", Merge refused on server and button off, removed by row id); tests/limits.mjs required shape; NEW tests/status-keyed.mjs (in deploy.sh GATES): runs the OLD code (git archive 9678a8f) on the same storage, writes an old-shape row (also shows the old bug: Mallory replaced Kunibert), then the new code reads it, Mallory gets her own row, Kunibert's next PUT replaces the old row (2 rows, not 3), survives a restart.
  8. - Commits: "gitoria#46: statuses keyed by app + context, required = app + context, old rows still read"; "gitoria#46: fix a label in the keyed gate".
  9. ## Gates (LC_ALL=C), all 0 failed
  10. signin-return 3, check-theme ok, browser 266 (default port 8700 was held by another process, rerun on 8727-8729 — not a flake), security 82, private 158, ident-access 30, apps 95, pull-numbers 48, pull-ssh 20, app-token 42, reviews 98, events 52, pr-page 61, status 61, limits 53, status-keyed 13.
  11. ## Contract v1.4 covered
  12. Keyed (sha, app, context); GET statuses/pull.statuses all apps with app{id,name}; pull.required shape; removed app never met; PUT unchanged. Not covered/by design: an old-shape required row (no appId) would show "(removed app)" — live statusreq.db is empty so none exist.
  13. ## DOCS/GAP
  14. none.
  15. ## Open risks
  16. - Test decodes: status.mjs `raw` switched from latin1 to utf8 because of the "·" separator.
  17. - The select in Settings lists `apps` state (refreshes after add/remove in the page); no app → empty select, server refuses with "pick one of the apps connected".
  18. - Old-shape status rows keep their old key until the same app PUTs again; harmless (reads ignore key; new-key uniqueness cannot collide).

Branches

Latest commits

  • 3eeea733log: 2026-11-09 PR flow plan and membersmre
  • e7c2ff1fdocs: neutral name for the apps-api reviewmre
  • 120b7abdlog: step 3 queuedmre
  • 358474bflog: P50 livemre
  • 477d7bdcMerge branch 'p50'mre
  • 00efc06fP50 reportmre
  • e3f85afblog: commit mention slipmre
  • 4d1a4cf4log: #25 numbersmre
  • 1af0a60ddocs: H25 run() correctionmre
  • eefa2dbcRepo setting: refuse direct pushes to the main branch (pre-receive over HTTPS and ssh)mre
  • 8c8ba2f1log: PR flow announcedmre
  • fa00cd35log: Kunibert pings provenmre
  • 3a68cfaclog: components decisionmre
  • 87de8e31log: Kunibert connected to 9 app reposmre
  • c22aff69log: PR-only rollout startedmre
  • 25309981log: STOP and paused workers 2026-11-08mre
  • 5286803alog: worker briefs and reports of 2026-11-08mre
  • 85c86605log: 2026-11-08 Arachne on list shapemre
  • cb634512log: 2026-11-08 keyed lists livemre
  • 07c98d4aLists: keyed rows with @id, remove(id) and one whole-list assignment instead of hand-rebuilt loopsmre