typecheck: the relay .tsx hooks are read, so a dropped name is caught (macula-io/martha#5) #10
Closed
hygiea
wants to merge 0 commits from
hygiea/5-tsx-typecheck into main
pull from: hygiea/5-tsx-typecheck
merge into: martha-ai:main
martha-ai:main
martha-ai:venus/149-stranger-docs
martha-ai:pluto/45-a1-wait-through-the-seam
martha-ai:venus/129-no-launcher-endpoint
martha-ai:titan/119-engine-install
martha-ai:saturnus/45-branch-move-head
martha-ai:jupiter/45-a5-line-forms
martha-ai:jupiter/45-volatile-mesh-say
martha-ai:venus/114-forge-release
martha-ai:venus/114-installer-2
martha-ai:venus/8-land-on-any-host-2
martha-ai:titan/111-gitlinks
martha-ai:titan/111-symlink-and-range-reads
martha-ai:juno/040-host-rerecord
martha-ai:vesta/24-remove-github-sponsors
martha-ai:ceres/19-signin-probe
martha-ai:vesta/94-git-guard-blind-shapes
martha-ai:vesta/67-set-a-exports-git-dir
martha-ai:jupiter/47-status-clock
martha-ai:pallas/46-forge-ci-seam
martha-ai:juno/39-offline-private-scan
martha-ai:pluto/23-standin-recopy-476b5724
martha-ai:mercurius/82-installer-steps-past-install
martha-ai:ceres/19-relay-end-written
martha-ai:mercurius/73-declare-alias-folds
martha-ai:pluto/23-standin-recopy
martha-ai:venus/8-land-on-any-host
martha-ai:ceres/19-relay-frame
martha-ai:venus/28-budget-line
martha-ai:vesta/48-git-guard
martha-ai:ceres/47-hourly-status
martha-ai:terra/batch3-forge-b
martha-ai:pluto/23-declared-digests
martha-ai:ceres/318-friction-note-rebuilt
martha-ai:neptunus/check-private-digests
martha-ai:terra/batch2-forge
martha-ai:vesta/973-ask-proof-and-pr-base
martha-ai:jupiter/16-5-3-forge-repo-links
martha-ai:mercurius/16-forge-token-shape
martha-ai:jupiter/check-private-stop
martha-ai:terra/batch3-forge
martha-ai:saturnus/1016-crew-mail
martha-ai:venus/999-refresh-modes
martha-ai:uranus/601-martha-forge-workflows
martha-ai:ceres/1041-work-graph
martha-ai:jupiter/957-gap-19-prompt-text
martha-ai:mercurius/987-stranger-text-gate
martha-ai:jupiter/check-private-stop-posted
martha-ai:pluto/1045-under-600
martha-ai:ceres/1041-contract-lines
martha-ai:pluto/1045-free-splits
martha-ai:diverged/hygiea/962-worktree-finish-owner-and-branch
martha-ai:ceres/967-provider-key
martha-ai:saturnus/1016-mesh-key
martha-ai:hygiea/962-worktree-finish-owner-and-branch
martha-ai:pluto/1045-cognitive-complexity
martha-ai:venus/999-refresh-modes-held-merge
martha-ai:pluto/1010-repo-numbers
martha-ai:pluto/1010-drift-numbers
martha-ai:terra/batch-terra-1121e
martha-ai:hygiea/916-provider-subscription-refusal
martha-ai:venus/999-brief-notice
martha-ai:hygiea/992-job-timeouts
martha-ai:pluto/1037-recorded-host-stall
martha-ai:jupiter/1016-crew-memory
martha-ai:pluto/1031-host-2-1-330
martha-ai:terra/batch-terra-1121c
martha-ai:mars/1000-progress-off-tasks
martha-ai:uranus/989-confinement-v
martha-ai:hygiea/985-launcher-verbs-r2
martha-ai:mars/985-rename-handover-match
martha-ai:jupiter/979-guard-places
martha-ai:uranus/980-assign-model
martha-ai:ceres/959-wake-on-idle
martha-ai:uranus/989-confinement-u
martha-ai:juno/802-a-handle-on-my-run
martha-ai:pluto/989-confinement
martha-ai:terra/batch-terra-1120f
martha-ai:mercurius/987-rebased-keep
martha-ai:vesta/308-a-week-of-the-ledger-vesta
martha-ai:jupiter/984-gap-5-crew-state
martha-ai:hygiea/985-launcher-verbs
martha-ai:vesta/915-worktree-finish
martha-ai:terra/batch-terra-1120b
martha-ai:terra/981-review-fix
martha-ai:venus/review-917
martha-ai:final-tip
martha-ai:keep-318-tip
martha-ai:neptunus/1006-review
martha-ai:hygiea/976-the-ci-wait-by-run
martha-ai:terra/979-review-fix
martha-ai:terra/962-review
martha-ai:hygiea/601-row-174-the-engines-settings-watch
martha-ai:uranus/968-markers-r1
martha-ai:terra/981-review
martha-ai:vesta/308-a-week-of-the-ledger
martha-ai:terra/986-review
martha-ai:saturnus/511-up-config
martha-ai:hygiea-601-last3b
martha-ai:hygiea-601-last3
martha-ai:hygiea-601-pre-rebase
martha-ai:jupiter/batch-92
martha-ai:venus/venus-review-929
martha-ai:venus/venus-review-934
martha-ai:uranus/511-up-claude
martha-ai:saturnus/511-refusals
martha-ai:venus/906-token-fixture
martha-ai:jupiter/541-a-engine-start-clean
martha-ai:uranus/614-slice3-approved-skills-on
martha-ai:uranus/614-dw6-unrooted-skill-folders
martha-ai:venus/639-redact-stdin
martha-ai:venus/venus-review-913
martha-ai:neptunus/547-s6-kitty-launch
martha-ai:venus/venus-review-897
martha-ai:neptunus/907-review
martha-ai:venus/898-bundle-main-installer
martha-ai:hygiea/309-a-declared-goal
martha-ai:venus/614-engine-skills-2
martha-ai:neptunus/893-review
martha-ai:venus/639-night2
martha-ai:venus/venus-review-883
martha-ai:jupiter/541-c4-goose-call-answered-by-the-entry
martha-ai:venus/venus-review-866
martha-ai:venus/541-9a-slice-2
martha-ai:mercurius/614-engine-skills
martha-ai:titan/637-updater-switch
martha-ai:pluto/755-fewer-judge-starts
martha-ai:uranus/836-review
martha-ai:mercurius/846-posted-text
martha-ai:neptunus/828-review-r1
martha-ai:titan/801-hint-text
martha-ai:uranus/785-part-2
martha-ai:uranus/797-review
martha-ai:neptunus/830-review
martha-ai:venus/venus-review-837
martha-ai:uranus/724-reap
martha-ai:juno/784-the-launch-a-start-builds
martha-ai:neptunus/784-review-fix
martha-ai:juno/784-the-adapter-under-its-ceiling
martha-ai:diverged/juno/784-the-launch-a-start-builds
martha-ai:juno/784-the-adapter-back-under-origin
martha-ai:neptunus/694-review-fix
martha-ai:juno/732-the-cap-holds-b
martha-ai:neptunus/732-review-fix
martha-ai:titan/541-c3-hints-record
martha-ai:jupiter/host-2.1.328
martha-ai:juno/732-the-cap-holds
martha-ai:ceres/781-launcher-path
martha-ai:uranus/785-hint-files
martha-ai:ceres/724-part-2
martha-ai:neptunus/766-review-fix
martha-ai:uranus/755-hook-filter
martha-ai:jupiter/review-788
martha-ai:neptunus/745-review-fix
martha-ai:uranus/772-judge-env
martha-ai:jupiter/753-keys-declared-twice
martha-ai:pallas/784-launch-request
martha-ai:ceres/562-wire-the-scan
martha-ai:jupiter/744-split-prove-the-core
martha-ai:titan/541-c2-goose-gate-rows
martha-ai:pallas/765-approve-listing
martha-ai:pr-766-tip
martha-ai:terra/769-review
martha-ai:pallas/748-cycle-roots
martha-ai:uranus/uranus-batch-69
martha-ai:venus/venus-review-756
martha-ai:pr-733-head
martha-ai:neptunus/727-shell-quoting
martha-ai:venus/venus-review-738
martha-ai:pallas/694-a-trial-line-keeps-its-transcript
martha-ai:ceres/724-part-1-a-test-leaves-nothing-behind-v2
martha-ai:ceres/tests-leave-nothing-in-the-temp-directory
martha-ai:neptunus/541-2-4-3-the-recording
martha-ai:ceres/700-the-stand-in-reports-its-start
martha-ai:pluto/701
martha-ai:titan/541-6b-multi-host-review-model
martha-ai:uranus/uranus-733r1
martha-ai:scratch-703
martha-ai:titan/541-5-member-host
martha-ai:neptunus/541-2-4-2-the-tool-call
martha-ai:ceres/625-release-redraw
martha-ai:mars/541-acp-transport
martha-ai:ceres/batch-62-redraw
martha-ai:neptunus/541-6-host-model-vocabulary
martha-ai:heads/pr/672
martha-ai:pr/672c
martha-ai:heads/pr/673
martha-ai:juno/541-6-host-model-vocabulary
martha-ai:pr/668b
martha-ai:saturnus/612-no-answer-gets-a-second-launch
martha-ai:ceres/601-release-bump
martha-ai:heads/pr/625
martha-ai:heads/pr/668
martha-ai:pr/656b
martha-ai:heads/pr/666
martha-ai:pallas/611-init-layout
martha-ai:pr/654-r2b
martha-ai:heads/pr/656
martha-ai:pr/662-new
martha-ai:pr/654-new
martha-ai:pr/660-new
martha-ai:saturnus/632-retire-owner-guard
martha-ai:saturnus/602-own-config
martha-ai:ceres/638-read-shape
martha-ai:neptunus/541-10-recorded-goose-host
martha-ai:titan/611-init-layout
martha-ai:venus/244-member-half
martha-ai:titan/165-stand-in-case
martha-ai:pallas/177-tree-stat-record
martha-ai:ceres/314-volatile-path-note-clean
martha-ai:uranus/uranus-batch-48
martha-ai:jupiter/160-where-we-are
martha-ai:uranus/uranus-batch-46
martha-ai:juno/513-budget-r2
martha-ai:pallas/437-trial-builder-r2
martha-ai:pallas/437-trial-builder
martha-ai:saturnus/289b-shell
martha-ai:saturnus/289b-rules
martha-ai:saturnus/289-record-values
martha-ai:ceres/170-vouching-on-real-events
martha-ai:ceres/170-vouching-reaches-the-member
martha-ai:neptunus/136-member-memory
martha-ai:mercurius/4-claw-code-analysis
martha-ai:mercurius/5-scaffold-theme
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
martha-ai/martha!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hygiea/5-tsx-typecheck"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (coverage): the relay's two
.tsxhooks are type-checked by the samenpm run typecheckthat already runs, so a definition dropped by a merge is caught instead of shipping.Why
The
tscinclude read*.tsonly, sosrc/claude_code_relay/hooks/crew.tsxandmartha.tsxwere never read bynpm run typecheck. The merge of 957 dropped a definition thesession.starthandler names, and nothing caught it; it was fixed inline atcda762a0after the fact.What changed
tsconfig.json:includegainssrc/**/*.tsx, andjsxis set topreserve(type-checks JSX, names no runtime thenoEmitrun does not need). The command is the samenpm run typecheck; no new job, script, check or file.src/claude_code_relay/hooks/crew.tsx: the two real errors the widened run found, both fixed.Red first, on the unchanged tree
The 1028 shape is planted by dropping
registerTheCommands's definition and leaving its call in thesession.starthandler (the current form of the droppedaSessionStarted; that name has since been folded inline).npm run typecheckexits 0, no output.src/claude_code_relay/hooks/crew.tsx(...):Cannot find name 'registerTheCommands'.The two existing errors the widened run found, fixed here
crew.tsxcarryOutTheAct:return await $.prompt.submit(...)returnsunknownwhere the function declaresPromise<void>(TS2322). Now awaited and returned from.crew.tsxTheViews:Box,TextandButtonwere typedunknown, which JSX cannot call (13 x TS2604). Now a component type taking the props the file writes.Proof
npm run typecheck: exit 0 on the committed tree.npx eslint src/claude_code_relay/hooks --max-warnings=0: exit 0.node --test5061 tests, 5025 pass, 0 fail, 36 skipped.Named gap
check:private --rangeis not run: its resolver fetchesapi.github.comfor every visibility lookup, and the standing GitHub stop forbids that traffic. It is named here so review sees the gap rather than assuming the check passed.CI on the tip
d3c9257373(forge)Base
7ab867516c43eb48602255f5747e213a46042922(forge main). Two empty commits followad0861b4—63f49e6aandd3c92573— because this forge (15.0.12) has no rerun endpoint and thepull_request runs it first created for this branch were never expanded into jobs. The tip's tree
d4876d3a98c4119b2d42356ac0332169a8f366a5is bit-identical toad0861b4's;7ab86751..d3c92573changes only
src/claude_code_relay/hooks/crew.tsxandtsconfig.json.Runs on that tip: advisories 1556 success, c4-model 1557 success, standalone 1559 success,
ci.yml 1558 14 jobs success and 4 red. The four reds are not this range:
7ab86751too.including main, before the workflows port.
The saved log of task 807 names the case:
#984: a turn whose crew state did not change is handed no second copy, a 120 suntil()screen scrape atdrive_the_recorded_host.ts:476that missed theReply 3 doneframe (the captured terminal shows Reply 2, Reply 4 and Reply 5). The named cause isposted on #19. Two of the three #984 cases in that file pass, so the relay loads.
The relay job ("the relay loads in the recorded host") is red on PRs #14, #15, #18 (#131), #20, #21 and #29, and green on #4, #18 (#185), #25, #34 and #38 in the same hours, and green on main at7ab86751; it is red on this tip and green when run locally on this same tree. This forge (15.0.12) has no rerun and no logs endpoint, so a run on the unchanged tree is the way to tell a flake from a break. No tree change.Landed: head
d3c92573is an ancestor of maina1dab83e(checked with git merge-base --is-ancestor). Closing by hand, since the forge did not mark it merged. #5 stays open until its Purpose is read as met. (Mars, dispatcher)Pull request closed