Skip to content

fix(queue): repair malformed regate-repair diff breaking main typecheck - #4023

Merged
JSONbored merged 1 commit into
mainfrom
fix/main-red-sweeprepo-regate-syntax
Jul 7, 2026
Merged

fix(queue): repair malformed regate-repair diff breaking main typecheck#4023
JSONbored merged 1 commit into
mainfrom
fix/main-red-sweeprepo-regate-syntax

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

  • origin/main is currently RED: npm run typecheck fails at src/queue/processors.ts starting ~line 1877, cascading through ~2143 (TS1005/TS1136/TS1128).
  • Root cause: fix(queue): prevent regate repair exhaustion from premature attempt counting #3998 shipped a malformed diff hunk in two places — sweepRepoRegate's per-PR job-dispatch object literal got spliced with a dangling recordAuditEvent call's fields (no closing brace, no env.JOBS.send), and regatePullRequest gained a repairHeadSha?: string second parameter positioned before several required parameters (repoFullName, prNumber, ...) — a required parameter cannot follow an optional one.
  • Reconstructed both regions from the parent commit plus fix(queue): prevent regate repair exhaustion from premature attempt counting #3998's stated intent (move the repair-attempt audit event from dispatch-time to execution-time, after rate-limit admission, so a deferred/dropped job no longer burns an attempt against REGATE_REPAIR_MAX_ATTEMPTS_PER_SHA).
  • Also fixed two latent issues in the same hunk: a duplicate const REGATE_REPAIR_MAX_ATTEMPTS_PER_SHA declaration (a stray = 5 shadowing the real = 2, which had also overwritten a line of unrelated prose in a multi-line comment), and an invalid outcome: "started" literal that isn't part of the audit-event outcome enum ("queued" | "error" | "success" | "completed" | "denied") — swapped to "completed" to match the existing convention for discrete recorded facts.

Scope

  • Single-purpose fix, no unrelated changes
  • In wantedPaths (src/)

