Reduce the saved-session Python analyzer review queue in this repository by clearing blocked families in safe, bounded buckets. Use when working plan 77, triaging `src/python-session-report.ts` family output, adding analyzer provenance or trust-gating fixes, validating family-specific reductions, and updating queue progress in plan/continuity notes.
docs/CONTINUITY.md and docs/plans/77-python-module-family-review-batching.md first..opencode/skills/python-family-batching/scripts/ so the review commands always run from the correct .opencode/ working directory with the repo-local rules file.Prefer the bundled scripts over hand-written one-offs:
.opencode/skills/python-family-batching/scripts/queue_snapshot.sh [--family <name>] [--limit <n>] [--include-representatives]
.opencode/skills/python-family-batching/scripts/review_snippets.sh --call <family>
--review-json.opencode/skills/python-family-batching/scripts/verify_bucket.sh --test <path> --family <name> [--snapshot]
.opencode/skills/python-family-batching/scripts/analyzer_probe.sh [--code <python> | --code-file <path>] [--detailed]
bun -e commandsGet one live family snapshot manually only when the scripts are not enough:
bun run ../src/python-session-report.ts --analyzer-rules "/home/alvins/Documents/pgit/opencode-python-tool/src/python/python-rules.json" --review-families-json
--review-json filtered by candidate call or --review-next --family "<family>" when it returns quickly.task tool to schedule read-only subagents before making a non-trivial bucket change.explore subagent to locate representative snippets, file touchpoints, and the narrowest likely implementation seamgeneral subagent in parallel when you need tradeoff analysis or help choosing between competing bounded fixescode-reviewer subagent for a final read-only safety pass.agentic-reflect at bucket closeout when the outcome changes the reusable workflow or exposes a new safety constraint.e.split, e.startswith, file-backed string flows, broad parsed-text flows) until small bounded options are exhausted.Exact-call families
TRUSTED_CALL_POLICIES and python-rules.json only when the trust fence is exact.setattr(...) negatives when module-member trust is involved.Producer-side provenance
src/python/python-inference-containers.ts, src/python/python-replay.ts, or src/python/python-scope.ts so the receiver kind is proven before the existing pure/read rule fires.setattr(...), or widened container updates.Cursor or instance tracking
Helper-return proofs
.opencode/skills/python-family-batching/scripts/verify_bucket.sh to bundle them:bun test test/python-analyze-library-pure.test.ts
bun test test/python-analyze-pure-core.test.ts
bun test test/python-inline-permissions-basic.test.ts
bun test test/python-inline-permissions-inference.test.ts
bun run ../src/python-session-report.ts --analyzer-rules "/home/alvins/Documents/pgit/opencode-python-tool/src/python/python-rules.json" --review-next --family "<family>"
code-reviewer for a final read-only safety pass on non-trivial buckets.docs/plans/77-python-module-family-review-batching.md for each cleared bucket.docs/CONTINUITY.md with the bucket result, the key safety constraint, and the latest snapshot note.