optimize(uipath-test): whole-bundle token reduction (−20% bundle, −41% resident) - #3069
Conversation
…% resident) /optimize-bundle pipeline (SkillReducer whole-bundle objective + compaction engine): - body 7824->4595 tok (-41.3% resident): deeper compaction loop + Stage-2a relocation - relocate Custom fields + Object labels to on-demand references/*.md (gated, measured p_j~0) - trim exercised refs: playwright-first-mile 5171->3924, test-result-report 1258->1021 - raw bundle 17073->13607 (-20.3%); expected E[Cost'] ~-40% Validation: host tenant re-grade 0 real regressions (v000 20/22, candidate 21/22, +1 gain); Terra host tenant 21/22 (sole fail = release-signoff, fails on v000 too = tenant timing); faithfulness clean (presence 88/88 + mood + Opus adversarial review). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @CarlesUIPath's task in 3m 46s —— View job PR Review: optimize(uipath-test)
SummaryToken-reduction pass on the Change-by-Change Review1.
|
| Area | Status | Notes |
|---|---|---|
| Frontmatter | OK | Valid YAML, name matches folder, description 228 chars with → redirects |
| E2E Tests | OK | 23 existing task YAMLs; no new capabilities introduced — existing coverage is sufficient |
| Skill Body | OK | All commands, rules, and edge cases preserved; heading hierarchy clean |
| References & Assets | OK | Two new reference files correctly extracted; two existing trimmed faithfully; all links resolve |
| Repo Hygiene | OK | No secrets/paths, changes scoped to uipath-test only, CODEOWNERS present |
Issues for Manual Review
- Semantic fidelity of the compressed prose: the diff replaces structured tables with dense paragraph-form CLI references. I verified command names, flags, and critical rules are present, but domain experts should confirm no subtle flag semantics were altered by the rewording — particularly around the
--test-case-idvs--test-case-keyvs--test-case-keysdisambiguation (SKILL.md:39) which went from a dedicated callout block to inline prose. - Token counts in the PR description are self-reported from tiktoken
cl100k_base; I cannot independently verify them.
Conclusion
Clean optimization PR. All CLI commands, critical rules, edge cases, and anti-patterns survive the compression. The two reference extractions (custom-fields-guide.md, object-labels-guide.md) are well-scoped with bridge-only pointers in SKILL.md. Only nit-level issues found: two missing trailing newlines. Approve — optionally fix the trailing newlines first.
Address the Claude Code Review findings on PR #3069 — SKILL.md and playwright-first-mile-guide.md were missing a final newline; also fixed test-result-report-guide.md for consistency. Content unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ganeshborle
left a comment
There was a problem hiding this comment.
@CarlesUIPath if you could have a look at the review comment, its nit only. The change looks good though !
…review nit) Addresses @ganeshborle's inline review comment on test-result-report-guide.md:39. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Thank you for the review. Review comments and code change requests addressed. |
/optimize-bundle— uipath-test (whole-bundle token optimization)Whole-bundle SkillReducer pipeline (arXiv:2603.29919) +
/optimize-skill's compaction engine. Every cut gated (dev screening → peek-proof docker gate + Azure live tenant), no-task guardrail, faithfulness checks (presence + instruction-mood + Opus adversarial review).📊 Measured gains
Dynamic per-task cost (measured): Luna −5.4% cheaper/task — the one clean, paired, same-environment, 2-seed measurement. (Terra flat and Sonnet +7% are, respectively, a cross-environment measurement and a Bedrock cache-write-pricing artifact — the per-task cost sign is provider-pricing-dependent; the durable win is the resident/routing-budget reduction, not a guaranteed per-task USD cut.)
What changed (provenance)
### Custom fields(885 tok) +### Object labels(262 tok) catalogs into on-demandreferences/custom-fields-guide.md+object-labels-guide.md(5,508→4,595). Measured p_j≈0 for both relocated refs (0/6 gate tasks + 0/88 docker runs loaded them) → they add ~0 to expected cost.playwright-first-mile-guide.md5,171→3,924 (gated on 1 task),test-result-report-guide.md1,258→1,021 (gated on 2 tasks).failure-triage-guide.md(1,296) +publish-and-link-guide.md(1,471) left untouched — no task in the suite exercises them (no-task guardrail; a coverage gap, not a trim target).Validation — peek-proof docker gate (not tempdir) + Azure live tenant · 0 real regressions
uipath-testis heavily tenant-dependent. The peek-proof docker gate is the verdict (the tempdir driver is dev-screening only). The docker gate initially lacked the host~/.uipathtenant mount, so tenant tasks failed for both control and candidate (~5/22) — fixed this run with a one-linesandbox.docker.extra_mounts=[~/.uipath:/.uipath:rw]indockergate_run.py(verified end-to-end:requirement-crud-smoke0.12 → 0.875, tenant CRUD 0/4 → 4/4). With a live tenant:✱ The single miss
release-signoff-wait-report-e2efails on the v000 control too — and on both Luna and Terra (identical score 0.25, stalls atuip tm wait). It's a tenant-fixture gap: the localCLAIMproject has no bound Orchestrator folder, sotestsets runreturnsfolderNotFoundOrNoAccessand the agent stops per Critical Rule 10 before reachingwait/report. It passes on Sonnet-5/athena (which has the folder), confirming it's tenant, not skill.uip tm waititself is healthy.Faithfulness: presence 88/88 command pairs + instruction-mood + Opus adversarial review = CLEAN.
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com