Skip to content

Per-asset effect tables for tasks that cover a team asset (#1605) - #1684

Merged
SaulMoro merged 20 commits into
Tencent:mainfrom
kittimzhe:feat/asset-effect-tables-1605
Nov 3, 2026
Merged

SaulMoro merged 20 commits into
Tencent:mainfrom
kittimzhe:feat/asset-effect-tables-1605

Conversation

@kittimzhe

@kittimzhe kittimzhe commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1605. Builds on #1658's benchmark engine and #1650's record used fields, both on main.

What

A task's covers names the team repo paths its work is expected to need, and the results answer, per covered path, whether an arm that runs without exactly that path passes less on the tasks that cover it — and no less on the others.

# benchmarks/fix-auth/tasks/refresh-race.yaml
covers: [skills/auth-tokens, rules/auth.md]
Asset effect · skills/auth-tokens · no-auth-tokens -> pulled · claude

task   covers   passed without   passed with   loaded with
expired-token   yes   1/3   3/3   3/3 fit
refresh-race   yes   0/3   2/3   2/3 fit, 1 missed
login-copy   no   3/3   3/3   1/3 extra, 2 idle

tasks that cover it   +67 pp   1/6 -> 5/6   95% +11 to +86 pp
other tasks   0 pp   3/3 -> 3/3   not separated
passed when loaded 6/6 · passed when not loaded 2/3
  • loaded with carries [feat] Judge whether team skills load when they should, without writing a scorer #1469's routing values, decided by the task instead of a judge: fit, missed, extra, idle, unknown when the tool reports no skill loads — those still count in the pass rates, in neither when-loaded bucket. Only skills have the column: a rule, a claudemd/ file, a doc or a namespace directory reads not observed.
  • plan refuses a covered path no arm receives, and two covered skill paths of the same bare name, which a trial's load record cannot tell apart (task_covers_ambiguous). Each covered path is checked on its own against the full team tree, so the answer does not depend on which task file lists it or on a covered parent directory. A shared path a namespace copy stands in for is refused with "cover instead".
  • An arm that leaves out more than one path gets no per-asset table; a covered path no arm leaves out alone still gets its rows and loads.
  • assetEffects is pure over the record, so published records answer without a rerun. wilson and pairedDifference move from history to table, their owner; history re-imports.
  • loaded with prints the loaded value first, then every other non-zero count in one order, in the CLI and on the dashboard.
  • An arm that runs without a namespace directory, or with no team assets, records no routing for the covered skills it does not receive: they are absent, not missed. A row with unreported loads counts them (1/2 fit, 1 unknown).
  • The dashboard's Compare tab shows the tables under the pair, or on their own when no two arms compare, and links a skill to its teamai:routing:... counts (the name comes from the record); assets come from the newest run's own table. Every label has a zh-CN translation.
  • Docs en/zh: the covers task field and an Asset effect section led by the reading of each line, not separated included.

Verification record

Real CLI on this machine (npm run build, then teamai pull + teamai benchmark run fix on a temp team repo), fake claude that fixes only when its clone delivers the skill and then loads it; 3 arms (pulled, without the skill, without both), 2 tasks (one covers both paths), 2 repetitions:

| Arm | Tool | Model (source) | Team | Planned | Passed | Failed | Error | Unscored | Not run | Stopped by a limit | Deviations | Not verified | Pass rate |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| pulled | claude | tool default (team) | pulled 1812987 | 4 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 100% (4/4) |
| no-tokens | claude | tool default (team) | 1812987 without skills/auth-tokens | 4 | 0 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0% (0/4) |
| no-both | claude | tool default (team) | 1812987 without rules/auth.md, skills/auth-tokens | 4 | 0 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0% (0/4) |

| Arm | Skill | Change | Loaded in this arm | Loaded in the defaults arm |
| --- | --- | --- | --- | --- |
| no-tokens | auth-tokens | removed | 0/4 | 4/4 |
| no-both | auth-tokens | removed | 0/4 | 4/4 |

Asset effect · rules/auth.md · pulled · claude

task   covers   passed without   passed with   loaded with
copy   no   -   100% (2/2)   not observed
fix   yes   -   100% (2/2)   not observed

Asset effect · skills/auth-tokens · no-tokens -> pulled · claude

task   covers   passed without   passed with   loaded with
copy   no   0% (0/2)   100% (2/2)   2/2 extra
fix   yes   0% (0/2)   100% (2/2)   2/2 fit

tasks that cover it   +100 pp   0/2 -> 2/2   95% +7 to +100 pp
other tasks   +100 pp   0/2 -> 2/2   95% +7 to +100 pp

passed when loaded 4/4 · passed when not loaded -

The tool here only fixes when the clone delivers the skill, so the difference is non-zero and separated: 0/4 against 4/4, +7 to +100 pp — the skill matters, and the tables show it. The rules table has no without-arm, so it shows rows and loads only; the two-path arm gets no table; the unloaded covering task would read missed, a tool that reports no loads 0/1 unknown, both covered by tests.

Record at 3c165e1 and ea00ccce

Build: 3c165e18 (npm ci && npm run build). Temp bare team and app repos, isolated HOME, empty global git config,
GIT_CONFIG_NOSYSTEM=1, TEAMAI_NONINTERACTIVE=1; fake claude that reports a skill load when its clone delivers the skill.
teamai init <team> --provider git --agent claude --scope workspace --force --role dev; teamai pull; teamai benchmark run fix --sandbox

# Team has rules/review.md and rules/dev/review.md; arms pulled + without skills/dev/deploy
one task covers [rules/review.md]                                exit 1
one task covers [rules/review.md, rules/dev/review.md]           exit 1
task a covers rules/review.md, task b covers rules/dev/review.md exit 1
  all three: arm_team_unresolved "A task covers rules/review.md, but its namespace dev delivers rules/dev/review.md in its place,
  so leaving it out changes nothing; cover rules/dev/review.md instead. Fix the team's tasks, push them, run teamai pull, and start again."
one task covers [rules/dev/review.md]                            exit 0

# Member excludes skill auth: task a covers skills/dev, task b covers skills/dev/auth   exit 1 (auth is excluded)
# No exclude, arm without skills/dev/auth: exit 0, no ENOENT
Asset effect · skills/dev/auth · no-auth -> pulled · claude
a   no   100% (1/1)   100% (1/1)   1/1 extra
b   yes   0% (0/1)   100% (1/1)   1/1 fit

# Pulled arm only, 4 reps, the tool loads the skill on 2 of every 3 calls
copy   no   -   100% (4/4)   3/4 extra, 1 idle
fix   yes   -   100% (4/4)   2/4 fit, 2 missed

The rules cases ran at 3c165e1. The namespace cases and the tables ran at ea00ccce; 3c165e1 changes only the covers refusal message after it.

Tests

  • src/__tests__/benchmark-asset-effects.test.ts — every routing count in one order, and: table selection, split differences, routing counts, non-skill not observed, multi-path arm rows-only, no-without-arm rows-only, unknown loads, has-arm matching by tool, no covers no tables.
  • src/__tests__/benchmark-team-without.test.ts — coveredRefusal: refusals and acceptances of the covers themselves, including the same answer in any cover order, a skill inside a covered namespace directory, and covering the namespace copy instead.
  • src/__tests__/e2e/benchmark-asset-effect.test.ts — real CLI on the local driver, issue criteria 1–7, and no routing for a skill inside a namespace an arm leaves out.
  • src/__tests__/dashboard-benchmarks-view.test.ts — the Compare tab's asset tables, also with no comparable pair, and their zh-CN labels.
  • src/__tests__/workflow-handoff-sessions-and-offers.test.ts — the back-and-forth handoff test gets 60 s: it timed out at 15 s on macOS Node 20, on main (run 41519501356) and here, from the cost of its 328 git processes, not a hang.
  • Full unit suite green except this machine's 5 known baseline failures (git-discovery, submodule ×2, workflow-place, workflow-workspace); npx tsc --noEmit, npx oxlint and node scripts/check-docs.mjs clean.

…asset (Tencent#1605)

A task's covers names the team repo paths its work is expected to need.
The results print one table per covered path an arm runs without exactly,
split by the tasks that cover it with Newcombe 95% intervals, each skill
trial's routing value from the task itself, and pass rates by whether the
skill loaded. The dashboard's Compare tab shows the tables under the pair
and links the skill to its routing scorer.

- suite/plan validate covers like without, in first-covered order
- plan refuses a covered path no arm receives, and two covered skills of
  the same name, which load records cannot tell apart
- the record carries each trial's routing value per covered skill
- assetEffects is pure over the record, so published records answer
- wilson and pairedDifference move from history to table, their owner
- docs en/zh: covers field, Asset effect section, not separated reading
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
  • [P1 blocking] Repeated coverage of the same skill prevents runs — src/benchmark/start.ts:244: Two tasks covering skills/auth-tokens trigger task_covers_ambiguous, even though both refer to the same asset. Only reject when the previously recorded path differs from listed; the documented two-covering-task example currently cannot run.

  • [P1 blocking] Coverage validation ignores arm roles — src/benchmark/start.ts:198: Validation uses only the member’s selection. A member subscribed to ops running a pulled arm with role dev is refused for covering skills/dev/migrations, even though that arm receives it. Check deliverability against the arms’ selections before declaring that no arm receives the asset.

  • [P2 non-blocking] The first without-arm can hide a valid comparison — src/benchmark/table.ts:467: With a pulled Claude arm, a Codex without-arm listed first, and a Claude without-arm for the same path, find chooses Codex. Since it has no matching pulled arm, the asset table disappears despite the valid Claude pair. Select matching pairs rather than stopping at the first without-arm.

  • [P2 non-blocking] Skill namespace directories get fabricated routing results — src/benchmark/table.ts:463: Covering a namespace such as skills/dev treats dev as a skill name. Trials loading its actual skills then report the namespace as missed and populate “passed when not loaded,” rather than the documented not observed. Resolve actual skill paths before assigning a routing key; the same heuristic also exists in start and result.

  • [P2 non-blocking] The documented confidence interval contradicts the implementation — docs/guide/benchmarks.md:717: The example’s 3/6 -> 5/6 paired counts cannot produce a positive lower bound using the added pairedDifference implementation; the interval crosses zero. Replace the claimed 95% +4 to +89 pp with not separated, or use counts that support separation, in both language versions.

The description includes sufficient real-CLI verification. I did not run, build, or install PR code.

@SaulMoro SaulMoro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was generated by AI during triage.

I built main (5a73276) and this head (0dfe07e) and ran teamai benchmark run on a temp team repo with a fake tool for which the skill matters. When a run gets that far, the numbers are right:

  • On the covering task I recomputed the paired 95% interval by hand from the record (+7 to +100 pp); the other task reads not separated.
  • The covering and other splits add up to the Compare page's pairs.
  • A covered path that no arm receives is refused at plan, with no run created.
  • wilson and pairedDifference move unchanged, so the regression gate and Compare give the same numbers as main.
  • The new record fields are optional, so published records still read.

[P1 blocking] Two tasks that cover the same skill are refused as ambiguous

coveredTaskRefusal (src/benchmark/start.ts) keys byName by bare name over every task's covers without removing duplicates. So tasks a and b, both with covers: [skills/auth-tokens], fail plan with task_covers_ambiguous: Tasks cover skills/auth-tokens and skills/auth-tokens, two skills of the same name auth-tokens…. #1605's example and the new docs example both have this shape. Compare the paths, not only the names: refuse only when two different paths share a bare name.

[P1 blocking] A covered namespace directory is read as a skill

skillNameOfCovered (in start.ts and result.ts) and bare (in table.ts) turn skills/<x> into skill x without checking that x is a skill. With covers: [skills/db] and skills/db/migrations/SKILL.md, the record holds routing {"db":"missed"} on trials whose used shows migrations loaded every time. The body says a namespace directory reads not observed. One helper that knows whether the path is a skill fixes this. Keeping it in one place also removes the four copies of that split, one of them in benchmarks-client.ts.

[P1 blocking] Only the first arm that leaves a path out gets a table

assetEffects (table.ts) picks one arm per path with arms.find(...). #1605's scope and the docs say there is a table for each covered path and each arm whose without is exactly that path. With the docs' "Cross tools with team assets" matrix over [claude, codex], the codex pair gets no table.

[P2 non-blocking] The docs example shows an interval the code cannot print

tasks that cover it +33 pp 3/6 -> 5/6 95% +4 to +89 pp (both languages). For 6 pairs going from 3 to 5 passes, even the most favorable pairing gives −17 to +67 pp, which prints not separated. The section opens with this example, so it teaches the wrong reading of a 6-trial split.

[P2 non-blocking] The zh-CN Compare panel is partly English

In assetPanel (benchmarks-client.ts), the column header line, yes / no, tasks that cover it and other tasks are raw strings without label() or locales.ts entries. The zh-CN page shows them in English under a translated heading.

[P2 non-blocking] Covered paths are checked against the member's selection, not each arm's

start.ts passes selectionOf(config) to coveredRefusal, while an arm with role receives that role's namespaces. A suite whose role arm receives skills/dev/x, run by a member who does not receive dev, would be refused. I read this in the code; I did not run it.

[P3 nit] Smaller items

  • The teamai:routing:… link shows even when the team has routing off. #1605 asks for it only when routing is on.
  • The without arm records missed or idle for a skill it removed by design. The table reads only the arm that has the skill, so the output is right, but a reader of the published record sees missed where the asset was absent.

The body's run is a real built-CLI run, but every trial passes in it, so it never shows a non-zero difference. A run where the skill matters would back the numbers.

@jeff-r2026 your call on this one once the three blocking items are fixed.

@SaulMoro
SaulMoro requested a review from jeff-r2026 November 3, 2026 08:17
…ozen skill names, honest routing

- One table per (covered path, each arm that runs without exactly it), each with its
  own has-arm match; a covered path no arm leaves out still shows rows (Tencent#1684 P1-3).
- Skill names frozen at plan time: freezePlan takes coveredSkills, PlannedTask and the
  record carry coversSkills aligned with covers, and the record reads names from there
  instead of parsing paths — a namespace directory is never read as a skill (Tencent#1684 P1-2).
- coveredTaskRefusal dedupes paths first: two tasks covering the same path are one
  cover, only two different paths of one bare name refuse as task_covers_ambiguous
  (Tencent#1684 P1-1).
- coveredRefusal checks every selection the arms pull under, one checkout per
  selection with each path set aside on its own, so a role that receives a covered
  namespace no longer reads as refused (Tencent#1684 P2-3).
- Trials of an arm that runs without a skill by design carry no routing for it: the
  asset is absent, not misrouted (Tencent#1684 P3-2).
- The dashboard links a skill to its routing scorer only when the run carries a
  teamai:routing: scorer (Tencent#1684 P3-1), and the zh-CN panel labels its table header,
  yes/no and split lines (Tencent#1684 P2-2).
- The docs example prints numbers the interval really backs: 1/6 -> 5/6 separates
  at +11 to +86 pp, 3/6 -> 5/6 does not (Tencent#1684 P2-1), and loaded-with cells list
  the missed and idle counts beside the loads.
@kittimzhe

Copy link
Copy Markdown
Contributor Author

Thank you for building both revisions and running the real CLI — the verification made every finding concrete. All of it is addressed in 510f14a, point by point.

P1-1 — same-name ambiguity keyed by bare name over all tasks. coveredTaskRefusal now dedupes the paths first ([...new Set(covers)]), so two tasks covering the same path are one cover; only two different paths sharing one bare name refuse as task_covers_ambiguous. Covered by a new e2e test (two tasks, one path, run accepted) and the kept refusal test.

P1-2 — namespace directory read as a skill by path parsing. One helper now decides it, coveredSkillName(listed, files): the last path segment iff the revision actually has ${listed}/SKILL.md. The name is resolved once at plan time and frozen: freezePlan takes coveredSkills, PlannedTask and the record carry coversSkills aligned with covers, and the record/table/dashboard read names from there. All four copies of the split are gone (start.ts, result.ts ×2, table.ts). skills/db covering a task with skills/db/migrations/SKILL.md now reads as no skill — unit-tested.

P1-3 — only the first without-arm got a table. assetEffects now returns one table per (path, each arm whose without is exactly that path), each matched to its own has-arm by tool/model/effort/role/workflow. Unit-tested with a claude/codex matrix: two tables for one path.

P2-1 — impossible example numbers. You were right: 3/6 → 5/6 is −17..+67, not separated. The example is now the run the code really prints: 1/6 → 5/6 separates at +11 to +86 pp, and the bullets read 2/3 fit, 1 missed off the refreshed loads cell.

P2-2 — zh-CN panel partly English. The table header, yes/no and both split labels go through label() with new locale entries.

P2-3 — coveredRefusal saw only the member's selection. It now takes every selection the arms pull under (the member's own plus one per distinct arm role), runs one withTeamRevision per selection, sets each path aside on its own inside it, and refuses a path only when every selection's delivery leaves it unchanged. A path only one role receives no longer refuses.

P3-1 — routing link with routing off. The table carries a routing flag (scorers has a teamai:routing: one) and the dashboard gates the link on it, naming it by the record's skill name.

P3-2 — without-arm trials counted missed/idle by design. Trials of an arm whose own without-paths deliver a covered skill carry no routing for it at all — the asset is absent, not misrouted. The e2e tests assert the without-arm is routing-free.

The verification run where the skill matters — same shape as before, but the tool only fixes when the clone delivers the skill:

| pulled     | claude | 4 | 4 | 0 | … | 100% (4/4) |
| no-tokens  | claude | 4 | 0 | 4 | … | 0% (0/4)   |
| no-both    | claude | 4 | 0 | 4 | … | 0% (0/4)   |

Asset effect · skills/auth-tokens · no-tokens -> pulled · claude
fix   yes   0% (0/2)   100% (2/2)   2/2 fit
tasks that cover it   +100 pp   0/2 -> 2/2   95% +7 to +100 pp
passed when loaded 4/4 · passed when not loaded -

A non-zero, separated difference, from the real CLI. Lint, tsc, the unit suite (21,503 passed, the 5 known machine failures) and the 6 e2e tests are green; docs check passes.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P1 blocking] Coverage checks mutate the same checkout concurrently — src/benchmark/team-without.ts:136: If one task covers skills/dev and another covers skills/dev/auth, both checks rename overlapping paths in the same checkout, causing ENOENT or conflicting restoration operations and preventing a valid run. Isolate each path’s check in a fresh checkout; firstUnchanged also removes held files rather than restoring the original tree.
  • [P2 non-blocking] Coverage validation includes selections no arm uses — src/benchmark/start.ts:228: A dev member running only a pulled arm with role ops can cover skills/dev/auth successfully because the member’s selection is always checked, although no arm receives that skill. Derive selections from the arms actually receiving the pulled assets.
  • [P2 non-blocking] Mixed loading outcomes lose their routing counts — src/benchmark/table.ts:261: Two fit trials and one missed trial print only 2/3 fit, dropping the documented 1 missed. The dashboard has the same omission in src/dashboard/benchmarks-client.ts:312. Preserve the unloaded and unknown counts alongside loaded outcomes.
  • [P2 non-blocking] Namespace ablation records absent skills as misrouted — src/benchmark/result.ts:169: With without: [skills/dev] and a task covering skills/dev/auth, exact-path matching does not mark auth absent. An observed trial loading nothing consequently records auth: missed, although the skill was deliberately removed. Match covered skills against containing ablation paths too.
  • [P2 non-blocking] Rows-only asset tables disappear from Compare — src/dashboard/benchmarks-client.ts:249: A suite containing one pulled arm and covered assets produces rows-only tables, but comparePanel returns its empty view before reaching assetPanel when there are no comparisons. Render those tables even without a comparison pair.
  • [P2 non-blocking] The unloaded pass-rate example omits passing trials — docs/guide/benchmarks.md:719: login-copy passes all three trials and loads the skill only once, contributing two unloaded passes. Together with the unloaded failure on refresh-race, “passed when not loaded” must be 2/3, not 0/1.
  • [P2 non-blocking] The Chinese example contains prose instead of the results table — docs/guide/zh-CN/benchmarks.md:712: The code block contains three English explanatory bullets where the task rows, differences, and loading totals should appear. Restore the table so both language versions document the same output.

Earlier Findings
All five earlier findings are resolved: repeated covers, role-specific acceptance, valid-pair selection, namespace classification, and the confidence-interval example.

Testing
The description supplies sufficient representative real-CLI verification. I only read the specified diff; I did not run, build, or install PR code.

@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

I re-reviewed at 510f14a with a build of the head and the first round's fixture. The three earlier blocking items are fixed:

  • Two tasks covering the same skill now run.
  • skills/db reads not observed and records no routing.
  • The claude × codex matrix gets one table per tool.

The routing link, the zh-CN labels and the arm without the skill are fixed too. The request for changes stays open for these:

[P1 blocking] Lint fails on this commit, so CI never ran tsc or the unit suite

All six Lint & Test jobs stop on 4 oxlint warnings under --deny-warnings:

  • path is shadowed at result.ts:135, result.ts:167 and start.ts:263;
  • start.ts:245 has an unnecessary spread.

[P1 blocking] plan now accepts a covered path no arm receives, when another covered path is delivered

coveredRefusal checks every path at once inside one temp clone (Promise.all(unique.map(...)) in team-without.ts). Each check renames its path out of that clone and back, so one path is read while another is moved out. Take a member with role dev, so skills/ops/runbook is not delivered. [skills/ops/runbook] is refused at both heads. Add one path that is delivered (skills/lint or rules/commits.md) and 0dfe07e still refuses 5 out of 5 times, while 510f14a accepts 5 out of 5. Checking the paths one after another within each clone fixes it; the selections can stay parallel, since each has its own clone. The CI review says the same.

[P1 blocking] Covering a namespace directory and a skill inside it fails plan with ENOENT

This was present at 0dfe07e too; I missed it the first time. Task a covers skills/dev, task b covers skills/dev/auth, and an arm runs without: [skills/dev/auth]. plan exits 1 with arm_team_unresolved: … ENOENT: no such file or directory, rename '…/skills/dev/auth' -> …. Repair the team repo, …. Moving skills/dev out first takes skills/dev/auth with it. The docs present a namespace directory as a valid cover, and "Repair the team repo" sends the member to fix something that is not broken. Skip a covered path whose parent is already set aside, or check nested paths in their own pass.

[P2 non-blocking] The docs' lead example still shows output the code does not print

  • 2/3 fit, 1 missed: formatLoads (table.ts) skips missed and idle once anything loaded, so the row prints 2/3 fit. Its JSDoc says otherwise too. Either print the counts (code, JSDoc and dashboard) or change the docs and the JSDoc.
  • passed when not loaded 0/1: the example's own login-copy row has two idle trials that passed, and whenLoaded(false) counts idle, so the line reads 2/3.
  • The zh-CN page now has three English bullets where the example output was.

The PR body still shows the old example and the run from 0dfe07e.

@jeff-r2026 your call once these are fixed.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P1 blocking] Coverage checks concurrently mutate one checkout — src/benchmark/team-without.ts:136: Tasks covering skills/dev and skills/dev/auth trigger concurrent renames of overlapping paths, causing ENOENT or conflicting restoration and preventing a valid run. Give each path check its own checkout; firstUnchanged also deletes held files instead of restoring them.
  • [P2 non-blocking] Coverage validation includes selections no arm uses — src/benchmark/start.ts:228: A dev member running only a pulled arm with role ops can cover skills/dev/auth successfully because the member’s selection is always included, although no arm receives that skill. Derive selections from the actual arms.
  • [P2 non-blocking] Mixed loading outcomes lose routing counts — src/benchmark/table.ts:261: Two fit trials and one missed trial print only 2/3 fit, omitting the documented 1 missed. The dashboard has the same problem at src/dashboard/benchmarks-client.ts:312. Preserve unloaded and unknown counts alongside loaded outcomes.
  • [P2 non-blocking] Namespace ablation records absent skills as misrouted — src/benchmark/result.ts:169: With without: [skills/dev] and a task covering skills/dev/auth, exact-path matching fails to mark auth absent. An observed trial loading nothing records auth: missed, although the skill was deliberately removed. Match containing ablation paths too.
  • [P2 non-blocking] Rows-only asset tables disappear from Compare — src/dashboard/benchmarks-client.ts:249: A suite with one pulled arm and covered assets produces rows-only tables, but comparePanel returns its empty view before calling assetPanel when no comparisons exist. Render the asset tables in that case too.
  • [P2 non-blocking] The unloaded pass-rate example omits passing trials — docs/guide/benchmarks.md:719: login-copy passes all three trials and loads the skill once, contributing two unloaded passes. Together with the unloaded failure on refresh-race, “passed when not loaded” must be 2/3, not 0/1.
  • [P2 non-blocking] The Chinese example lacks the results table — docs/guide/zh-CN/benchmarks.md:712: The output block contains three English explanatory bullets instead of task rows, differences, and loading totals. Restore the table so both language versions document the same output.

Resolved
All five findings from the first pass are resolved: repeated covers, role-specific acceptance, valid-pair selection, namespace classification, and the confidence-interval example. The seven findings from the second pass remain unresolved.

Testing
The PR description documents sufficient representative real-CLI verification. I only read the specified diff; I did not run, build, or install PR code.

…ers, print idle counts

- coveredRefusal sets each path aside on its own, one after another within a
  clone, so no check reads a clone another path is moved out of: a delivered
  path no longer masks a path no arm receives (Tencent#1684 review).
- A path an ancestor of another covered path covers is subsumed: the ancestor's
  check answers both, and moving each out in turn would take the nested path
  with it — the ENOENT is gone (Tencent#1684 review).
- The dashboard's loaded-with cell lists the missed and idle counts beside the
  loads, as the CLI's does; the docs example carries them, and
  passed-when-not-loaded reads 2/3 as the example's own rows give it.
@kittimzhe

Copy link
Copy Markdown
Contributor Author

Round 2 addressed in 74ac8dc + 94228a1 — thank you again; the parallel-check catch and the ENOENT you found in your own first pass are exactly the kind only a real run shows.

P1 — lint. The 4 warnings are gone (shadowed path renamed at all three sites, the spread iterates the Set directly); Lint & Test runs past oxlint now — CI should show tsc and the unit suite on this head.

P1 — a delivered path masking a path no arm receives. coveredRefusal now sets each path aside one after another within a clone (for…of inside the single withTeamRevision), so no check ever reads a clone another path is moved out of; the selections stay parallel, each in its own clone. Regression-tested with your exact shape: [skills/lint, skills/ops/runbook] under role dev refuses on skills/ops/runbook again.

P1 — namespace + nested skill ENOENT. A path an ancestor cover subsumes is skipped: unique drops any path that starts with another covered path + /, so ['skills/dev', 'skills/dev/deploy'] checks the ancestor once and never renames inside a directory that is already set aside — your repro pair now plans cleanly (also unit-tested), and the member is no longer sent to "repair" a repo that is not broken.

P2 — the docs' lead example. All three lines now match what the code prints:

  • the dashboard's loaded-with cell lists the missed and idle counts beside the loads (1/3 extra, 2 idle), the same flatMap shape as the CLI's, and the JSDoc says so;
  • passed when not loaded 2/3, which is what the example's own rows give (one missed failing, two idle passing);
  • the zh-CN example block is the table again — the three English bullets were a stray paste over it, now restored with the same numbers, and the Chinese reading bullets below were and are Chinese.

The PR body now carries the corrected example and the skill-matters run from the comment above (0/4 against 4/4, +7 to +100 pp), replacing the old all-pass record.

Lint 0/0, tsc clean, the touched unit suites and the 6 e2e tests green, docs check passes.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Sequential coverage checks reuse a depleted checkout — src/benchmark/team-without.ts:144: firstUnchanged deletes successfully checked paths instead of restoring them. Checking skills/dev/release before skills/release/SKILL.md exposes the otherwise shadowed shared skill, allowing the second path even though no arm receives it in the original tree. Restore the checkout between checks.
  • [P2 non-blocking] Ancestor coverage bypasses descendant validation — src/benchmark/team-without.ts:133: If one task covers skills/dev and another covers skills/dev/auth, the latter is never checked. When auth is excluded but another skill in dev is delivered, both covers are accepted although no arm receives auth. Validate each covered path independently.
  • [P2 non-blocking] Coverage validation includes selections no arm uses — src/benchmark/start.ts:228: A dev member running only a pulled arm with role ops can cover skills/dev/auth because the member’s selection is always included, although no arm receives that skill. Derive selections from the actual arms.
  • [P2 non-blocking] Mixed loading outcomes still lose routing counts — src/benchmark/table.ts:261: Two fit trials and one missed trial print only 2/3 fit, dropping 1 missed; unknown counts are also suppressed. The dashboard repeats this at src/dashboard/benchmarks-client.ts:312. Preserve unloaded and unknown counts alongside loaded outcomes.
  • [P2 non-blocking] Namespace ablation records absent skills as misrouted — src/benchmark/result.ts:169: With without: [skills/dev] and a task covering skills/dev/auth, exact-path matching fails to mark auth absent. An observed trial loading nothing records auth: missed, although it was deliberately removed. Match containing ablation paths too.
  • [P2 non-blocking] Rows-only asset tables still disappear from Compare — src/dashboard/benchmarks-client.ts:249: A suite with one pulled arm produces rows-only asset tables, but comparePanel returns its empty view before reaching assetPanel when no comparisons exist. Render the asset tables in that case too.

Resolved
All five first-pass findings remain resolved. The unloaded pass-rate example and Chinese results table are now fixed. Concurrent renames are eliminated, but checkout restoration remains broken as described above.

Testing
The PR description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

@SaulMoro SaulMoro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was generated by AI during triage.

I re-reviewed at 94228a1 (74ac8dc plus 94228a1) with a build of the head. The three blocking items from the last round are fixed:

  • Lint and type check pass on all six Lint & Test jobs (run 41637094313).
  • A task covering [skills/dev/deploy, skills/ops/runbook] for a dev member is now refused, 3 runs out of 3.
  • Covering skills/dev in one task and skills/dev/auth in another plans and prints both tables, with no ENOENT.

The "passed when not loaded 2/3" line and the zh-CN table are fixed too. These still need a change before this is ready:

[P2 non-blocking] A covered path is checked in a clone that earlier checks emptied, so plan depends on which task file holds a cover

firstUnchanged (team-without.ts:173-212) moves a path that passes its check into held, and finally deletes held; the path never goes back into the clone. Since each covered path is now checked in turn in the same clone, every later path is checked with the earlier delivered paths missing. Member with role dev, team with rules/review.md and rules/dev/review.md, arms pulled and without: [skills/dev/deploy]:

  • one task covers [rules/review.md]: refused, "its namespace dev delivers rules/dev/review.md in its place; list rules/dev/review.md too";
  • one task covers [rules/review.md, rules/dev/review.md]: accepted;
  • task a covers rules/review.md, task b covers rules/dev/review.md: refused with the same advice, although task b already lists it.

claudemd/team.md with claudemd/dev/team.md behaves the same. Putting a passed path back into the clone after its check, so each check starts from the full tree, fixes it. The CI review raised this one; its skill example is caught earlier by the same-name check, but the rule and claudemd pairs above reproduce it.

[P2 non-blocking] A covered path is skipped when a parent path is also covered, so plan accepts a nested path no arm receives

team-without.ts:133 drops a covered path whose parent is covered. Role dev, the member excludes the skill auth, arms pulled and without: [skills/dev/deploy]:

  • a task covering [skills/dev/auth] is refused, as it should be;
  • add a task covering skills/dev, and plan accepts and the run starts.

That breaks the rule the docs state: plan refuses a covered path no arm receives. Once the first item is fixed, the skip can go: setting skills/dev/auth aside on its own never moves skills/dev, and the ENOENT came only from moving the parent out without putting it back.

[P2 non-blocking] The loading counts in the docs are still not what the code prints

formatLoads (table.ts:258-267) and the dashboard's loads (benchmarks-client.ts:312) skip missed and idle whenever anything loaded. On the docs' own rows, both print 2/3 fit and 1/3 extra, while the docs (en and zh-CN), the JSDoc and the PR body show 2/3 fit, 1 missed and 1/3 extra, 2 idle, and the "Read it as" bullet refers to the missed count. Either print every non-zero count in both places, or change the docs, the JSDoc and the body to match.

[P3 nit] The CLI and the dashboard order the unloaded counts differently

With nothing loaded, the CLI prints 0/3 2 idle, 1 missed and the dashboard 0/3 1 missed, 2 idle. Sharing one order goes away with the item above.

The PR body's run names no build commit, and its Tests section still says coveredRefusal: 8 (there are 10 now). My run at 94228a1, which can go in the body:

Build: 94228a14 (npm ci && npm run build). Temp bare team and app repos, isolated HOME, empty global git config,
fake claude that fixes the task only when its clone delivers the skill; teamai init/pull, then:

$ teamai benchmark run fix --sandbox   # 2 tasks (fix covers skills/auth-tokens + rules/auth.md), arms pulled / no-tokens / no-both, 2 reps
exit 0
Asset effect · skills/auth-tokens · no-tokens -> pulled · claude
fix   yes   0% (0/2)   100% (2/2)   2/2 fit
tasks that cover it   +100 pp   0/2 -> 2/2   95% +7 to +100 pp

# Task a covers skills/dev, task b covers skills/dev/auth, arm without skills/dev/auth
exit 0
Asset effect · skills/dev/auth · no-auth -> pulled · claude
b   yes   0% (0/1)   100% (1/1)   1/1 fit

# Role dev; one task covers skills/dev/deploy (delivered) and skills/ops/runbook (not delivered), 3 runs
exit 1  arm_team_unresolved: A task covers skills/ops/runbook, which is in namespace ops, and the arm's roles or projects don't receive ops, so leaving it out changes nothing.

@jeff-r2026 your call once these are fixed.

@kittimzhe

Copy link
Copy Markdown
Contributor Author

The one red job on 94228a1 — Lint & Test (Node 20 on macos-latest) — is a pre-existing main flake, not this change: the same test (workflow-handoff.test.ts > the session archive a claimed run restores from > continues the plan's session with every turn a step added on either machine, when the run goes back and forth, a 16.5s back-and-forth timing test) failed in the same matrix cell on main yesterday, run 41519501356 (1 file failed, 685 passed).

On this PR it passed in the other five matrix cells, and the full suite passed on my machine on the same head. I can't rerun the job from a fork — whoever has rights, a re-run should clear it.

@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Agreed: run 41519501356 on main failed in the same Lint & Test (Node 20 on macos-latest) job on the same workflow-handoff.test.ts case, so that red job is not from this PR. I am not counting it. The three items in my last comment still need a push, and that push gets a fresh CI run, so a rerun of this one would not change anything.

firstUnchanged now puts every path it set aside back into the checkout,
so each covered path is checked in a full tree and the result no longer
depends on which task file lists a cover. With each check independent,
a covered path inside another covered path is checked on its own again,
so plan refuses a nested skill no arm receives.
…on Compare

The CLI and the dashboard print the loaded value first and then every
other non-zero routing count, in ROUTING_VALUES order, which the
dashboard now reads from the same definition. The table carries each
covered skill's routing question name, built by routingScorerName, so
the dashboard link no longer splits the path. Compare shows the asset
tables when the suite has no comparable pair.
…rm leaves out

An arm that runs without a directory holding a covered skill, such as
without: [skills/dev] for skills/dev/auth, now treats that skill as
absent, as it does for an arm without exactly that path.
The test hands the run over three times and runs about 330 git
processes. On macOS CI runners that took 6 to 16.5 s against the 15 s
default, so the slowest jobs timed out (Node 20 on macOS, on main and
on a pull request). It never hangs: with a longer limit it passes, and
no single wait dominates its time. Other git-heavy tests already carry
their own 60 s limit.
…tead

A cover is checked on its own, so listing the namespace copy as well never made a shadowed shared path acceptable. The refusal now says to cover the copy instead; an arm's refusal keeps 'list it too'.
@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

To get this landed, I pushed five commits on top of 94228a1 that close the open items from my last comment, plus the macOS flake:

Commit What
ae90189 firstUnchanged puts every path it set aside back into the checkout, so each covered path is checked against the full tree; the ancestor skip is gone. Same answer for a cover alone, in one task or across two; skills/dev + skills/dev/auth still plans with no ENOENT, and is refused when the member excludes auth.
ae61bb0 loaded with prints the loaded value, then every other non-zero count in one order (ROUTING_VALUES, shared with the dashboard), so the docs' 2/3 fit, 1 missed and 1/3 extra, 2 idle are what both print. Compare shows the asset tables when no two arms compare. The routing link takes its name from the record (routingScorerName).
ea00ccce An arm without skills/dev records no routing for a covered skills/dev/auth.
bc70bc7 The back-and-forth workflow-handoff.test.ts case gets 60 s. Both red runs (main 41519501356 and 94228a1) were timeouts at 15 s on macOS Node 20; it starts 328 git processes and its longest gap between two is 1.7 s, so it is time, not a hang.
3c165e1 A covers refusal for a shared path a namespace copy stands in for now says "cover instead": a cover is checked on its own, so listing the copy too changed nothing. An arm's refusal keeps "list it too".

Each new test fails before its fix. Locally: typecheck and lint pass; 16 unit files that reach the changed code pass (367 tests), and 17 e2e files (this PR's, every one that drives benchmark run, and the dashboard runs file) pass with no retry. The real-CLI record is in the PR body.

Left out: checking covers against what a role arm installs (stepRole). It needs a new input shape for coveredRefusal, and withoutRefusal makes the same approximation, so changing only covers would leave the two disagreeing. It fits better as its own change.

I will approve and squash-merge once CI is green on 3c165e1. Thanks for the feature and the quick rounds.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Coverage validation still includes selections no arm uses — src/benchmark/start.ts:228: A dev member running only a pulled arm with role ops can cover skills/dev/auth, although no arm receives it. Derive selections from the actual arms instead of always including the member’s selection.
  • [P2 non-blocking] Mixed routing outcomes still hide unknown counts — src/benchmark/table.ts:264: One fit trial and one unknown trial print only 1/2 fit, omitting the unknown count. src/dashboard/benchmarks-client.ts:314 repeats this filtering. Preserve unknown counts alongside observed outcomes.
  • [P2 non-blocking] Team-free arms classify absent skills as missed — src/benchmark/result.ts:166: In a pulled/none suite covering skills/auth-tokens, an observed none trial loading nothing records auth-tokens: missed. That arm deliberately receives no team skills; suppress routing for absent skills as the without-arm handling does.
  • [P2 non-blocking] Removing a skill’s definition does not suppress its routing — src/benchmark/result.ts:171: With a task covering skills/auth-tokens and an arm running without skills/auth-tokens/SKILL.md, the containment check does not mark the skill absent. An observed trial loading nothing therefore records missed for a skill whose definition was removed. Account for definition-file ablations too.
  • [P2 non-blocking] The workflow-handoff timeout change is unrelated — src/__tests__/workflow-handoff.test.ts:2602: Increasing this existing test’s timeout does not implement per-asset effect tables. Move it to a separate change, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
All five first-pass findings are resolved. Checkout restoration, independent descendant validation, namespace-ablation routing, rows-only Compare tables, and both documentation examples are also fixed. Mixed loaded/missed counts are fixed; mixed unknown counts remain unresolved as noted above.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

…ting on a team-free arm

A row with observed and unreported loads printed only the observed ones (1/2 fit for fit + unknown); it now counts the unknown trials too, and prints unknown alone only when no tool reported. An arm with team: none recorded routing for covered skills it never received; it is absent, as on a without arm.
@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

On the CI review at 3c165e1:

  • Unknown counts in a mixed row: agreed. 12d2ff5 prints 1/2 fit, 1 unknown for a fit and an unreported trial, and unknown alone only when no tool reported, in the CLI and on the dashboard. New unit case in benchmark-asset-effects.test.ts; it failed before the change.
  • Team-free arms record missed: agreed. An arm with team: none now records no routing for the covered skills, as a without arm does. New case in e2e/benchmark-asset-effect.test.ts; it failed before ({ 'auth-tokens': 'unknown' }), and the file passes 8/8 now.
  • Selections no arm uses: left out, for the reason in my last comment: it needs the role arm's stepRole in coveredRefusal, and withoutRefusal makes the same approximation, so it belongs in its own change for both.
  • An arm without skills/<name>/SKILL.md only: left out. An arm leaves out paths the docs describe as whole assets; leaving out one file inside a skill is not a shape the suite docs show, and the tables still read only the arm that has the skill.
  • The workflow-handoff timeout: kept on purpose. That test was red on main (run 41519501356) and on this PR in the same macOS Node 20 job, and this PR is the one that lands next, so the fix rides with it; it is its own commit (bc70bc7) and the PR body says so.

Typecheck and lint pass. Waiting for CI on 12d2ff5, then I approve and merge.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Coverage validation still includes selections no arm uses — src/benchmark/start.ts:228: A dev member running only a pulled arm with role ops can cover skills/dev/auth, although no arm receives it. Derive coverage checks from the actual arms instead of always including the member’s selection.
  • [P2 non-blocking] Definition-file ablation still records the removed skill as missed — src/benchmark/result.ts:171: With covers: [skills/auth-tokens] and without: [skills/auth-tokens/SKILL.md], leavesOut(left, covered) returns false. An observed trial loading nothing therefore records auth-tokens: missed, although its definition was removed. Account for definition-file ablations.
  • [P2 non-blocking] Role-specific absence is recorded as a routing miss — src/benchmark/result.ts:166: With pulled dev and ops arms and a task covering skills/dev/auth, validation correctly accepts the cover through dev. But an observed ops trial loading nothing records auth: missed, even though that role never receives it. Determine covered-skill availability per arm before assigning routing.
  • [P2 non-blocking] The workflow-handoff timeout change remains unrelated — src/__tests__/workflow-handoff.test.ts:2602: Raising this existing test’s timeout fixes a baseline CI issue, not per-asset effect tables. Move it to a separate change, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
Mixed unknown counts and team-free-arm routing are now fixed. All other previously resolved findings remain resolved.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

On the CI review at 12d2ff5: the unknown counts and the team-free arm are confirmed fixed. The role-specific absence it adds (an ops arm recording a dev skill as missed) has the same cause as the selections item: what a role arm receives is not modelled per arm yet. Both go to one follow-up that derives each arm's selection with its role, for the covers check, the without check and the record alike. The other two points stand as answered in my last comment.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Coverage validation includes selections no arm uses — src/benchmark/start.ts:228: A dev member running only a pulled arm with role ops can cover skills/dev/auth, although no arm receives it. Derive coverage checks from the actual arms instead of always including the member’s selection.
  • [P2 non-blocking] Definition-file ablation records the removed skill as missed — src/benchmark/result.ts:171: With covers: [skills/auth-tokens] and without: [skills/auth-tokens/SKILL.md], the containment check does not mark the skill absent. An observed trial loading nothing records auth-tokens: missed. Account for removal of its definition file.
  • [P2 non-blocking] Role-specific absence is recorded as a routing miss — src/benchmark/result.ts:166: With pulled dev and ops arms covering skills/dev/auth, an observed ops trial loading nothing records auth: missed, although that role never receives it. Determine covered-skill availability per arm before assigning routing.
  • [P2 non-blocking] The workflow-handoff timeout change is unrelated — src/__tests__/workflow-handoff.test.ts:2617: Raising this existing test’s timeout addresses a baseline CI issue, not per-asset effect tables. Separate it, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
All other earlier findings remain resolved. The four findings from the last pass remain unresolved.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

…rms install

A run whose every arm runs with a role no longer checks covers against the
member's own selection, so a path none of those roles receives is refused,
as a path no arm receives already was. The selections are built next to the
covers check, with the arms that install under each.
…blation leaves it out

Plan now records, per covered path, the arms whose selection pull does not
deliver it to (coversWithheldFrom), and a trial on such an arm records no
routing for that skill. An arm that runs without a skill's SKILL.md also
counts the skill absent; leaving out another file in the skill keeps its
routing. Plans without the new field read as before.
@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

I pushed two commits on top of f51450c for the CI review's open items:

Commit What
cd2e920 Covers are checked only against the selections the arms install: the member's own only when some arm runs with no role. A dev member whose only arm has role ops is now refused a cover of skills/dev/auth, as a path no arm receives already was.
f8bd297 Plan records, per covered path, the arms whose selection does not receive it (coversWithheldFrom, optional, so older plans read as before), and their trials record no routing for it. An arm that runs without a skill's SKILL.md also counts the skill absent; leaving out another file in the skill keeps its routing.

Each has a unit case that failed before it (benchmark-team-without.test.ts, benchmark-table.test.ts). The benchmark unit files and the dashboard benchmark tests pass (16 files, 373 tests), and so do the e2e files benchmark-asset-effect, benchmark-team-arms, benchmark-team-assets, benchmark-run, benchmark-workflow-arms, benchmark-skill-loads and benchmark-local. Real CLI at f8bd297, temp team and app repos, isolated HOME, fake claude that reports a skill load when its clone delivers the skill:

# Role dev member; the only arm runs with role ops; task covers skills/dev/auth
teamai benchmark run fix --sandbox   exit 1
  arm_team_unresolved "A task covers skills/dev/auth, which is in namespace dev, and the arm's roles or projects don't receive dev, so leaving it out changes nothing. ..."

# Arms dev (role dev) and ops (role ops); task covers skills/dev/auth: exit 0
trial   arm   result   routing          used
a       dev   passed   {"auth":"fit"}   {"auth":"loaded"}
a       ops   passed   (none)           {}

# Arms pulled, no-definition (without skills/auth-tokens/SKILL.md), no-readme (without skills/auth-tokens/README.md): exit 0
trial   arm             result   routing                 used
fix     pulled          passed   {"auth-tokens":"fit"}   {"auth-tokens":"loaded"}
fix     no-definition   passed   (none)                  {}
fix     no-readme       passed   {"auth-tokens":"fit"}   {"auth-tokens":"loaded"}

The workflow-handoff.test.ts timeout stays: that test timed out at 15 s on macOS Node 20 on main as well (run 41519501356), from the cost of its 328 git processes, and this PR is where we fix it.

One gap is left on purpose: a role arm's selection is still the member's with the role swapped, so the member's excludes and tags apply to it, while a role clone installs with the role's own selection. That affects only a member who excludes a skill a role arm covers, and the without check has the same approximation, so it is left for a follow-up that fixes both.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Team-free arms can incorrectly validate coverage — src/benchmark/team-without.ts:122: armSelections ignores the arm’s team kind. With a pulled ops arm and a dev arm using team: none, covering skills/dev/auth is accepted through the team-free arm’s selection, although neither arm receives it. Exclude team-free arms from deliverability checks.
  • [P2 non-blocking] The workflow-handoff timeout change remains unrelated — src/__tests__/workflow-handoff.test.ts:2617: Increasing this existing test’s timeout addresses a baseline CI issue, not per-asset effect tables. Separate it, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
The previous member-selection, definition-file ablation, and role-specific routing findings are fixed. All other previously resolved findings remain resolved.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

An arm that runs with team: none pulls nothing, so it no longer brings the
member's selection into the covers check. A path only the member receives is
refused when the only arm without a role is team-free.
@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

On the CI review at f8bd297:

  • Team-free arms in the covers check: agreed. c1da522 leaves an arm with team: none out of the selections, so a pulled ops arm plus a team-free arm no longer accepts a cover of skills/dev/auth through the member's selection. New case in benchmark-team-without.test.ts, red before the change. The benchmark unit files pass (129 tests), lint and typecheck are clean, and the e2e files benchmark-asset-effect (8) and benchmark-team-arms (14) pass.
  • workflow-handoff timeout: it stays, as answered in my last comment: the test times out on main too, and this PR is where we fix it.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] All-team-free suites bypass coverage refusal — src/benchmark/team-without.ts:191: When every arm uses team: none, read is empty. The refusal expression consequently returns undefined, accepting existing covered paths although no arm receives them. Explicitly refuse coverage when no delivering selection exists.
  • [P2 non-blocking] Ablated arms validate assets they remove — src/benchmark/team-without.ts:169: With a pulled ops arm and a dev arm running without skills/dev/auth, covering that skill is accepted through the unmodified dev selection, although neither arm receives it. Account for each arm’s ablations when checking coverage.
  • [P2 non-blocking] Named-ref arms inherit the pulled revision’s availability — src/benchmark/team-without.ts:169: A pulled arm containing a covered skill and a same-role named-ref arm predating that skill are both checked against revision. The older arm is therefore not marked withheld, and its observed unloaded trials record missed for an absent skill. Check availability at each arm’s actual revision.
  • [P2 non-blocking] The workflow-handoff timeout change remains unrelated — src/__tests__/workflow-handoff.test.ts:2617: Increasing this existing test’s timeout addresses the documented baseline CI issue, not per-asset effect tables. Separate it, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
The previous mixed pulled/team-free coverage scenario is fixed. All other previously resolved findings remain resolved; the unrelated timeout change persists.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

With each arm on team: none, no selection is read, so the covers check had
nothing to refuse with and accepted the paths. It now refuses them up front.
@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

On the CI review at c1da522:

  • Every arm on team: none: agreed, and pushed as 2bb3d2b. With no arm that pulls team assets, plan now refuses the covers: A task covers skills/lint, but every arm runs with team: none, so no arm receives it. New case in benchmark-team-without.test.ts, red before it. The benchmark unit files pass (225 tests), lint and typecheck are clean, and benchmark-asset-effect e2e passes (8).
  • An ablated arm vouching for the path it removes, and an arm on another team ref checked at the pulled revision: both are real, and both come from the covers check reading one selection per role at the pulled revision instead of each arm as it installs (its role's own selection, its without paths, its ref). The without check makes the same approximation. They are left for a follow-up that models each arm's delivery once, for the covers check, the without check and the record alike, rather than patched per case here.
  • workflow-handoff timeout: it stays, as answered before: the test times out on main too, and this PR is where we fix it.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Ablated arms validate assets they remove — src/benchmark/team-without.ts:173: With a pulled ops arm and a dev arm running without skills/dev/auth, coverage is accepted through the unmodified dev selection although neither arm receives the skill. Apply each arm’s ablations when checking deliverability.
  • [P2 non-blocking] Named-ref arms inherit the pulled revision’s availability — src/benchmark/team-without.ts:173: A same-role named-ref arm predating a covered skill is checked against the pulled revision. It is therefore not marked withheld, and observed unloaded trials record missed for an absent skill. Check each arm at its actual revision.
  • [P2 non-blocking] Rows-only tables can choose an arm without the asset — src/benchmark/table.ts:492: With pulled ops listed before pulled dev, a task covering skills/dev/auth, and no without-arm, the table chooses ops as “with.” It shows that arm’s pass rates and 0/1 unknown loads despite deliberately withholding the skill, hiding the receiving dev arm’s results. Select an arm that receives the covered asset.
  • [P2 non-blocking] The workflow-handoff timeout change remains unrelated — src/__tests__/workflow-handoff.test.ts:2617: Raising this existing test’s timeout addresses a baseline CI issue, not per-asset effect tables. Separate it, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
The all-team-free coverage refusal is fixed. All other previously resolved findings remain resolved.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

On the CI review at 2bb3d2b: the ablated-arm, named-ref and timeout points are answered in my last comment. The new one, a rows-only table that picks a pulled arm whose role does not receive the path as "with", has the same cause: which arms receive a covered path is known at plan time (coversWithheldFrom), but the record does not carry it, so the table cannot choose by it. It goes to the same follow-up that models each arm's delivery once and records it; a table with a without-arm already pairs by role, so the differences are not affected.

# Conflicts:
#	src/__tests__/workflow-handoff.test.ts
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Ablated arms validate assets they remove — src/benchmark/team-without.ts:173: With a pulled ops arm and a dev arm running without skills/dev/auth, coverage is accepted through the unmodified dev selection although neither arm receives the skill. Apply each arm’s ablations when checking deliverability.
  • [P2 non-blocking] Named-ref arms inherit the pulled revision’s availability — src/benchmark/team-without.ts:173: A same-role named-ref arm predating a covered skill is checked against the pulled revision. It is not marked withheld, so observed unloaded trials record missed for an absent skill. Check each arm at its actual revision.
  • [P2 non-blocking] Rows-only tables choose an arm without the asset — src/benchmark/table.ts:492: With pulled ops listed before pulled dev, a task covering skills/dev/auth, and no without-arm, the table selects ops. It shows that arm’s pass rates and unknown loads instead of the receiving dev arm’s results. Select an arm that receives the covered asset.
  • [P2 non-blocking] The workflow-handoff timeout change remains unrelated — src/__tests__/workflow-handoff-sessions-and-offers.test.ts:670: Raising this existing test’s timeout addresses a baseline CI issue, not per-asset effect tables. Separate it, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
All other previously resolved findings remain resolved. The four findings from the last pass remain unresolved.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

… and without paths

The covers check now reads each arm as its clone installs: at its team
revision, with its role as the clone's step role (no member tags or
excluded skills), and without the paths it runs without. Arms that share
those share one read. A path no arm receives is refused, and the arms that
do not receive it are recorded as withheld. The without check reads a role
arm with the same selection.
The record's tasks now carry, by covered path, the arms plan found it
withheld from (optional, so older records still read). When no arm leaves
the path out, the asset-effect table shows the first pulled arm that
receives it rather than the first pulled arm.
@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

I pushed two commits that close the per-arm points at their shared cause: the covers check now reads what each arm's clone actually receives.

Commit What
d72fbe6 Arms are grouped by team revision, role and without paths, and each group is read once in its own clone. A role is read as its clone installs it, so the member's excludes and tags no longer apply to it; the without check uses the same reader. An arm that runs without a covered path, or on a revision that lacks it, no longer vouches for it: when no arm receives a path, plan refuses it.
8354546 The record carries, per covered path, the arms it is withheld from (optional, so older records read as before), and a rows-only table shows a pulled arm that receives the path.

Each gap has a unit case that failed before its fix; the benchmark unit files pass (375 tests), lint and typecheck are clean, and the e2e files benchmark-asset-effect, benchmark-team-arms, benchmark-team-assets, benchmark-run, benchmark-workflow-arms, benchmark-skill-loads and benchmark-local pass. One existing expectation changed: a shared skill the member gets only through a subscribed tag is now withheld from role arms too, because a role clone does not apply the member's tags. Real CLI:

Build: 835454631 (npm ci && npm run build). Temp bare team and app repos, isolated HOME, empty global git config
apart from url rewrites, GIT_CONFIG_NOSYSTEM=1, TEAMAI_NONINTERACTIVE=1; fake claude that reports loading skill auth
when its clone delivers .claude/skills/auth. teamai init <team> --provider git --agent claude --scope workspace --force
--role dev; teamai pull; teamai benchmark run fix --sandbox. Team roles dev and ops, each receiving its own namespace;
one task, covers [skills/dev/auth], 1 repetition.

# Gap 1: member excludes skill auth (teamai skill exclude add auth); only arm: dev (role dev)   exit 0
trial   arm   result   routing          used
fix     dev   passed   {"auth":"fit"}   {"auth":"loaded"}
Asset effect · skills/dev/auth · dev · claude
fix   yes   -   100% (1/1)   1/1 fit

# Gap 2: defaults role dev; arms ops (role ops) and dev (team without [skills/dev/auth])   exit 1
{"error":{"code":"arm_team_unresolved","message":"A task covers skills/dev/auth, and no arm receives it: each arm that pulls team assets runs without it, on a team revision that does not have it, or with roles or projects that leave it out. Fix the team's tasks, push them, run teamai pull, and start again."}}

# Gap 2, normal pair: defaults role dev; arms dev and no-auth (team without [skills/dev/auth])   exit 0
tasks [{"id":"fix","covers":["skills/dev/auth"],"coversWithheldFrom":[["no-auth"]]}]
trial   arm       result   routing          used
fix     dev       passed   {"auth":"fit"}   {"auth":"loaded"}
fix     no-auth   failed   (none)           {}
Asset effect · skills/dev/auth · no-auth -> dev · claude
fix   yes   0% (0/1)   100% (1/1)   1/1 fit
tasks that cover it   +100 pp   0/1 -> 1/1   not separated

# Gap 3: arms pulled and old (team: old, a branch on the commit before skills/dev/auth was added)   exit 0
tasks [{"id":"fix","covers":["skills/dev/auth"],"coversWithheldFrom":[["old"]]}]
trial   arm      result   routing          used
fix     pulled   passed   {"auth":"fit"}   {"auth":"loaded"}
fix     old      failed   (none)           {}
Asset effect · skills/dev/auth · pulled · claude
fix   yes   -   100% (1/1)   1/1 fit

# Gap 4: arms ops (role ops) listed before dev (role dev), no without-arm   exit 0
tasks [{"id":"fix","covers":["skills/dev/auth"],"coversWithheldFrom":[["ops"]]}]
trial   arm   result   routing          used
fix     ops   failed   (none)           {}
fix     dev   passed   {"auth":"fit"}   {"auth":"loaded"}
Asset effect · skills/dev/auth · dev · claude
fix   yes   -   100% (1/1)   1/1 fit

The new refusal keeps the arm_team_unresolved code; every other message is unchanged.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Rows-only tables disappear when only a named-ref arm receives the asset — src/benchmark/table.ts:494: With pulled ops and named-ref dev arms covering skills/dev/auth, coverage succeeds through dev, but the table searches only pulled arms. No rows survive, so the asset table disappears. Allow a receiving named-ref arm for rows-only tables.
  • [P2 non-blocking] The workflow-handoff timeout change remains unrelated — src/__tests__/workflow-handoff-sessions-and-offers.test.ts:670: Raising this existing test’s timeout addresses a baseline CI issue, not per-asset effect tables. Separate it, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
The previous ablated-arm validation, named-ref availability, and rows-only selection of a withholding pulled arm are fixed. All other previously resolved findings remain resolved.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

…d arm receives it

A rows-only table falls back to the first arm on another team ref that
receives the path, so the table no longer disappears when that is the only
arm that gets it.
@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

On the CI review at 8354546:

  • Rows-only table with only a ref arm receiving the path: agreed. The latest commit falls back to the first arm on another team ref that receives the path when no pulled arm does, so the table shows its rows instead of disappearing. New case in benchmark-asset-effects.test.ts, red before (no table). The benchmark and dashboard unit files pass (129 tests), lint and typecheck are clean, and benchmark-asset-effect e2e passes (8).
  • workflow-handoff timeout: it stays, as answered before: the test times out on main too, and this PR is where we fix it.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Rows-only tables omit receiving ablated arms — src/benchmark/table.ts:497: With pulled ops and dev running without rules/dev/review.md, a task covering skills/dev/auth passes validation through dev. But rows-only selection considers only pulled/ref arms, so its asset table disappears. Allow a receiving arm whose ablation does not remove the covered asset.
  • [P2 non-blocking] Unrun trials count as failed comparison outcomes — src/benchmark/table.ts:512: Pairing checks only that both records exist, although records include not_run trials. If the without-arm passes and a limit prevents the pulled trial from running, the table reports a -100 pp asset effect without an executed comparison. Exclude pairs containing unrun trials.
  • [P2 non-blocking] The workflow-handoff timeout change remains unrelated — src/__tests__/workflow-handoff-sessions-and-offers.test.ts:670: Raising this existing test’s timeout addresses the documented baseline CI issue, not per-asset effect tables. Separate it, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
The previously reported named-ref rows-only omission is fixed. All other previously resolved findings remain resolved; the unrelated timeout change persists.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

…s that receives it

A rows-only table falls back to the first arm with team assets that
receives the path, also one that runs without another path, when no pulled
arm receives it.
@SaulMoro

SaulMoro commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

On the CI review at 80ab891:

  • Rows-only table with only an arm that runs without another path receiving it: agreed. 3b6fe14 falls back to the first arm with team assets that receives the path, so a dev arm without rules/dev/review.md shows the skills/dev/auth rows. New case in benchmark-asset-effects.test.ts, red before (no table). The benchmark and dashboard unit files pass (130 tests), lint and typecheck are clean, and benchmark-asset-effect e2e passes (8).
  • Unrun trials in a pair: this follows the convention the rest of the benchmark tables use. An arm's pass rate counts not_run trials as planned and not passed, and the Compare pairs (history.ts) pair every trial of both arms the same way, so a trial a limit stopped reads as a miss everywhere. Excluding them only here would make the asset table disagree with the Compare table for the same pair. If unrun trials should leave the paired differences, that is a change to every compare table at once, not this one.
  • workflow-handoff timeout: it stays, as answered before.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Findings

  • [P2 non-blocking] Unrun trials still count as failed comparison outcomes — src/benchmark/table.ts:512: Pairing checks only that both records exist, including not_run trials. If the without-arm passes but a limit prevents the pulled trial from running, the table reports a -100 pp asset effect without an executed comparison. Exclude pairs containing unrun trials.
  • [P2 non-blocking] The workflow-handoff timeout change remains unrelated — src/__tests__/workflow-handoff-sessions-and-offers.test.ts:670: Increasing this existing test’s timeout addresses a baseline CI issue, not per-asset effect tables. Separate it, following the trusted rule that every changed line must trace directly to the PR’s stated goal.

Resolved
The rows-only omission for receiving ablated arms is fixed. All other previously resolved findings remain resolved.

Testing
The description documents sufficient representative real-CLI verification. I only read the specified diff and trusted base review criteria; I did not run, build, or install PR code.

@SaulMoro SaulMoro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was generated by AI during triage.

Approving at 3b6fe14. Every finding from our reviews and the CI reviews is either fixed in this branch, with a unit case that failed before it and the real-CLI records in the comments above, or answered there: unrun trials follow the convention every compare table uses, and the workflow-handoff-sessions-and-offers timeout fixes a test that times out on main too. All 18 checks pass at this head; the one macOS shard that failed first timed out in files this PR does not touch and passed on a rerun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] Show whether a team asset improves benchmark results, and whether a skill loaded where it should

3 participants