You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python: arch_time misses perf_counter and other clocks (recall 0.54) #8859
bugUnintended behavior or logic failure in the engineclaim:melekcore-engineModifications to the central physics and parsing enginepriority: mediumpythonPython-specific runtime or environment optimizations
The Python time_date_logic rule (arch_time) is datetime.datetime|timedelta|time.sleep|time.time|calendar. Timing with the clocks used for measurement is invisible: time.perf_counter is called in 1,183 functions of the engine's own code and none score. Recall 0.54, precision 1.00 against ast. Also missed: datetime.now / strftime (when datetime is imported by name), time.monotonic, time.process_time, time.perf_counter_ns, time.time_ns.
Reproduce
importtimedeftimer():
returntime.perf_counter()
Scans with arch_time == 0.
Expected
arch_time > 0 for functions that read a clock or format/parse a time. Add the clock names above; decide whether datetime.now() after from datetime import datetime should match (it needs the bare now( form, which is noisy).
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-owed and rebless as usual.
Add the case below as a test (one function per case, so a regression names itself).
Claimed by promoter-bot host melek, lease renewed 2026-11-21T21:53Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.
bugUnintended behavior or logic failure in the engineclaim:melekcore-engineModifications to the central physics and parsing enginepriority: mediumpythonPython-specific runtime or environment optimizations
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-21T21:53Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:meleklabel.Re-bless golden snapshots after merging main (Part of #8859)
Build clock snippets from parts so the wall-clock timing scan ignores…
Python time_date_logic: count perf_counter, monotonic, process_time, …