Repository navigation
Description
What is wrong
arch_io ("File & Network I/O") has recall 0.25 and precision 0.43 against ast over 72,044 functions. Two opposite problems:
- Misses Path-object I/O. The rule matches the word
pathlib, soPath(p).read_text()scores 0 unless the wordpathlibis in the function. Missed in the engine's own code:read_text1,746 functions,rglob713,glob691,write_text135,read154. - Over-counts non-I/O.
os.path.join(a, b)andsys.exit(2)both score 1. The rosetta[python]: cross-language consistency — 5 red / 3 amber metrics, 5 ledgered shapes #2593 note says plain process state (os.environ,sys.argv,sys.path) was excluded, but otheros./sys.members (path string work, exiting the process) still count.
Reproduce
import os, sys
from pathlib import Path
def pather(p):
return Path(p).read_text() # arch_io == 0, should be > 0
def ospath(a, b):
return os.path.join(a, b) # arch_io == 1, should be 0
def exiter():
sys.exit(2) # arch_io == 1, should be 0Expected
I/O is a boundary crossing: open/read/write of files and sockets, network clients, Path read/write/glob/iter. Path string manipulation and process exit are not. Tighten the os. / sys. alternatives to the I/O members (os.walk|listdir|scandir|remove|rename|makedirs|open|read|write, sys.stdin|stdout|stderr) and add the Path method forms.
How this was found
A pilot that compares each function_data signal with what Python's own ast says the function does (72,044 functions of GitGalaxy's own code; see the pilot note, with corrections and one-function-per-case reproductions in temporal-crucible PR #188). This is part of the keyword-family validity epic (linked below once filed).
Rules for the fix
- Any change to a keyword list adds or removes regex work, so time it: CPU seconds on keyword-rosetta and language-crucible before and after, and say the number in the PR.
- If keyword-rosetta counts move, label the PR
rosetta:rebless-owedand rebless as usual. - Add the case below as a test (one function per case, so a regression names itself).
Activity
squid-protocol commentedon Nov 21, 2026
Part of #8863 (keyword-family validity epic).
squid-protocol commentedon Nov 21, 2026
Claimed by promoter-bot host
melek, lease renewed 2026-11-22T18:12Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:meleklabel.squid-protocol commentedon Nov 21, 2026
Churn run
8860-20261121T1441Z(host melek) ended without a PR. plan-held: real overlap with 8861; requeued behind itPython: io counts Path I/O and os/sys I/O members only (Closes squid-…