Repository navigation
fix(tools): reflect polymorphic SLURM detail snapshots - #68
Conversation
|
|
||
| def _load_json(self, rel_path: str) -> dict[str, Any]: | ||
| @overload | ||
| def _load_json(self, rel_path: Literal["slurm/slurm_state.json"]) -> dict[str, Any]: ... |
| def _load_json(self, rel_path: Literal["slurm/slurm_state.json"]) -> dict[str, Any]: ... | ||
|
|
||
| @overload | ||
| def _load_json(self, rel_path: str) -> dict[str, Any] | list[dict[str, Any]]: ... |
# Conflicts: # CHANGELOG.md
|
Thanks, @QIU-Guanzong — merged as caa5843. The I verified: the focused SLURM suite is 34 passed, including your new parametrized tests pinning both snapshot shapes across the real corpus ( You're in Thanks for disclosing the Codex assistance in the PR description, and for the "raise it, do not act on it" discipline on whether the list-shaped snapshots should be normalized — that's the maintainer's call and you left it exactly where it belonged. If AOBench is useful to you, a ⭐ — or passing it to someone it would help — genuinely helps with visibility. Entirely optional, and thanks again for closing out #66. |
…s-defect caveat Adds @hari760's three-run claude-sonnet-4-6 result (#60) to the leaderboard, two days after it was promised on the issue. Published exactly as submitted — mean 0.622 over 3 runs, 67 dev tasks at v0.4.1 — rather than quietly recomputed, because how #63 is resolved moves previously published figures and that decision belongs in the open on the issue. Both reported hard fails are defects in this benchmark, not model behaviour: AIOPS_USR_001 and PERF_USR_001 ask about the requester's own job while the snapshot assigns job 910803 to bob and 902117 to carol, so a correct agent is RBAC hard-failed and the task zeroed. Reproduced against MockSlurmTool directly, both returning permission_denied with cross_user metadata. The row therefore carries a warning admonition and is labelled a floor, not the model's ceiling. Also records that the dev split was 67 tasks when this was run and is 68 now, under an unchanged version string — a re-derivation of this row from main today will not match, and the leaderboard should say so itself. Credit corrections in the same pass: - @QIU-Guanzong was the only merged-PR author in Unreleased not named in the entry for their own work (PR #68, the polymorphic job_details typing fix). - @hari760's census entries said "four defects"; #63 was the fifth and the most serious, and it was diagnosable only because the same two tasks failed in all three runs. AUTHORS.md, the contributor wall and the wall's summary line now say five, and the fifth has its own row. Gates: pytest 1675 passed / 4 skipped, ruff clean, check_facts OK (89 tasks, 68 dev / 21 test, 29 envs), check_text_encoding OK, validate benchmark passed, mkdocs build --strict exit 0.
|
A correction on credit, @QIU-Guanzong — no action needed from you. Your fix shipped in the changelog under "Fixed — SLURM snapshot return types", and that Fixed in Unrelated, but you may like knowing it: your fix showed up in another piece of work today. |
Summary
Closes #66.
_load_jsonnow returns a mapping-or-list type for job details, with a literal-path overload preserving the mapping type forslurm_state.json.The corpus check matches the issue: all 25 state snapshots are mappings; three of seven detail snapshots are lists. An overload keeps the existing single read path and changes no runtime branches. It also avoids duplicating the file loader or adding a shape check that could change behavior for malformed input.
Type of change
Checklist
make checkpasses locally: 1,590 passed, 24 skipped; lint, type ratchet and repository gates passed.aobench validate benchmarkpasses: 88 tasks, 29 environments; corpus unchanged.CHANGELOG.mdupdated under Unreleased.Notes for reviewers
The focused SLURM suite passes all 34 tests. These tests pin existing behavior; the defect itself is in the annotation.
I have left the list-shaped snapshots as published. Whether to normalize that format is a separate corpus/fidelity decision for maintainers.
AI assistance: implemented and tested with Codex.