Repository navigation
Closed
Copy link
Description
Agent Brief
Type: Task
Summary: Move the audit-sessions epoch and positive-int helpers into census.py and drop the duplicate store_dir (part of restructuring pass #14802).
Current behavior:
_epochis defined three times:plugins/session-flow/skills/audit-sessions/scripts/collect.py:183-190,friction_scan.py:85-92andsweep.py:595-602.- The argparse type
_positiveis defined three times:collect.py:1010-1014,sweep.py:699-703andplugins/session-flow/skills/audit-friction/scripts/friction.py:614-618. store_diris defined incensus.py:69-70and again incollect.py:167-168.
All four scripts already import census.
Desired behavior:
census.py holds one epoch helper and one positive-int argparse type, and the four scripts call them in place of their copies. collect.py calls census.store_dir and its own store_dir is deleted. Imports left unused are dropped.
Files:
plugins/session-flow/skills/audit-sessions/scripts/census.pyplugins/session-flow/skills/audit-sessions/scripts/collect.pyplugins/session-flow/skills/audit-sessions/scripts/friction_scan.pyplugins/session-flow/skills/audit-sessions/scripts/sweep.pyplugins/session-flow/skills/audit-friction/scripts/friction.py- a new
patchfragment in.changes/session-flow/:### Changed, "Internal restructuring, no behavior change."
Key interfaces:
- argparse names the type function in its error for a non-integer value (
invalid _positive value: 'abc'), so the shared type's__name__stays_positiveand every CLI's error text stays byte-identical. census.store_diris unchanged.
Acceptance criteria:
- The epoch helper, the positive-int type and
store_direach exist once, incensus.py, and the four scripts use them. - Behavior is unchanged: the same outputs, exit codes and printed results for the same inputs, including argparse errors.
- The diff edits only the listed files and the lines of a test that assert on them when the change breaks that assertion.
- The pull request stays within 400 changed lines and 15 hand-edited files.
-
scripts/run-ruff.sh checkpasses on the changed files. - The pytest suites in
audit-sessions/scripts/tests/andaudit-friction/scripts/, andaudit-friction.test.sh, pass. - ci-status is green.
Out of scope:
- Other session-flow helpers, other duplication, eval cases, fixtures, and skill and agent text.
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Work status
needs-triage
Priority
low
Activity
melodic-automation-lanes commentedon Nov 12, 2026
{"v":1,"actor_id":337595936,"title_sha256":"81f5c4d565e0dfe5409c8a706d75df5ea6cfafcc2b7405fce367ddbc06d098ef","body_sha256":"267812c1c50517c399e0ae756e29c2a63ccd983260d328c5d346673fa0c1b857"}
github-actions commentedon Nov 12, 2026
melodic-automation-lanes commentedon Nov 12, 2026
The work-resolve-issue run that
agent-readystarted failed or was cancelled before it reported, or it stopped or the token broker refused it because its workflow files differ from main's. work-unblock removed and addedagent-readyback to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.github-actions commentedon Nov 12, 2026
github-actions commentedon Nov 12, 2026
already-leased: another session holds a live lease on #15539, so run https://github.com/melodic-software/claude-code-plugins/actions/runs/43158391212 ran no model.
melodic-automation-lanes commentedon Nov 12, 2026
The work-resolve-issue run that
agent-readystarted ended over 3 hours ago with no report and no pull request. work-unblock has re-fired it 2 time(s) on lane workflow files 429cd22fd603025d6f20a201142b2b2a87bfd019-34a45f0342aceeb68ac397a87fb982a9262f7484 and keeps re-firing it, waiting longer each time, up to 24 hours, until a run reports. This is a fault in the lanes, not in the issue; this comment is updated on each re-fire.github-actions commentedon Nov 12, 2026
github-actions commentedon Nov 12, 2026