Skip to content

M4: demo planted bug, dual_run workflow, and assert script - #3

Merged
CodewithJha merged 6 commits into
mainfrom
feat/m4-demo
Jul 31, 2026
Merged

M4: demo planted bug, dual_run workflow, and assert script#3
CodewithJha merged 6 commits into
mainfrom
feat/m4-demo

Conversation

@CodewithJha

Copy link
Copy Markdown
Owner

Summary

  • Add demo/ checkout/payments service with planted validate_charge tuple/bool contract break and a weak happy-path test.
  • Add monorepo demo-leanci.yml dual_run workflow (consumer leanci.yml unchanged) plus assert_planted_bug.py gate.
  • Route uncompressed dual-run LLM traffic via LEANCI_OPENAI_URL so Groq baseline matches the compressed upstream.

Test plan

  • Unit tests including test_assert_planted_bug.py
  • Demo dual_run job posts PR comment + metrics artifact
  • Assert job PASS on planted bug
  • Record token reduction / costs from metrics

Made with Cursor

Ship the checkout/payments planted contract break, demo dual_run workflow,
assert script, and route uncompressed LLM calls via LEANCI_OPENAI_URL so
Groq dual-run can complete.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

LeanCI Review

Findings

  1. [high] Contract Break: validate_charge returns tuple instead of bool (demo/src/payments/charge.py:16) — validate_charge() should return bool; returns tuple[bool, str] instead

Cost Receipt

Uncompressed Paritok
Input tokens (Paritok domain) 1855 1855
Est. USD $0.000093 $0.000093
Reduction 0.0%

Expanded 5 files (0 beyond diff), 2336 bytes.

Assumptions: pricing_version=2026-07-30; model=llama-3.1-8b-instant rates: input $0.05/1M, output $0.08/1M (as_of 2026-07-31); Primary token counts use Paritok /stats domain (content Paritok intervenes in; may exclude unaffected system prompt tokens); Uncompressed dual-run column uses provider usage when available; otherwise estimates from pre-compression token counts; compression near-ineffective — show measured reduction 0.0% only; do not market a fixed headline savings rate

Metrics artifact: leanci-metrics.json
Powered by Paritok — deep review at lean cost.

Priyanshu Jha and others added 3 commits July 31, 2026 13:34
Scope demo reviews with LEANCI_PATH_PREFIX, recover from tool_use_failed in
the agent loop, and match planted markers in rationale/file text.

Co-authored-by: Cursor <cursoragent@cursor.com>
Filter expansion to LEANCI_PATH_PREFIX, preload small demo seeds into the
prompt, and switch the demo workflow to llama-3.1-8b-instant.

Co-authored-by: Cursor <cursoragent@cursor.com>
Ship Apache-2.0, a full project README, ≤3 min video script, Devpost
field draft, media placeholders, and a release checklist—no engine changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@CodewithJha
CodewithJha merged commit 470dd69 into main Jul 31, 2026
3 of 7 checks passed
CodewithJha added a commit that referenced this pull request Jul 31, 2026
M4: demo planted bug, dual_run workflow, and assert script
@CodewithJha
CodewithJha deleted the feat/m4-demo branch July 31, 2026 13:39
CodewithJha pushed a commit that referenced this pull request Jul 31, 2026
Architecture, PR comment, receipt GIF, and Actions visuals use PR #3 metrics so the submission assets match measured demo output.

Co-authored-by: Cursor <cursoragent@cursor.com>
CodewithJha pushed a commit that referenced this pull request Jul 31, 2026
Architecture, PR comment, receipt GIF, and Actions visuals use PR #3 metrics so the submission assets match measured demo output.
CodewithJha added a commit that referenced this pull request Aug 1, 2026
M4: demo planted bug, dual_run workflow, and assert script
CodewithJha pushed a commit that referenced this pull request Aug 1, 2026
Architecture, PR comment, receipt GIF, and Actions visuals use PR #3 metrics so the submission assets match measured demo output.
CodewithJha added a commit that referenced this pull request Aug 1, 2026
M4: demo planted bug, dual_run workflow, and assert script
CodewithJha added a commit that referenced this pull request Aug 1, 2026
Architecture, PR comment, receipt GIF, and Actions visuals use PR #3 metrics so the submission assets match measured demo output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant