Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e569a9e
WIP: Python L1 pyright/mypy static structural checks implementation
briansrls Jun 1, 2026
be64e74
WIP: Python L1 pyright/mypy static structural checks implementation
briansrls Jun 1, 2026
31195ce
WIP: Python L1 pyright/mypy static structural checks implementation
briansrls Jun 1, 2026
45edffe
fix: address python static CI failures
briansrls Jun 1, 2026
ef94b96
fix: clean up python static smoke test
briansrls Jun 1, 2026
94c3e2e
WIP: Python L1 pyright/mypy static structural checks implementation
briansrls Jun 1, 2026
4a673cc
Merge remote-tracking branch 'origin/main' into session/crisp-bat-22
briansrls Jun 1, 2026
871b898
fix(v4): address review #23594/#23595 on PY-L1 static slice
briansrls Jun 1, 2026
6ac1670
WIP: Python L1 pyright/mypy static structural checks implementation
briansrls Jun 1, 2026
defd21a
fix(v4): de-conflate profile/tool identity + make BlockingForRung str…
briansrls Jun 1, 2026
5aab227
docs(v4): clarify static tool identity comments
briansrls Jun 1, 2026
f45ea94
fix(v4): F1 runner consumes the modeled pyright profile (single autho…
briansrls Jun 1, 2026
93f6231
Merge remote-tracking branch 'origin/main' into session/crisp-bat-22
briansrls Jun 1, 2026
560435c
WIP: Python L1 pyright/mypy static structural checks implementation
briansrls Jun 1, 2026
f823b79
fix(v4): address openai-pro REQUEST_CHANGES (single-authority + no-pr…
briansrls Jun 1, 2026
d510c7f
WIP: Python L1 pyright/mypy static structural checks implementation
briansrls Jun 1, 2026
f0ab617
fix(v4): model pyright typeCheckingMode keyword spelling (single auth…
briansrls Jun 1, 2026
fad72bd
fix(v4): key pyright mode-spelling projection by the enum variant (M4…
briansrls Jun 1, 2026
8f5432e
fix(v4): bind pyright to the generated profile config (--project)
briansrls Jun 1, 2026
ce5a4ad
WIP: Python L1 pyright/mypy static structural checks implementation
briansrls Jun 1, 2026
4910860
fix(v4): drop broken v3 smoke; validate profiles via whole-tree v2 gate
briansrls Jun 1, 2026
83706d5
fix(v4): remove unconsumed mypy profile (E-6); track as bounded follo…
briansrls Jun 1, 2026
ab3c1fc
WIP: Python L1 pyright/mypy static structural checks implementation
briansrls Jun 1, 2026
795f8de
fix(merge): resolve conflict markers left in the main merge commit
briansrls Jun 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions src/v4/std/leaf_model_verification.dag
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,38 @@ type TargetPythonExerciseVerdict
| TargetPythonCompileRejected { diagnostic_code: Symbol }
| TargetPythonExecRejected { diagnostic_code: Symbol }

// --- PY-L1-STATIC-STRUCTURAL: shared cross-target static-analysis carriers ---
// Arbiter ruling (Modeling DFS, proud-fox-405, msg_41813c03): static structural
// analysis by a third-party type checker is a SHARED cross-target authority — one
// carrier pair reused by pyright/mypy now and tsc --noEmit later — DISTINCT from
// BOTH CPython compile (TargetPythonCompileRejected) and runtime exec
// (TargetPythonExecRejected). Three authorities, never collapsed. Per-tool profiles
// and diagnostic-code Symbols live in extdeps/typecheckers/*; these carriers
// reference the tool profile / diagnostic by Symbol only (no shared cross-tool
// diagnostic namespace). host_run stays runtime stdout/exit; no static facts there.

// Whether a static-analysis finding blocks a rung or is advisory evidence only.
// Fail-closed semantics (Arbiter): a BlockingForRung invocation whose falsification
// path yields only an advisory finding is a MISS, not a pass.
type TargetStaticAnalysisRole

This comment was marked as resolved.

= Advisory
| BlockingForRung

type TargetStaticAnalysisInvocation {
tool_profile_ref: Symbol
input_artifact: TargetArtifact
analysis_role: TargetStaticAnalysisRole
}

// StaticAnalysisAccepted: analyzer ran and proved no finding under the profile.
// StaticAnalysisRejected: blocking finding (tool_id + per-tool diagnostic_code).
// StaticAnalysisAdvisory: non-blocking finding recorded as evidence, never a
// compile/runtime verdict and never an L2 behavioral-parity claim.
type TargetStaticAnalysisVerdict

This comment was marked as resolved.

= StaticAnalysisAccepted
| StaticAnalysisRejected { tool_id: Symbol, diagnostic_code: Symbol }
| StaticAnalysisAdvisory { tool_id: Symbol, diagnostic_code: Symbol }

data target_diagnostic_e0308_type_mismatch: Symbol = target_diagnostic_e0308_type_mismatch
data target_diagnostic_e0423_expected_value_found_type: Symbol = target_diagnostic_e0423_expected_value_found_type
data target_diagnostic_e0599_method_not_found: Symbol = target_diagnostic_e0599_method_not_found
Expand All @@ -102,6 +134,7 @@ data leaf_model_claim_python_r1_int_surface_spelling: LeafModelClaimId = leaf_mo
data leaf_model_claim_python_r2a_int_algebra_operations: LeafModelClaimId = leaf_model_claim_python_r2a_int_algebra_operations
data leaf_model_claim_python_r2b_int_arbitrary_precision_add: LeafModelClaimId = leaf_model_claim_python_r2b_int_arbitrary_precision_add
data leaf_model_claim_python_r3_external_symbol_projection: LeafModelClaimId = leaf_model_claim_python_r3_external_symbol_projection
data leaf_model_claim_python_l1_static_return_type: LeafModelClaimId = leaf_model_claim_python_l1_static_return_type
data leaf_model_claim_rust_r2a_i32_algebra_operations: LeafModelClaimId = leaf_model_claim_rust_r2a_i32_algebra_operations
data leaf_model_claim_rust_r2b_debug_default_overflow: LeafModelClaimId = leaf_model_claim_rust_r2b_debug_default_overflow
data leaf_model_claim_rust_r2b_release_default_overflow: LeafModelClaimId = leaf_model_claim_rust_r2b_release_default_overflow
Expand Down Expand Up @@ -169,6 +202,22 @@ type LeafModelPythonFixturePair {
falsification: LeafModelPythonFalsificationCase
}

// PY-L1-STATIC-STRUCTURAL fixture carrier. A static "case" is one artifact + its
// invocation (tool profile + role) + the expected static-analysis verdict. The
// fixture source lives in invocation.input_artifact.source_text. A pair bundles a
// happy case (StaticAnalysisAccepted) and a falsification case (StaticAnalysisRejected).
type LeafModelPythonStaticCase {
invocation: TargetStaticAnalysisInvocation
expected_verdict: TargetStaticAnalysisVerdict

This comment was marked as resolved.

}

type LeafModelPythonStaticFixturePair {
claim_id: LeafModelClaimId
surface_spelling_fact: Symbol
happy: LeafModelPythonStaticCase
falsification: LeafModelPythonStaticCase
}

type LeafModelVerificationRunReceipt {
claim_id: LeafModelClaimId
happy_verdict: Verdict<LeafModelClaimId, TargetCompileVerdict>
Expand Down