Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

1.7 KB
Raw Blame
contract = "log-call-convention"
digest = "sha256:e73094dfee8b747ad3576bee34f145b55ab7b1892c36acf389d12b25c884e026"
reviewed_by = "Claude (Opus 5.5)"
reviewed_at = "2026-10-10T11:28:34Z"
rationale = "real-catch: log_call_guard.py adds the wording rules lowercase-start, trailing-period and backtick at every level, identifier and length (MAX_MESSAGE_LENGTH 80) at INFO and above, and spliced-exception at every level, each with a remedy, reads a captured name through every binding of its function for the exception rule and the receiver, keeps the two sides of a concatenation past the fold bound apart, and puts the exception route in the signature with the handler binding written as except target. Checked log-calls.md against the code and the guard tests: the rule table, the vocabulary words that pass, the start and end that a value keeps open, the length counted on literal runs with its at-least detail, the values the exception rule reads (placeholders, the right operand of a percent, format arguments, any non-literal part), the exception method call, captured names in a callback, a rebound handler name, the signature format and the remedies in the failure output all hold. Probing find_offending_calls_in_source showed one overstatement: lowercase-start refuses a first character that is a lowercase letter, so a message opening with a quote or a digit passes, where the table said its first letter and the DEBUG paragraph said a message starts with a capital. Both now say what the guard checks."

[trigger_files]
"pipelex/cli/dev_cli/commands/check_log_calls_cmd.py" = "blob:47b6d88ea61446d2788f7fc7ee826cb1ffc7f582"
"pipelex/cli/dev_cli/commands/log_call_guard.py" = "blob:6459fc9d2badf56749fb614f9fa07ecdaabef26f"