Move the audit-sessions epoch, positive-int and store-dir helpers into census.py
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
Bắt đầu với plugins/session-flow/skills/audit-sessions/scripts/census.py, sau đó kiểm tra các định nghĩa helper được nêu và những vị trí gọi chúng trong collect.py, friction_scan.py, sweep.py và audit-friction/scripts/friction.py. Giữ nguyên tên kiểu argparse dùng chung là _positive để nội dung lỗi CLI không thay đổi, đồng thời giữ nguyên census.store_dir. Công việc hoàn tất khi mỗi helper chỉ xuất hiện một lần trong census.py, các script sử dụng chúng, những import không dùng đến được xóa và đoạn patch được yêu cầu được thêm vào.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Shell
- Star
- 22
- Fork
- 2
- Merge trung bình
- 1 giờ 18 phút
- Pull request đã merge (30 ngày)
- 975
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của melodic-software/claude-code-plugins
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
melodic-software/claude-code-plugins#15499 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
melodic-software/claude-code-plugins#15498 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melodic-software/claude-code-plugins#15454 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
melodic-software/claude-code-plugins#15063 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-human
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melodic-software/claude-code-plugins#14737 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của melodic-software/claude-code-plugins
Issue tương tự
-
S3: friction & debt verified ws:tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
MedakaLang/medaka#5275 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 70/100
CachyOS/copr-linux-cachyos#124 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
community-scripts/ProxmoxVE#18624 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
In-box secret files written before their chmod: lc-creds, stacks tee, and the workspace tokenĐang mởmodel:sonnet runtime:claude security size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
FootprintAI/Containarium#3671 ·
Maintainer thường phản hồi trong vòng 1 ngày