Repository navigation
Sync & reconcile cross-repo state (2026-11-27) - #20
Conversation
…ZASCA 24) and balance parens
…air; add parity and fraud?/theft? semantic tests Co-Authored-By: dan@regima.zone <dan@regima.zone>
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
…tible subprocess call; report skipped tests Co-Authored-By: dan@regima.zone <dan@regima.zone>
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
| (define (has-attribute act attr) (and (assq attr act) #t)) | ||
| (define (get-attribute act attr . d) | ||
| (let ((p (assq attr act))) (if p (cdr p) (if (null? d) #f (car d))))) | ||
| (primitive-load "cri/za/south_african_criminal_law.scm") |
Co-Authored-By: dan@regima.zone <dan@regima.zone>
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
There was a problem hiding this comment.
🔵 Needs a closer look
The substantive fraud and theft changes need South African criminal-law review to validate intention and prejudice-causation requirements against the unavailable cited judgments; the stubbed truth table checks logic, not legal accuracy.
1 resolved since last review
Review effort: Balanced

Summary
Cross-repo sync & reconciliation for
cogpy/chainlex, back-porting the Scheme Defect D1 criminal-law repair to alignchainlexwithad-res-j7,ad-res-j7-cron, andlexrex.Exact Changes
cri/za/south_african_criminal_law.scm(d4eed14):fraud?andtheft?per S v Gardener [2011] ZASCA 24): removed erroneousbenefit-to-accused?and helpers; addedunlawful-act?,no-claim-of-right?,claim-of-right?,self-defence?,legal-authority?,intention-to-defraud?,intention-to-induce-prejudicial-action?; updatedmisrepresentation?.0.framework_index.json: only thecrientries change, with 3 removed and 6 added (total 2638 → 2641). Other frameworks are left untouched to avoid glob-order churn.hypergraph/tuples.json→scmlex_hypergraph.{pkl,json,graphml,_neo4j.cypher},hypergraph_stats.json→weighted/*→gnn/*, rebuilt withbuild_hypergraph.py→analyze_edge_weights.py→gnn_legal_reasoning.py(networkx 3.4 + lxml). On the old tuples this pipeline reproduces the previously shipped files byte-for-byte. Rule nodes go from 2215 to 2218. Existing node UUIDs are kept.test_suite.py:TestShippedArtifactParity: the shippedframework_index.jsonmust list the same functions asFrameworkIndex()for every framework;tuples.jsonmust contain every extractablecrirule and none of the D1-removed names; the criminal rules in the pickle must matchtuples.json(skipped without networkx).TestCriminalRuleSemantics(runs under Guile, skipped without it): a truth table forfraud?/theft?that drives the D1 helpers from case-fact attributes. It covers potential prejudice, actual loss with and without causation, missing elements, a bona fide claim of right, and theself-defence?/legal-authority?aliases.run_testssummary no longer counts skipped tests as successes.Verification
python3 -B test_suite.py→ 27 run, 0 failures, 0 errors, 0 skipped.python3 -I scripts/check_withdrawn_claims.py --diff origin/main→ no withdrawn claims in added lines.Not changed (flag for review)
lv1/criminal_law_helpers.scmfraud-elements?still requiresbenefit-to-accused(same D1 defect, separate module).hypergraph/visualizations/*.pngand the README/CLAUDE.md node counts (2,306) were not regenerated.extract_tuples.pyskips names containing digits (e.g.under-18?). This was already the case before this PR.Guardrails Confirmed
evidence/,ANNEXURES/,.gitattributes,.gitignore,WITHDRAWN_CLAIMS_REGISTER.json,ecosystem-evidence-graph.jsonuntouched).#5148incogpy/ad-res-j7was not touched.Link to Devin session: https://app.devin.ai/sessions/3b7c299f27584296b1cc3dcd86347e6e
Open in Devin Desktop: https://app.devin.ai/desktop/session/3b7c299f27584296b1cc3dcd86347e6e?variant=devin
Requested by: @danregima