gitoria
All repositories: gitoria
3.0 KB
# W46b — statuses keyed by app + context (gitoria#46, contract v1.4)Branch `w46b-keyed` (worktree /media/STORAGE/claude-scratch/gitoria/W46b/wt), base 9678a8f. Not pushed, not deployed.## Built- 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).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).- components/settings.hl: an App `select` (options from the connected apps, value = app id) + context input; list shows "App name · context".- 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.- Commits: "gitoria#46: statuses keyed by app + context, required = app + context, old rows still read"; "gitoria#46: fix a label in the keyed gate".## Gates (LC_ALL=C), all 0 failedsignin-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.## Contract v1.4 coveredKeyed (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.## DOCS/GAPnone.## Open risks- Test decodes: status.mjs `raw` switched from latin1 to utf8 because of the "·" separator.- 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".- Old-shape status rows keep their old key until the same app PUTs again; harmless (reads ignore key; new-key uniqueness cannot collide).
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 07ab845bvendor: Hybriel set-day50 (run() leak fix #335)mre
- 71b2fa4blog: hybriel#335mre
- bd94cc7elog: #25 cause found (run() leak)mre
- 565cb508log: H25 round 1mre
- 90a0af84log: H25 startedmre
- 87bd53b8mission H25mre
- 71a746cflog: day48 livemre
- bf568e14log: V48 mergedmre
- 09955dedMerge v48: Hybriel set-day48, theme layouts ce4a0bamre
- f2a2b0cevendor: Hybriel set-day48, theme layouts ce4a0bamre
- 5d0834e7log: Apollo model rulemre
- fe8e5bd5log: #25 sample, V48 missionmre
- 8580c5d9log: theme fix from Atlasmre
- 46823d93log: Apollo budget correctionmre
- f6d32341log: Apollo on budget and #25 nextmre
- d7184f53log: batch live, #25 evidencemre
- 5e25e816log: W61 mergedmre
- aafe330dTidy: drop evidence JSON (kept in scratch), collapse blank linesmre
- aca1fda1Merge W61: theme from layouts 17e0f03, Views refer to Style rules (gitoria#37 #27)mre
- 03cb650blog: W61 theme decisionmre