Repository navigation
Fix bundled resource paths in skills and reviewers - #456
asmirnov-ias wants to merge 2 commits into
Conversation
Scope checkThank you for your contribution! This PR changes 33 counted lines and 4 core files in skills/ or agents/. The minor-patch limit is 100 counted lines and fewer than 3 core files. Docs, tests, and lockfiles are excluded from these counts. Ask a maintainer whether this can proceed as a minor patch or needs the design process. This notice does not block merging or grant approval. |
egm-triage-bot
left a comment
There was a problem hiding this comment.
Automated first-pass review found zero blocking or major issues. Routing to @google/egm-maintainers for maintainer review.
|
@asmirnov-ias, Could you show one failing omp resource lookup and the smallest change that fixes it? Please coordinate the shared path rule with #369 so each skill doesn't get a different workaround. |
|
One failing lookup An agent running Traversal is rejected as well: Smallest fix: one sentence in
Coordination with #369: agreed that #369 lands first — it is the major refactoring, and both changes need the same single rule. I will re-implement this fix on top of #369 rather than merging both orders. Keeping this PR open as reference until then. |
Rebases onto origin/main (8b1553f), preserving #359 worker/scout caps and #418 untouched. Scopes #369 strictly to the two near-limit skills (egm-bootstrap and egm-review), moves only rules that are already shared across multiple skills into resources/execution_instructions.md (keeping egm-draft-only rules intact under a scoped section), and adds the cross-host plugin-root path resolution rule (including omp skill:// confinement from #456).
|
@asmirnov-ias Thanks for the clear |
) Refs #371. Narrows to the two near-limit skills (egm-bootstrap 23,973 B -> 12,973 B, egm-review 23,887 B -> 13,294 B), moves only already-shared rules into scoped sections of resources/execution_instructions.md while preserving all five egm-draft-only rules, adds cross-host plugin-root path resolution (including omp skill:// confinement aligned with #456), preserves #359 worker/scout caps and interactive egm-review-loop delegation in Stages 7 and 9.
|
@asmirnov-ias PR #369 is now squash-merged into |
Reimplemented on top of google#369 (ef27af6), which added the shared Plugin-Root Resource Paths rule to resources/execution_instructions.md and inline omp hints to egm-bootstrap and egm-review. egm-draft constraint 1 and an egm-review-loop Plugin Root bullet now carry the matching hint, cloned from the merged pattern. agents/zoom_out.md and agents/synthesizer.md personas use the caller's absolute path with a labeled omp fallback (read skill://egm-review and go two directories up from the header path) and a failure guard. docs/harnesses.md documents the skill:// confinement, the physical-root resolution, and the shared rule's location.
28d395c to
01fd7b1
Compare
|
Reimplemented on top of the merged #369 per the plan above: matching hints on |
Local review round: hoist the synthesizer path guidance above the Mode split so BRAINSTORM swarm dispatch is covered, not just REVIEW; drop the now-redundant REVIEW-only copy. docs/harnesses.md: state that skill:// cannot read plugin-root assets (resources/, agents/, docs/) and they are read by absolute path from the physical root, matching the shared rule.
|
Ran a fresh-context review round on the local diff (egm-codebase-details persona). Verdict: the hints match the #369 convention (path math, wording, pass-absolute-paths rule, no test or limit regressions). Two findings applied in
|
egm-triage-bot
left a comment
There was a problem hiding this comment.
Automated first-pass review found zero blocking or major issues. Routing to @google/egm-maintainers for maintainer review.
|
@asmirnov-ias Thanks for rebasing cleanly onto #369 and following the plan I outlined yesterday. Apologies for the change of direction here. Looking closely at the final diff, I realized we should not specialize the canonical Instead, could we solve the On our side, I'll also follow up to strip the |
|
Opened #565 to remove the inline One detail we noticed while checking |
Summary of Key Changes
Under omp, every read through
skill://<name>/is confined to that skill's own folder, and..traversal is rejected. EGM's bundled files — the shared execution instructions, the review standards inresources/document_standards/, the reviewer personas inagents/— all sit at the plugin root, two directories above any skill folder. An omp agent that resolves those references relative to the skill finds nothing, and misreports the files as absent from the plugin;egm-draftran without its mandatory execution constraints and reviewer personas could not read their standards. Closes #455.This PR gives every remaining entry point an explicit path-resolution hint, all pointing at the single shared rule (the Plugin-Root Resource Paths section of
resources/execution_instructions.md): resolve the physical plugin root — under omp by runningrealpath skill://<skill-name>or taking the physical path from the header ofread skill://<skill-name>— then read bundled files by absolute path and pass spawned reviewers the absolute paths of their persona file and standard.skills/egm-draft/SKILL.md: constraint 1 links the execution instructions and lists the per-harness ways to reach them (relative link, Claude Code${CLAUDE_PLUGIN_ROOT}, pathless<SKILL>, omprealpath/ read-header fallback).skills/egm-review-loop/SKILL.md: a Plugin Root bullet in the path-resolution section resolvesagents/{name}.mdandresources/document_standards/{name}.mdfrom the plugin root and requires absolute paths for spawned reviewers.agents/zoom_out.md,agents/synthesizer.md: personas use the absolute paths from the caller, fall back to the omp read-header method when none were given, and report the miss instead of auditing or dispatching reviewers without the standard. The synthesizer guidance applies to both of its dispatch modes (BRAINSTORM swarm and REVIEW swarm).docs/harnesses.md: the omp section documents theskill://confinement and the physical-root resolution.Contribution Type
Track: Bug Fix / Minor Patch
Note for triage: 34 changed lines across 4 core files (2 skills, 2 personas) plus one docs file — above the fewer-than-3-core-files bar because the defect spans exactly these entry points; every hint points at the one shared rule rather than adding per-skill variants.
Labels: none of
docs,site,ci,depsapplies.Verification
Harness support change — host omp 18.20.3 on macOS arm64; EGM installed from the marketplace (
omp plugin install egm@egm), full plugin tree present includingresources/.egm-brainstorm: not run.egm-draft: failure reproduced from a user report on 18.20.3 (agent announcedresources/execution_instructions.md"doesn't ship in the plugin" and drafted without the execution constraints). Post-fix end-to-end run not run — the installed plugin predates the change; the resolution mechanism is verified below.egm-review: reviewer personas registered as native subagents; spawnedegm-zoom-outandegm-stylesubagents resolvedskill://egm-reviewlive, took the physical path from the read-result header, went two directories up, and readresources/document_standards/zoom-out-standard.mdby absolute path.read skill://egm-review/../resources/README.mdfails as expected (traversal rejected);realpath skill://egm-draft(a builtin in omp's agent shell) prints<plugin>/skills/egm-draftand<skill-folder>/../../resources/execution_instructions.mdresolves.uv run --group test pytest— 398 passed, 2 skipped (offline env-gated probes), including the skill body-size limits (egm-draft 17,746 B, egm-review-loop 10,426 B) and packaging checks.Human Accountability Affirmation