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
Keyword families: five definition questions for the owner (json, generators, closures, cleanup, telemetry) #8862
core-engineModifications to the central physics and parsing enginepriority: lowUI tweaks, documentation, and minor optimizationsquestionFurther information or community discussion requested
Questions that need an owner decision before anyone changes a list
Found by the keyword-family pilot (details in the epic). Each is a definition call, not a measurement bug; the pilot shows what the current rule does.
JSON (de)serialization has no family.serialization_parsing is pickle|marshal|ast.literal_eval only (unsafe deserialization), so json.loads / json.dumps (978 + 416 functions in GitGalaxy's own code) count nowhere. Is a benign "serialization" family wanted, or is the current family intentionally the risky subset? If both, name them apart.
Generator expressions are not "lazy evaluation".lazy_evaluation counts yield, Generator, Iterator (646 functions); 15,208 functions use a generator expression or comprehension. Should (x for x in xs) count?
Closures.struct_closures has recall 0.45 / precision 0.98: it probably misses lambdas. Count lambdas or leave them out on purpose?
Cleanup.def_cleanup recall 0.14 / precision 0.57 against with/finally: which forms are meant?
Telemetry precision.def_telemetry fires in 4,899 functions where ast finds logger calls in 1,389: which extra forms are meant (print? metrics?).
Answer each in a comment; the answers become the family definitions the validity test scores against.
The cross-language run (#8864) adds the other languages to the definition questions: #8868 lists the per-language differences that depend on what each family is meant to count (print to a writer, assert as a bail-out, time.Duration as time logic, is_documented doc styles). Please answer those here so the tool's one-sentence definitions can be set.
The contracts already answer most of these.gitgalaxy/standards/signal_contracts.py carries a written contract for 71 families (43 declared, 16 stated, 12 draft). Reading them against the five questions above:
Generator expressions. Answered: lazy_evaluation is "a yield statement, a generator or iterator type annotation, an async-generator form". Generator expressions are not listed, so leaving them out is right, and the first oracle was right to leave them out.
Closures. Answered: "the syntax that opens an anonymous callable -- a lambda, arrow function, block literal or inline callback". A nested named function is a declaration, not a closure. (My first Python oracle counted nested def; that was the oracle's error, now fixed. The measured gaps for Go, TypeScript and Rust closures remain.)
Cleanup. Answered in the contract's wording: "a site that explicitly destroys state or releases a held resource -- a deallocation or finalization call, a handle or connection close, removal of an entry ... or the opener of a guaranteed-teardown region". Python scores 0.14 recall against that (with blocks, try/finally, del, rmtree missed); a gap, not a question.
Telemetry. NOT answered: "structured logging and observability frameworks" is a draft contract with no construct named. Python precision is 0.28 (fires in 4,899 functions, a parser sees a logger call in 1,389).
What is genuinely open: the 12 draft contracts (debug_prints, telemetry, concurrency, sync_locks, doc, and others), plus the readings in #8868 (is assert an abort? does a Go write to a writer count as a debug print? what counts as doc in a language without /** */?). This issue can be re-scoped to: ratify the oracle's reading of each contract, and fill in the draft ones. docs/*_rule_contract.md holds the long form for 18 of them.
Also corrected from my earlier posts: oracles were aligned to the contracts on 2026-11-21 (bitwise_ops includes & and |; time_date_logic includes durations; doc is structured documentation). #8861, #8866 and #8868 carry the corrected numbers.
Ratified (owner, 2026-11-24). The written contracts in gitgalaxy/standards/signal_contracts.py are the definitions; the validity test scores against them.
doc means the structured-doc form each language's tools read (docstring, ///, /** */, Go declaration comments). A language with none is N/A, not "any comment" (TS/JS currently count any comment).
Everything else in #8868 is contract-answerable and becomes a fix, each timed per the epic rules. Closing; fixes are tracked under #8863.
core-engineModifications to the central physics and parsing enginepriority: lowUI tweaks, documentation, and minor optimizationsquestionFurther information or community discussion requested
Activity
squid-protocol commentedon Nov 21, 2026
Part of #8863 (keyword-family validity epic).
squid-protocol commentedon Nov 21, 2026
The cross-language run (#8864) adds the other languages to the definition questions: #8868 lists the per-language differences that depend on what each family is meant to count (print to a writer,
assertas a bail-out,time.Durationas time logic,is_documenteddoc styles). Please answer those here so the tool's one-sentence definitions can be set.squid-protocol commentedon Nov 21, 2026
The contracts already answer most of these.
gitgalaxy/standards/signal_contracts.pycarries a written contract for 71 families (43 declared, 16 stated, 12 draft). Reading them against the five questions above:serialization_parsingis "a call that encodes to or decodes from a structured interchange format -- JSON, XML, YAML, CSV, protocol buffers, a marshal or unmarshal". So JSON counts, and the Python rule's pickle-only matching is a bug: filed as serialization_parsing: the contract says JSON/YAML/XML/CSV/protobuf, the Python rule matches only pickle/marshal/literal_eval (0 of 72,044 functions fire, 699 call a codec) #8882.lazy_evaluationis "a yield statement, a generator or iterator type annotation, an async-generator form". Generator expressions are not listed, so leaving them out is right, and the first oracle was right to leave them out.def; that was the oracle's error, now fixed. The measured gaps for Go, TypeScript and Rust closures remain.)del,rmtreemissed); a gap, not a question.draftcontract with no construct named. Python precision is 0.28 (fires in 4,899 functions, a parser sees a logger call in 1,389).What is genuinely open: the 12
draftcontracts (debug_prints,telemetry,concurrency,sync_locks,doc, and others), plus the readings in #8868 (isassertan abort? does a Go write to a writer count as a debug print? what counts asdocin a language without/** */?). This issue can be re-scoped to: ratify the oracle's reading of each contract, and fill in the draft ones.docs/*_rule_contract.mdholds the long form for 18 of them.Also corrected from my earlier posts: oracles were aligned to the contracts on 2026-11-21 (
bitwise_opsincludes&and|;time_date_logicincludes durations;docis structured documentation). #8861, #8866 and #8868 carry the corrected numbers.test: re-bless the DOOM-rosetta golden for the branch / short_circuit…
tests/docs: the signal count is 98 with short_circuit (Part of #8862)
feat(families): split boolean operators out of branch into short_circ…
Family oracle: Python branch excludes boolean operators, short_circui…
Family oracle: tree-sitter oracles count boolean operators under shor…
spec_exposure: a tag is a whole-word [spec / [audit, not bracketed co…
squid-protocol commentedon Nov 25, 2026
Ratified (owner, 2026-11-24). The written contracts in
gitgalaxy/standards/signal_contracts.pyare the definitions; the validity test scores against them.serialization_parsing(rule bug, serialization_parsing: the contract says JSON/YAML/XML/CSV/protobuf, the Python rule matches only pickle/marshal/literal_eval (0 of 72,044 functions fire, 699 call a codec) #8882).lazy_evaluation.defdoes not. Go and Rust gaps are measurement bugs.with,try/finally,del, close andrmtreeare meant. Python recall 0.14 is a rule bug.Three decisions from the open list:
assertis not an abort forpanics_and_aborts(C precision 0.48 is the engine counting it). If wanted, it becomes its own family.branchprecedent to other families, one family at a time, each timed on keyword-rosetta and language-crucible. Start withbitwise_ops,io,time.docmeans the structured-doc form each language's tools read (docstring,///,/** */, Go declaration comments). A language with none is N/A, not "any comment" (TS/JS currently count any comment).Everything else in #8868 is contract-answerable and becomes a fix, each timed per the epic rules. Closing; fixes are tracked under #8863.
5 remaining items
Lower the Cloud LLM API Calls thin-coverage floor 5 -> 4: the tokeniz…
Family oracle: C and C++ debug_prints count stdio writers only on std…
Readings ledger: ratify the provisional tree-sitter rows, record the …
llm_api: a local tokenizer package is not a hosted-SDK site; record s…
Contracts: record the owner's assert and doc rulings in the resource-…
Readings ledger: record the 2026-11-24 owner rulings (assert, doc, de…
Regenerate docs_read_by_tests.txt for the new readings test (Part of #…
spec_exposure: a tag is a whole-word [spec / [audit in matlab and obj…
Readings ledger: llm_api absences answered; only the two owner-only q…
dockerfile dead_code: a commented instruction is uppercase with an op…
Family oracle: a Python comprehension's for is a loop under branch; l…
reflection_metaprogramming: python and embedded_python drop declarati…
reflection_metaprogramming: csharp, java, rust stop counting a type n…
Family validity: worker skill, re-measure skill, checklist and red-ce…
reflection_metaprogramming: dart reflect is a call, dockerfile counts…