[codex] add AI stochastic evidence commands#162
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the implemented fsl-ai stochastic evidence surface: project-level AI declarations, precomputed eval checks, migration regression comparison, runtime drift checks, and AI compatibility profile generation. Removes proposal docs whose content is now reflected in implementation/design docs.
Why
docs/fsl_ai_stochastic_proposal.mdreal rather than a stale proposal.fslc verifywas rejected; the implemented boundary keeps the kernel deterministic and reportsformal_result:"not_run"for statistical and observed evidence.What Changed
src/fslc/ai_project.pyandsrc/fslc/ai_stochastic.pyfor project-level parsing and evidence evaluation.fslc ai eval,ai regress,ai compare,ai drift,ai compat, andcompat check --include-aiintegration.ai replayto select a component from project files and detect artifact metadata mismatches plustool_calls[]events.skills/fsl/reference.md.*-mvp.v0wording and deleted superseded proposal documents.Blast Radius
fslidentifiers now usefsl-ai-hard.v0,fsl-ai-agent.v0, andfsl-stochastic.v0. Consumers pinned to the older*-mvp.v0labels need to accept the new v0 names.Invariants
formal_result:"not_run", schema updates, testsprovedfslc verifysemantics would change unexpectedlydocs/DESIGN-ai-hard.md,docs/DESIGN-stochastic.md,docs/LANGUAGE.md,skills/fsl/reference.mdFailure Modes
tests/test_ai_stochastic.py,fslc ai check examples/ai/support_answer_quality.fslai eval/regress/drifttests and CLI smoke commandsEvidence
.venv/bin/python -m py_compile src/fslc/ai_check.py src/fslc/cli.py src/fslc/ai_expand.py src/fslc/ai_agent.py src/fslc/ai_stochastic.py src/fslc/ai_project.py.venv/bin/python -m pytest tests/test_ai_stochastic.py tests/test_ai_hard_contract.py tests/test_ai_recursive_agent.py -q.venv/bin/python -m pytest tests/test_corpus_snapshot.py tests/test_ai_stochastic.py tests/test_ai_hard_contract.py tests/test_ai_recursive_agent.py tests/test_db_dialect.py tests/test_domain_dialect.py tests/test_analysis_schema.py tests/test_lsp_index.py -q.venv/bin/python -m pytest -q=>1035 passed, 78 skippedgit diff --checkai check,ai eval,ai replay,ai compat,ai regress,ai drift,ai compare,compat check --include-aiRollout & Rollback
Review Focus
src/fslc/ai_project.py: lenient project-level parser boundary.src/fslc/ai_stochastic.py: statistical/regression/drift status semantics.src/fslc/ai_check.pyandsrc/fslc/cli.py: replay/CLI integration and exit behavior.docs/DESIGN-stochastic.md,docs/DESIGN-ai-hard.md,skills/fsl/reference.md: proof vs external-evidence wording.Unknowns
Related