feat(agent): six-step agent flow with Streamlit Flow page and group guide - #2
Merged
Merged
Conversation
- core/agent: define_problem → collect → structure_metrics → estimate → guard → report, runnable offline (python) or via LangGraph - pre-registration gate: plan.yaml must be committed before running - guard: abstention verdicts + overclaim linter on report text - run_manifest.json for reproducibility; log paths relative to the case - app/pages/1_Flow.py: run or replay a flow with per-step results - docs/ops/group-guide.md: roles, weekly milestones, branch/PR rules - tests run the example case in a temp copy (no tracked-file churn) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMnmZPBD5PQJW1UQAARN7q
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMnmZPBD5PQJW1UQAARN7q
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.
Stacked on #1 — merge #1 first, then this PR retargets to
main.What's added
core/agent/), mirroring the track's pipeline (collect → structure metrics → estimate → report, automated by an agent):plan.yaml; pre-registration gate (plan must be committed before estimation)run_plan(DiD / event study / ITS) + placebo test; the LLM never computes numbersreport.md, figures,run_manifest.json(git SHA, versions, data/plan hashes)engine=langgraph). Optional LLM narrative through any OpenAI-compatible endpoint (OPENAI_BASE_URL,OPENAI_API_KEY,LLM_MODEL); its text is linted before use.make flow CASE=cases/_example_night_clinicapp/pages/1_Flow.py): run or replay a flow; per-step status, quality table, estimate and verdict, guard findings, report preview. Shows a SYNTHETIC banner for synthetic cases.cases/_example_night_clinic(flow_log.json,run_manifest.json, report, figures) — synthetic data, not a real policy effect.docs/ops/group-guide.md: group roles mapped to the six steps, weekly milestones, branch/PR rules.Fixes
Verification
pytest: 36 passed;ruff check/ruff format --check: cleanRemaining
🤖 Generated with Claude Code
https://claude.ai/code/session_01EMnmZPBD5PQJW1UQAARN7q
Generated by Claude Code