gitoria
All repositories: gitoria
4.8 KB
# W39 reportStatus: blocked before implementation. Branch `w39-create-api` starts at `a2ae830`. The mission explicitly says, “A framework gap: DOCS/GAP line with a tiny repro, no workaround, no hand-written JavaScript.” WORKER-RULES also says, “At a Hybriel gap STOP, put a minimal repro in .scratch/ and report it.” I followed that stop instruction after confirming the existing helper cannot satisfy the required malformed-JSON response.Files and commits: `b5f7218759f5ace7a010e51edb90fd22f8030c2e` (`Record malformed JSON blocker for repository creation`) adds `.scratch/w39-json/{parse.hl,project.hl,parse.log,http.log,response.txt,theme.log}`. This report is committed separately. No application source, README, contract or deployment configuration was changed. The endpoint and `tests/create-api.mjs` remain unimplemented. The vendored bin directory was copied, not linked or changed.DOCS: Read WORKER-RULES and RULINGS, HL-PRIMER, CODE-ORDER, COMPONENTS “hl:web — a function route and its request”, §9 Data and §11 Routing, and archived web ARCHITECTURE. Read every app file named under Read first, plus app-auth, reviews, deploy.sh, util, repos-helpers, limits gate and apps API contract. The primer describes runtime errors and `on Error`, but does not provide a recoverable JSON parse result suitable for this helper.GAP: With the unchanged vendored runtime, `JSON.parse('{"name":}')` aborts with exit 1. The existing `jsonOfRequest` accepts its opening/closing braces, reaches `lib/api-helpers.hl:33:18`, and the HTTP function route returns 500 text/plain instead of 400 JSON with `error.code = invalid_json`. This happened twice. No parser workaround or JavaScript was added.Reproduce from this worktree (own storage only):```bashLC_ALL=C ./bin/hybriel .scratch/w39-json/parse.hlGITORIA_STORAGE="$PWD/.scratch/w39-json/storage" GITORIA_GIT="$PWD/.scratch/w39-json/git" HL_PORT_BASE=8721 LC_ALL=C ./bin/hybriel .scratch/w39-json/project.hl# In another shell after listening on 8720:curl --max-time 5 -i -X POST http://127.0.0.1:8720/parse -d '{"name":}'```Validation: The direct language repro exits 1 as expected for the defect. HTTP controls returned 200 with `{"name":"valid"}` and 400 `invalid_json` for `hello`. Malformed `{"name":}` returned 500 twice, failing the required behavior. These are diagnostic observations, not a completed create-API gate. `LC_ALL=C node theme/check-theme.mjs .` reports 78 files, 0 problems (run twice).The mission's stop instruction prevented starting the remaining gates; no passed/failed assertion counts are available for gates not run:| Gate | Passed | Failed | Result || --- | --- | --- | --- || theme/check-theme.mjs | 78 files checked | 0 problems | Passed || tests/signin-return.mjs | — | — | Not run || tests/browser.mjs | — | — | Not run || tests/security.mjs | — | — | Not run || tests/private.mjs | — | — | Not run || tests/ident-access-gitoria.mjs | — | — | Not run || tests/apps.mjs | — | — | Not run || tests/pull-numbers.mjs | — | — | Not run || tests/pull-ssh.mjs | — | — | Not run || tests/app-token.mjs | — | — | Not run || tests/reviews.mjs | — | — | Not run || tests/events.mjs | — | — | Not run || tests/pr-page.mjs | — | — | Not run || tests/status.mjs | — | — | Not run || tests/limits.mjs | — | — | Not run || tests/status-keyed.mjs | — | — | Not run || tests/create-api.mjs | — | — | Not implemented |Contract note for Vinzenz: Once unblocked, document POST `/api/repos` with the person's `gtr_` bearer token, fields name/description/org/private/members, 201 with the existing GET repo row, and the mission's 400/401/403/409/413/422 errors. Existing `/api/repos` routes have no organization spellings. The GET row has no clone fields; this work adds no fields. `docs/apps-api.md` remains untouched.Open risks and next steps: A recoverable JSON parser/error mechanism must first be available on the approved vendored set, or the conductor must explicitly revise the mission constraints. Then implement the thin route and topic logic using createRepoIn, resolve every member before creation, add the gate and README curl example, and run every required gate. Full mission acceptance is not achieved and no deploy/push/ticket write was attempted.Cleanup: The first attempted background launch PID 886920 had already exited before testing. The actual server PID 888498 was terminated after checking its cwd was this worktree; its shell PID 888483 exited with status 143. All three PIDs are gone. No listener remains in 8720–8739. No Chrome or tunnel was started, no browser tab was opened, and the Chrome cwd scan found no process in W39. Thus there is no changed Chrome page list to reconcile. Test data stayed in `.scratch/w39-json/`.Budget: About 24 tool requests: roughly 13 reading/setup, 8 repro/validation/cleanup, and 3 report/commit operations. No background gate remains running.
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
- 1a76055cDocument repository creation APImre
- 4d779b3bAdd create-api gatemre
- 88563122Add POST /api/repos for user tokensmre
- b00860e3Create repositories with member checks in createRepoInmre
- 0a38f236Report repository creation API blockermre
- b5f72187Record malformed JSON blocker for repository creationmre
- a2ae8302logmre
- 6947cd58logmre
- 2175e48clogmre
- 40eb3ca1gitoria#38: review package, logmre
- 06a5a50egitoria#38: deploy b8252ca, logmre
- b8252ca0gitoria#46: W46b report, logmre
- 50093aafgitoria#46: statuses keyed by app + context (merge w46b-keyed)mre
- dd0267edgitoria#46: fix a label in the keyed gatemre
- b1dcb580gitoria#46: statuses keyed by app + context, required = app + context, old rows still readmre
- 2287363egitoria#47: W47 report, logmre
- 9f502db1gitoria#46: W46b briefmre
- 9678a8f3gitoria#46: contract v1.4, statuses keyed by app + contextmre
- bdcbbaa9gitoria#47: rate limits, status read route, statuses + required on the pull (merge w47-limits)mre
- 772c401fgitoria#45: W45 report, logmre