Validation

  • npm run typecheck — clean (was failing on origin/main)
  • npx vitest run test/unit/queue.test.ts — 656 passed, 5 failed; all 5 confirmed pre-existing on a clean, unmodified origin/main (Prometheus metric-label/disposition-audit assertions unrelated to sweepRepoRegate/regatePullRequest — independently corroborated by a separate concurrent fix's full test:coverage run on the same base)

Safety

  • No secrets/private terms introduced
  • No changes to site/, CNAME, lovable/, or the changelog

PR #3998 shipped a garbled hunk in sweepRepoRegate's job-dispatch block
and regatePullRequest's signature/body -- an object literal spliced with
a dangling recordAuditEvent's fields, no closing brace or JOBS.send call,
and a required parameter (repoFullName) following an optional one
(repairHeadSha). Reconstructed both regions from the parent commit plus
the PR's stated intent: move the repair-attempt audit event from
dispatch-time to execution-time (after rate-limit admission), so a
deferred/dropped job no longer burns an attempt against
REGATE_REPAIR_MAX_ATTEMPTS_PER_SHA. Also fixed a duplicate declaration of
that same constant (value 5 shadowing the original 2, introduced by the
same bad hunk) and an invalid "started" outcome literal that isn't part
of the audit-event outcome enum.
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@JSONbored JSONbored self-assigned this Jul 7, 2026
@JSONbored
JSONbored merged commit f998338 into main Jul 7, 2026
6 of 7 checks passed
@JSONbored
JSONbored deleted the fix/main-red-sweeprepo-regate-syntax branch July 7, 2026 10:46
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 7, 2026
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

❌ 58 Tests Failed:

Tests completed Failed Passed Skipped
10417 58 10359 7
View the top 3 failed test(s) by shortest run time
test/integration/api.test.ts > test/integration/api.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/maintainer-activation.test.ts > test/integration/maintainer-activation.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/orb-broker.test.ts > test/integration/orb-broker.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/orb-ingest.test.ts > test/integration/orb-ingest.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/orb-oauth.test.ts > test/integration/orb-oauth.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/orb-onboarding.test.ts > test/integration/orb-onboarding.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/orb-relay.test.ts > test/integration/orb-relay.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/orb-webhook.test.ts > test/integration/orb-webhook.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/public-quality-metrics-route-error.test.ts > test/integration/public-quality-metrics-route-error.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/public-stats-route-error.test.ts > test/integration/public-stats-route-error.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/public-stats-route.test.ts > test/integration/public-stats-route.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/routes-errors.test.ts > test/integration/routes-errors.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/integration/subnet-interface.test.ts > test/integration/subnet-interface.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/access-boundary.test.ts > test/unit/access-boundary.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/ai-key-byok.test.ts > test/unit/ai-key-byok.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/docs-examples-schema.test.ts > test/unit/docs-examples-schema.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/draft.test.ts > test/unit/draft.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/index.test.ts > test/unit/index.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/issue-watch.test.ts > test/unit/issue-watch.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/linear-key.test.ts > test/unit/linear-key.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-automation-state.test.ts > test/unit/mcp-automation-state.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-check-slop-risk.test.ts > test/unit/mcp-check-slop-risk.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-fleet-analytics.test.ts > test/unit/mcp-fleet-analytics.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-miner-prompts.test.ts > test/unit/mcp-miner-prompts.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-notifications.test.ts > test/unit/mcp-notifications.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-output-schemas.test.ts > test/unit/mcp-output-schemas.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-plan-dag.test.ts > test/unit/mcp-plan-dag.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-planning-elicitation.test.ts > test/unit/mcp-planning-elicitation.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-predict-gate.test.ts > test/unit/mcp-predict-gate.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-refresh-repo-docs.test.ts > test/unit/mcp-refresh-repo-docs.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-run-local-scorer.test.ts > test/unit/mcp-run-local-scorer.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-suggest-boundary-tests.test.ts > test/unit/mcp-suggest-boundary-tests.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-upstream.test.ts > test/unit/mcp-upstream.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-write-tools.test.ts > test/unit/mcp-write-tools.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/ops-wire.test.ts > test/unit/ops-wire.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/parity-wire.test.ts > test/unit/parity-wire.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/plan-templates.test.ts > test/unit/plan-templates.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/retention.test.ts > test/unit/retention.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-agent-approval.test.ts > test/unit/routes-agent-approval.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-ai-byok.test.ts > test/unit/routes-ai-byok.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-check-before-start.test.ts > test/unit/routes-check-before-start.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-contributor-issue-draft.test.ts > test/unit/routes-contributor-issue-draft.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-extension.test.ts > test/unit/routes-extension.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-focus-manifest.test.ts > test/unit/routes-focus-manifest.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-kill-switch.test.ts > test/unit/routes-kill-switch.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-remediation-plan.test.ts > test/unit/routes-remediation-plan.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-self-dogfood-registration-pack.test.ts > test/unit/routes-self-dogfood-registration-pack.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/routes-selfhost-dead-letter-queue.test.ts > test/unit/routes-selfhost-dead-letter-queue.test.ts
Stack Traces | 0s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/mcp-server-telemetry.test.ts > MCP server telemetry > records session-scoped MCP request errors without a tool name
Stack Traces | 0.013s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/config-templates.test.ts > config/examples review templates (#1682) > gittensory.full.yml body matches .gittensory.yml.example from WHERE IT LIVES onward
Stack Traces | 0.0215s run time
AssertionError: expected '# WHERE IT LIVES (first match wins):\…' to be '# WHERE IT LIVES (first match wins):\…' // Object.is equality

- Expected
+ Received

@@ -326,17 +326,10 @@
  # All values shown are the safe defaults; delete any line to inherit it.
  #
  # Review output controls. These tune review output without changing the
  # deterministic gate policy above. Omit the block to keep the byte-identical
  # defaults.
- #
- # SELF-HOST ONLY (`review.shared_config`, #2046): when `GITTENSORY_REPO_CONFIG_DIR` is mounted,
- # place a shared review base at `${GITTENSORY_REPO_CONFIG_DIR}/_shared/.gittensory.yml` (see
- # `config/examples/shared.gittensory.yml`). Per-repo `review:` keys overlay it field-by-field —
- # repo value wins when set, shared fills gaps, defaults stay byte-identical. Absent shared base is
- # the common case and changes nothing. A malformed shared base warns and is ignored (never blocks a
- # review). The loader records provenance at runtime in `review.sharedConfigSource` (not a YAML key).
  review:
    # Deterministic AI review eligibility filters (`review.auto_review`, #1954 / #2038–#2065). Each knob quietly
    # skips the advisory AI review for matching PRs — never a gate failure. When the Orb review check is enabled,
    # skipped PRs complete as "skipped" with a human-readable reason (see `evaluateAutoReviewSkipReason` in
    # `src/signals/focus-manifest.ts` and the public-surface `SKIP_SUMMARY.ignored_author` mapping in

 ❯ test/unit/config-templates.test.ts:36:57
test/unit/mcp-server-telemetry.test.ts > MCP server telemetry > falls back when Hono does not expose an execution context
Stack Traces | 0.032s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/predicted-gate-engine-coverage.test.ts > predicted-gate engine module coverage (#2283) > exercises duplicate-winner election helpers
Stack Traces | 0.0348s run time
AssertionError: expected false to be true // Object.is equality

- Expected
+ Received

- true
+ false

 ❯ test/unit/predicted-gate-engine-coverage.test.ts:109:155
test/unit/mcp-server-telemetry.test.ts > MCP server telemetry > records sanitized error telemetry when the MCP transport handler throws
Stack Traces | 0.232s run time
Error: Failed to resolve entry for package "@jsonbored/gittensory-engine". The package may have incorrect main/module/exports specified in its package.json.
 ❯ .../gittensory-miner/lib/opportunity-fanout.js:2:1
 ❯ src/mcp/find-opportunities.ts:11:1
test/unit/queue.test.ts > auto-action convergence: end-to-end plan+execute for the general heuristic path (#selfhost-auto-action-convergence) > a guardrail-path hold (neutral gate conclusion) records blocker_class=guardrail_hold, not 'none'
Stack Traces | 0.558s run time
AssertionError: expected '# HELP gittensory_github_response_cac…' to contain 'gittensory_agent_disposition_total{ac…'

- Expected
+ Received

- gittensory_agent_disposition_total{action_class="hold",autonomy_level="auto",blocker_class="guardrail_hold"} 1
+ # HELP gittensory_github_response_cache_total GitHub response cache outcomes by response class.
+ # TYPE gittensory_github_response_cache_total counter
+ gittensory_github_response_cache_total{class="disabled",result="bypassed"} 11
+ gittensory_github_pull_request_files_fetch_total{caller="live_review"} 1
+ gittensory_github_response_cache_total{class="sensitive",result="bypassed"} 17
+ # HELP gittensory_pr_state_cache_total Pull-request state cache outcomes.
+ # TYPE gittensory_pr_state_cache_total counter
+ gittensory_pr_state_cache_total{field="mergeable_state",result="miss"} 1
+ gittensory_pr_state_cache_total{field="write",result="set"} 1
+ # HELP gittensory_ci_state_cache_total CI-state snapshot cache outcomes.
+ # TYPE gittensory_ci_state_cache_total counter
+ gittensory_ci_state_cache_total{field="aggregate",result="miss"} 1
+ gittensory_ci_state_cache_total{field="write",result="set"} 2
+ # HELP gittensory_github_graphql_cache_total GitHub GraphQL cache outcomes by response class.
+ # TYPE gittensory_github_graphql_cache_total counter
+ gittensory_github_graphql_cache_total{class="sensitive",result="bypassed"} 2
+ gittensory_ci_state_cache_total{field="aggregate",result="forced"} 1
+ # HELP gittensory_agent_disposition_total Final agent disposition per PR pass (merge/close/hold), by repo, action class, blocker-code class, and autonomy level.
+ # TYPE gittensory_agent_disposition_total counter
+ gittensory_agent_disposition_total{action_class="hold",autonomy_level="auto",blocker_class="guardrail_hold",repo="redacted-1"} 1
+

 ❯ test/unit/queue.test.ts:27269:35
test/unit/queue.test.ts > auto-action convergence: end-to-end plan+execute for the general heuristic path (#selfhost-auto-action-convergence) > REGRESSION: a blocked contributor PR (plain gate failure) with close=auto is actually closed via the general heuristic-close path
Stack Traces | 0.56s run time
AssertionError: expected '# HELP gittensory_github_response_cac…' to contain 'gittensory_agent_disposition_total{ac…'

- Expected
+ Received

- gittensory_agent_disposition_total{action_class="close",autonomy_level="auto",blocker_class="missing_linked_issue"} 1
+ # HELP gittensory_github_response_cache_total GitHub response cache outcomes by response class.
+ # TYPE gittensory_github_response_cache_total counter
+ gittensory_github_response_cache_total{class="disabled",result="bypassed"} 11
+ gittensory_github_pull_request_files_fetch_total{caller="live_review"} 3
+ gittensory_github_response_cache_total{class="sensitive",result="bypassed"} 18
+ # HELP gittensory_pr_state_cache_total Pull-request state cache outcomes.
+ # TYPE gittensory_pr_state_cache_total counter
+ gittensory_pr_state_cache_total{field="mergeable_state",result="miss"} 1
+ gittensory_pr_state_cache_total{field="write",result="set"} 1
+ # HELP gittensory_ci_state_cache_total CI-state snapshot cache outcomes.
+ # TYPE gittensory_ci_state_cache_total counter
+ gittensory_ci_state_cache_total{field="aggregate",result="miss"} 1
+ gittensory_ci_state_cache_total{field="write",result="set"} 2
+ # HELP gittensory_github_graphql_cache_total GitHub GraphQL cache outcomes by response class.
+ # TYPE gittensory_github_graphql_cache_total counter
+ gittensory_github_graphql_cache_total{class="sensitive",result="bypassed"} 2
+ gittensory_ci_state_cache_total{field="aggregate",result="forced"} 1
+ # HELP gittensory_agent_disposition_total Final agent disposition per PR pass (merge/close/hold), by repo, action class, blocker-code class, and autonomy level.
+ # TYPE gittensory_agent_disposition_total counter
+ gittensory_agent_disposition_total{action_class="close",autonomy_level="auto",blocker_class="missing_linked_issue",repo="redacted-1"} 1
+

 ❯ test/unit/queue.test.ts:27226:35
test/unit/queue.test.ts > queue processors > REGRESSION (#orb-retry-storm): a repair dispatch under the attempt cap records a repair_attempt audit event, and a second sweep tick does not duplicate the repair_exhausted event once already flagged
Stack Traces | 0.73s run time
AssertionError: expected +0 to be 1 // Object.is equality

- Expected
+ Received

- 1
+ 0

 ❯ test/unit/queue.test.ts:6926:35
test/unit/queue.test.ts > auto-action convergence: end-to-end plan+execute for the general heuristic path (#selfhost-auto-action-convergence) > REGRESSION (#selfhost-backlog-convergence): a CI-pending PR defers, then merges once check_suite.completed reports CI green (convergence chain)
Stack Traces | 0.765s run time
AssertionError: expected '# HELP gittensory_github_response_cac…' to contain 'gittensory_agent_disposition_total{ac…'

- Expected
+ Received

- gittensory_agent_disposition_total{action_class="merge",autonomy_level="auto",blocker_class="none"} 1
+ # HELP gittensory_github_response_cache_total GitHub response cache outcomes by response class.
+ # TYPE gittensory_github_response_cache_total counter
+ gittensory_github_response_cache_total{class="sensitive",result="bypassed"} 16
+ # HELP gittensory_pr_state_cache_total Pull-request state cache outcomes.
+ # TYPE gittensory_pr_state_cache_total counter
+ gittensory_pr_state_cache_total{field="write",result="set"} 1
+ # HELP gittensory_ci_state_cache_total CI-state snapshot cache outcomes.
+ # TYPE gittensory_ci_state_cache_total counter
+ gittensory_ci_state_cache_total{field="aggregate",result="miss"} 1
+ gittensory_ci_state_cache_total{field="write",result="set"} 2
+ gittensory_github_response_cache_total{class="disabled",result="bypassed"} 9
+ # HELP gittensory_github_graphql_cache_total GitHub GraphQL cache outcomes by response class.
+ # TYPE gittensory_github_graphql_cache_total counter
+ gittensory_github_graphql_cache_total{class="sensitive",result="bypassed"} 2
+ gittensory_ci_state_cache_total{field="aggregate",result="forced"} 1
+ # HELP gittensory_agent_disposition_total Final agent disposition per PR pass (merge/close/hold), by repo, action class, blocker-code class, and autonomy level.
+ # TYPE gittensory_agent_disposition_total counter
+ gittensory_agent_disposition_total{action_class="merge",autonomy_level="auto",blocker_class="none",repo="redacted-1"} 1
+

 ❯ test/unit/queue.test.ts:27397:35
test/unit/queue.test.ts > auto-action convergence: end-to-end plan+execute for the general heuristic path (#selfhost-auto-action-convergence) > REGRESSION (#terminal-outcome-audit): an engaged holdonly breaker withholds a real would-merge AND increments the downgrade counter
Stack Traces | 0.872s run time
AssertionError: expected '# HELP gittensory_github_response_cac…' to contain 'gittensory_agent_disposition_total{ac…'

- Expected
+ Received

- gittensory_agent_disposition_total{action_class="hold",autonomy_level="observe",blocker_class="none"} 1
+ # HELP gittensory_github_response_cache_total GitHub response cache outcomes by response class.
+ # TYPE gittensory_github_response_cache_total counter
+ gittensory_github_response_cache_total{class="sensitive",result="bypassed"} 14
+ # HELP gittensory_pr_state_cache_total Pull-request state cache outcomes.
+ # TYPE gittensory_pr_state_cache_total counter
+ gittensory_pr_state_cache_total{field="write",result="set"} 1
+ # HELP gittensory_ci_state_cache_total CI-state snapshot cache outcomes.
+ # TYPE gittensory_ci_state_cache_total counter
+ gittensory_ci_state_cache_total{field="aggregate",result="miss"} 1
+ gittensory_ci_state_cache_total{field="write",result="set"} 2
+ gittensory_github_response_cache_total{class="disabled",result="bypassed"} 10
+ # HELP gittensory_github_graphql_cache_total GitHub GraphQL cache outcomes by response class.
+ # TYPE gittensory_github_graphql_cache_total counter
+ gittensory_github_graphql_cache_total{class="sensitive",result="bypassed"} 2
+ gittensory_ci_state_cache_total{field="aggregate",result="forced"} 1
+ # HELP gittensory_precision_breaker_downgrades_total Would-merge/would-close actions downgraded to a human hold by an accuracy circuit-breaker, by breaker direction.
+ # TYPE gittensory_precision_breaker_downgrades_total counter
+ gittensory_precision_breaker_downgrades_total{direction="merge"} 1
+ # HELP gittensory_agent_disposition_total Final agent disposition per PR pass (merge/close/hold), by repo, action class, blocker-code class, and autonomy level.
+ # TYPE gittensory_agent_disposition_total counter
+ gittensory_agent_disposition_total{action_class="hold",autonomy_level="observe",blocker_class="none",repo="redacted-1"} 1
+

 ❯ test/unit/queue.test.ts:27471:35

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

JSONbored added a commit that referenced this pull request Jul 7, 2026
)

#4023 fixed the syntax corruption #3998's own patch introduced and moved
repair_attempt recording to execution time, but left
REGATE_REPAIR_MAX_ATTEMPTS_PER_SHA at 2 -- #3998's stated intent was to
raise it to 5 for resilience against transient failures (a single AI
provider timeout no longer exhausts the budget). Bumps the constant and
updates both orb-retry-storm regression tests' attempt counts to match;
one of them was also still asserting the pre-#3998 dispatch-time
recording behavior, never executing the fanned per-PR job.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant