Commit Graph
5 Commits
  • fix(frontend): key geo entries by page position and clear test-suite noise
    Zod 4: use the `error` param instead of the deprecated `message`.
    lint:deprecated missed these because tsgolint's no-deprecated does not
    resolve object-literal properties on a `string | Params` union.
    
    Geodata: key geo entry rows by page position. antd deprecates rowKey's
    index argument, and kind:value repeats within a page because the reader
    drops domain attributes (22 pairs in geosite_IR.dat, 108 in geosite_RU).
    
    Nord/PIA: the "All cities/regions" option used a null value, which antd
    warns on. Map it through a sentinel at the Select boundary so form state
    stays null, with tests that fail when the sentinel is not mapped back.
    
    Tests:
    - Run the oxlint guard through node; .bin/oxlint is a sh shim Windows
      cannot spawn, and the swallowed error left both guard cases vacuous.
    - Start unit workers with --no-experimental-webstorage; msw's localStorage
      probe made Node 25+ warn once per forked worker.
    - Set IS_REACT_ACT_ENVIRONMENT, which RTL never sets with globals: false,
      and settle the async updates it exposed inside act(). The row-cells
      memo test now fails when memo is removed.
    - Disable antd's click wave in Storybook; it re-rendered inside the next
      story's act() and tripped "not configured to support act".
    - Assert InboundFormModal's validation log instead of leaking it, and
      give the rule-form test a well-formed clients/list response.
  • ci: update Claude workflow model settings
    Use Claude Opus 5.5 with high effort for issue analysis and PR reviews.
  • fix(ci): keep a refused Claude credential from reddening a pull request (#6585)
    * fix(ci): keep a refused Claude credential from reddening a PR
    
    An expired subscription ends the claude-code-action step with exit 0, so the
    classifier that exists for "the API refused this run" never sees it -- its
    condition is a failed step -- and the final "posted nothing" step reddens the
    pull request although nothing is wrong with the repository.
    
    Verified against five real runs (35159059540, 35184688775, 35185722358,
    35186543654, 35187380192): step 8 success, step 10 found no cause, step 11
    failure, transcript {"error":"oauth_org_not_allowed"} plus a result entry with
    api_error_status 403. A usage-limited run carries 429 and a rejected
    rate_limit_event, and a real review carries is_error false with no status, so
    the 401/403 test fires on the refused credential alone.
    
    * fix(ci): stop a refused credential reddening the issue analysis
    
    The same exit-0 refusal reaches this workflow's "posted no reply" check, which
    fails for the same reason and shows up as seven failed runs in a day. It never
    attaches to a pull request -- the trigger excludes them -- so this is the same
    step and the same 401/403 transcript test applied where the refusal lands.
    
    Reported only as a warning annotation: nothing was analysed, and there is no
    comment worth posting about a credential the maintainer has to renew.
  • refactor(ci): add an adversarial pass and name the analyst briefing
    REVIEW.md told the reviewer which repository rules to check but never to try
    breaking the change, so the conditions this panel actually meets went
    unexamined. "Try to break it" adds six, each tied to a mechanism here rather
    than to a generic checklist: an upgrade over an operator's existing rows and
    the rollback that reads them again, a restart that drops in-memory state under
    the cron jobs, a sub-node racing the master on the same row, an operation
    applied twice, an inbound or client at the empty and the thousand end, and a
    dependency that is down. It closes with the gate that running a case is not
    reporting it - each one still has to clear the verification bar below it, so
    the section cannot become a licence for hypotheticals.
    
    repo-context.md said nothing about which bot reads it. Only the issue analyst
    does, since the review job's briefing moved inline in acf3603d, so it becomes
    issue-analyst-context.md and its title names the analyst instead of "the Claude
    bot". bot_context_test.go pins that path in a constant, so the rename carries
    through the constant, the four test names and the two comments that named the
    old file - one of which still said "the bot prompts", plural.
    
    Backticks come off mtg-multi in the new section: the same test file reads any
    hyphenated backticked token in REVIEW.md as a CI job name, and fails on one
    ci.yml does not define.
  • refactor(ci): split the issue analyst out and brief the review job from a file
    The issue analyst moves verbatim from claude-bot.yml into its own
    claude-issue-analyst.yml, so claude-bot.yml now holds only the pull-request
    side: review, @claude mentions and conflict resolution.
    
    The review job's briefing was a single 2,600-character quoted string inside
    claude_args, unreadable and unreviewable. It now lives in
    .github/claude/review-job.md, assembled at run time with a "This run"
    section that hands the reviewer the pinned head SHA, the pull request and
    the exact check-runs command, and reaches the CLI through
    --append-system-prompt-file. The agent-mode action sets no system-prompt
    append of its own, so the file flag cannot collide with one.
    
    Findings no longer carry the fix: REVIEW.md and the brief both forbid
    suggestion blocks, patches and replacement snippets, overriding the
    code-review skill's --comment step, which attaches a committable suggestion
    to any small fix. A finding states what is wrong, where, what triggers it
    and what breaks; the maintainer decides the change.