Repository navigation
[API Coherence] Report for 2026-10-07 - Goal API, ParamDescrs, Fixedpoint Rules #11089
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11106. |
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
APIs analyzed this run: Goal API advanced operations (depth/inconsistent/convert_model/is_decided_sat/is_decided_unsat), ParamDescrs deep-dive for C++/TypeScript, Fixedpoint advanced introspection (get_rules/get_assertions/get_rules_along_trace), plus targeted spot-check re-verification of 4 previously cached issues.
Total functions/methods checked: ~15 across 8 languages
Previously cached issues re-verified: 4 (all still open, 0 resolved)
New inconsistencies found: 1 (functional bug, high priority)
Resolution Updates
No cached issues were resolved this run. Spot-checked and reconfirmed still open:
MkLinearOrder/MkPiecewiseLinearOrder/MkTreeOrder(onlyMkPartialOrder/MkTransitiveClosurepresent)Z3_set_error_handler/Z3_get_error_code(no error-handler override; still relies on default crash-on-error behavior)Z3_global_param_getwrapperNew Finding (High Priority)
Go
Fixedpoint.GetRules()is a mislabeled alias forString(), not a real wrapper ofZ3_fixedpoint_get_rulesWhat: Every other language's "get rules" method returns a vector/list of the actual Horn-clause rule expressions added to the fixedpoint engine (via
Z3_fixedpoint_get_rules, which returns aZ3_ast_vector). Go's implementation insrc/api/go/fixedpoint.go:186-189is:This never calls
C.Z3_fixedpoint_get_rules— it just callsZ3_fixedpoint_to_string, returning a pretty-printed dump of the whole fixedpoint state (rules + assertions + config) as a single string, not a structured, iterable collection of rule ASTs. This is misleading given the doc comment and the method name, and loses the ability to inspect/iterate individual rules programmatically. Go's ownGetAssertions()right next to it correctly wrapsZ3_fixedpoint_get_assertionsand returns a proper*ASTVector.Available correctly in: C++ (
fixedpoint::rules()→expr_vector, z3++.h:3807), Python (Fixedpoint.get_rules()→AstVector, z3.py:8357-8359), Java (Fixedpoint.getRules()→BoolExpr[], Fixedpoint.java:264-266), .NET (Fixedpoint.Rules→BoolExpr[], Fixedpoint.cs:253), OCaml (get_rules : fixedpoint -> Expr.expr list, z3.mli:3672), TypeScript (fixedpoint.getRules()→AstVector, high-level.ts), Rust (no dedicated wrapper, butz3-sysexposes the raw FFI and no Rust high-levelFixedpointmethod claims to return rules as a string — N/A, not misleading).Missing/incorrect in: Go (
src/api/go/fixedpoint.go)Suggested fix: Change
GetRules()to callC.Z3_fixedpoint_get_rules(f.ctx.ptr, f.ptr)and wrap the result innewASTVector(f.ctx, ptr), returning*ASTVectorto matchGetAssertions()'s pattern. If a string-based convenience is still desired, add it under a different name (e.g.RulesString()) rather than overloadingGetRules().File:
src/api/go/fixedpoint.go:186-189Priority: High (functional/correctness gap, not just a missing feature — current behavior silently returns the wrong data type/content for the documented purpose)
Verified: 2026-10-07
Other Areas Audited — Fully Coherent (No Gaps)
Z3_goal_depth,Z3_goal_inconsistent,Z3_goal_convert_model,Z3_goal_is_decided_sat,Z3_goal_is_decided_unsat): present and correct in C++, Python, Java, .NET, OCaml, Go, TypeScript, and Rust (z3/src/goal.rsconfirmed via GitHub MCP).size()/name()/kind()/documentation()/to_string()equivalents (C++param_descrsclass z3++.h:586-609; TypeScriptParamDescrsImplhigh-level.ts:3563+). No gap — removes ambiguity from the "next_apis" backlog item.get_assertions/get_rules_along_trace: coherent across all 8 languages; only the Goget_rulesreturn-type/semantics bug above is new.Progress
Open High/Medium Priority Issues (Carried Forward, Still Unresolved)
Full backlog of 39 tracked issues retained in cache memory (not repeated here in full to avoid redundancy with prior reports); highlights include:
Z3_get_decl_kind/Z3_get_sort_kindwrappers (root cause blocking boolean predicates); Go missing FuncDecl parameter introspection API; Go/C++ missing manual Pattern construction; TypeScript/JS missing TupleSort and Probe creation/comparison API; Go missing error-handler override / C++ missingZ3_solver_interrupt; Rust missing Simplifier & FiniteSet API; .NET/Java/OCaml/Go missing standalone Model construction API; NEW: GoFixedpoint.GetRules()returns wrong type/content instead of wrappingZ3_fixedpoint_get_rulesisItepredicate; Rust missingis_true/is_and/etc. predicate family; Rust FuncDecl missingparams(); C++/Python missing TacticSkip()/Fail()/FailIfNotDecided(); Go missingdatatype_update_field; C++/Go/TS missing as-array introspection; Go missing Optimizeset_initial_value; OCaml Optimize missingset_initial_valueSee cache memory (
api_coherence.json) for the complete, individually dated list of all 39 open issues.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