You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8b45067
Browse filesBrowse the repository at this point in the historyBrowse files
Owner: Dev
Reviewer: Reviewer2
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Written-by: Cursor Agent (for hsliuustc0106)
References #874
Step 1 only. This does not close the RFC: Step 2 (the experience
library) is still open, so the body says References rather than Fixes.
## What changed
Lite, Medium, and Heavy load on the Step 0 harness (`resolveHarness`).
Each tier names the same modules as `default` and adds a declared
budget. `applied` is false, so `prompt.js`, `tools.js`, `models.js`, and
`turns.js` still run as they do today. `install` leaves `rt.harness` on
`default`.
Triage selects a tier with exactly one label:
- `harness:lite`
- `harness:medium`
- `harness:heavy`
No such label, or any other label including `risk:T*`, stays on
`default`. Two tier labels, or an unknown `harness:*` label, throw. The
controller does not write these labels. They are in
`.github/labels.json`; creating them on the repository is `node
.github/scripts/sync-labels.mjs --repo ThinkFlowLab/FlyBot --apply`,
which this PR does not run.
Declared budgets (Lite < Medium < Heavy):
- prompt `maxChars`: 8000 / 16000 / 48000
- tools `maxCalls`: 8 / 24 / 64
- tools `allow`: six read tools / those plus work tools, still without
`create_bot`, `delete_group`, and `stop_bot` / `null` (the full set the
host registers)
- model `maxTokens`: 2048 / 8192 / 16384
- step `maxSteps`: 4 / 12 / 32
- step `maxRetries`: 0 / 1 / 1 (one written-tool-call retry is what
`turns.js` does today)
`harnessPro` is the offline check for a tier config: same four modules,
`verifiers.offline` is `ci`, `core/dev/eval`, `rsi-baseline`, and no key
or token field. It does not run those checks and it does not call a
model.
Usage rows already carry issue/PR, tool-call count, and wall time from
Step 0. `rt.noteUsageHarness(sessionId, idOrLabels)` stamps the routed
tier on the `harness` column. The resume cursor stays `{ provider,
model, retry }`.
No changelog fragment: the chat UI is unchanged, and the default path
does not change behavior.
## Verification at the tip
Tip SHA: `ea8dec628ef6da1b555ce9816d9bed41edda157b`
Red on base `68e11dc` (before the implementation), `node --test
core/test/harness.test.js core/test/usage-fields.test.js`: 2 failed.
`harness.test.js` did not load (`HARNESS_PRO_VERIFIERS` missing).
`foldCalls` recorded `harness` `default` when the test passed `lite`.
Ran at this tip:
- `node --import ./test/harness-resolve.mjs --test test/harness.test.js
test/usage-fields.test.js` in `core/` → 16/16 pass
- `npm test` in `core/` → 1364/1364 pass (same tree as this commit, run
immediately before the commit)
- `npm run lint` in `core/` → oxlint warnings only, the same `usage.js`
`mark?.fold ?? {}` warning that already fires on `main`; `TZ=UTC node
scripts/check-arch-docs.mjs` after the commit → `arch-docs: OK (11
changed file(s))`
- `node scripts/ds-bot-patches.mjs check` → pin, 10 patches, `core/`
equals the mirrors
- `node core/dev/eval/run.mjs --list` → `P3-tree-split`,
`P4-invite-approve`, `P6-timeline`, `memory-recall`
- `node --test .github/scripts/rsi-baseline.test.mjs
.github/scripts/sync-labels.test.mjs .github/scripts/controller.test.mjs
.github/scripts/risk-label-docs.test.mjs` → 35/35 pass
Not run:
- `npm run verify` — plugin suites, interop, and live-e2e.
`plugins/*/node_modules` is not installed here.
- Smoke bench. `usage.js` is under `src/host/`, and the bench was left
out with the #925 smoke work.
- Control set of 10, and any live DSH turn. No `DEEPSEEK_API_KEY`.
- `rsi-baseline.mjs` against GitHub. That needs a token. The
deterministic test above does not.
- `sync-labels.mjs --apply`. The labels are defined, not created on the
repository.
- Merge. This pull request stays a draft.
<!-- CURSOR_AGENT_PR_BODY_END -->
<div><a
href="https://cursor.com/agents/bc-4ac91855-557d-53da-9d53-32b6df19ca9f?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a
href="https://cursor.com/background-agent?bcId=bc-4ac91855-557d-53da-9d53-32b6df19ca9f&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>
Fixes#937
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
0 commit comments