Repository navigation
[API Coherence] Report for 2026-10-06 - Tactic Combinators, Re-verification #11070
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11089. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
This run focused on verification of existing cached findings plus a deep-dive into Tactic combinator completeness (per the "next areas" note from the previous run) and Context error-handling robustness.
Skip/Fail/FailIfNotDecidedacross 8 languages,.NETorder-relation family, Go error handler, GoDeclKind/SortKind, Go FuncDecl parameter introspection, TypeScriptTupleSort/EnumSort.git cloneofprove-rs/z3.rsis still blocked with a 403, 29th consecutive run).Skip/Fail/FailIfNotDecidedmissing in C++ and Python).Resolution Updates
No previously cached issues were resolved this run. All spot-checked items (cached issues #1, #22, #28, #23, #41, #43, #26) remain open in the current codebase.
New Finding
Tactic
Skip/Fail/FailIfNotDecidedwrappers missing in C++ and PythonWhat: The C API exposes
Z3_tactic_skip,Z3_tactic_fail, andZ3_tactic_fail_if_not_decidedas basic tactic combinators (a trivial no-op tactic, an always-failing tactic, and a tactic that fails unless the goal is trivially decided). Six of eight bindings expose all three as easy-to-use, idiomatic wrappers:Context.skip(),Context.fail(),Context.failIfNotDecided()(Context.java:3400-3436)Context.Skip(),Context.Fail(),Context.FailIfNotDecided()(Context.cs:3960-3998)Tactic.skip,Tactic.fail,Tactic.fail_if_not_decided(z3.mli:3289-3299)tactic.goSkip(),Fail(),FailIf()inhigh-level.ts:1669-1679Tactic::skip(),Tactic::fail()inz3/src/tactic.rs(confirmed via GitHub code search)Missing in: C++ (
z3++.h) only exposesfail_if,when, andcondas free functions (around line 3819) but has noskip()/fail()/fail_if_not_decided()wrapper at all — not even as atacticconstructor overload. Python (z3.py) only exposesFailIf(line 9531) — noSkip/Fail/FailIfNotDecidedconvenience functions.Suggested fix:
inline tactic skip(context& c),inline tactic fail(context& c), andinline tactic fail_if_not_decided(context& c)free functions near the existingfail_if/when/condwrappers (z3++.h~line 3819), each simply callingZ3_tactic_skip/Z3_tactic_fail/Z3_tactic_fail_if_not_decidedand wrapping the result in atacticobject (mirroring howrepeat/try_forare implemented).Skip(ctx=None),Fail(ctx=None), andFailIfNotDecided(ctx=None)top-level functions nearFailIf(z3.py~line 9531), each returningTactic(Z3_tactic_skip(ctx.ref()), ctx)etc., following the exact pattern already used byFailIf.Z3_tactic_skip/Z3_tactic_faildirectly, breaking the idiomatic wrapper experience that exists in 6 of 8 bindings).Re-verified Issues (confirmed still open)
.NETmissingMkLinearOrder/MkPiecewiseLinearOrder/MkTreeOrder— onlyMkPartialOrder/MkTransitiveClosurepresent (Context.cs:5230-5240).Z3_set_error_handler) when creating a context (z3.go:90-106) — unlike C++ (z3++.h:204, sets null handler to avoidexit(1)), Python (z3.py:218), and Rust (context.rs, setsNone). The C API'sdefault_error_handlercallsexit(1)on any Z3 internal error, so Go programs using the default context will unexpectedly terminate the whole process on recoverable errors.Z3_get_decl_kind/Z3_get_sort_kindwrappers entirely (confirmed via full-repo grep — zero occurrences insrc/api/go/*.go).FuncDeclparameter introspection family (Z3_get_decl_num_parametersetc.) — zero occurrences in Go source.TupleSortandEnumSortsupport inhigh-level.ts.Progress
Z3_goal_depth,Z3_goal_convert_model, inconsistency detection), Params/ParamDescrs deep-dive for remaining languages, continued Rust clone retryNotes
git clone https://github.com/prove-rs/z3.rscontinues to fail withCONNECT tunnel failed, response 403(29th consecutive run). GitHub MCPsearch_code/get_file_contentsremains an effective workaround for verifying Rust-side findings.Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
github.comTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.
All reactions