Skip to content

DO NOT MERGE: AISDLC-118 human-dismissal E2E fixture - #108

Closed
csoceanu wants to merge 1 commit into
mainfrom
codex/aisdlc-118-human-dismissal-e2e-case
Closed

csoceanu wants to merge 1 commit into
mainfrom
codex/aisdlc-118-human-dismissal-e2e-case

Conversation

@csoceanu

Copy link
Copy Markdown
Collaborator

Purpose

Temporary draft fixture for end-to-end verification of fullsend-ai/agents#1635.

  • Seeds two deterministic arithmetic logic errors and matching failing tests.
  • Provides canonical logic-error findings for the review-findings-v2 ledger.
  • Will be used to resolve one eligible review thread and verify it becomes dismissed_by_human on re-review.

Expected state

The two added tests intentionally fail. This PR must never be merged.

Safety

  • No workflows or Fullsend configuration are changed.
  • No credentials, tokens, or secrets are included.
  • The branch will be deleted after verification.

Related: fullsend-ai/agents#1635

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: csoceanu <csoceanu@redhat.com>
@csoceanu

Copy link
Copy Markdown
Collaborator Author

/fs-review

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 10:01 AM UTC · Ended 10:04 AM UTC

Commit: 2b16e38 · View workflow run →

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:06 AM UTC · Completed 10:20 AM UTC

Commit: 2b16e38 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $2.61

@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Oct 11, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: low (1/5)

Details

Minimal-risk draft PR marked DO NOT MERGE that adds only 2 new files (23 lines total) with no security-sensitive paths, no CI or dependency changes, and a 50% test ratio; all signals uniformly indicate low risk.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

High

  • [logic-error] src/review_ledger_demo.py:6 — The add function's implementation contradicts its contract. The docstring promises "Return the sum of two integers" but the body executes return left - right (subtraction). The corresponding test test_add_returns_sum asserts add(2, 3) == 5, which will fail at runtime because 2 - 3 evaluates to -1.
    Remediation: Change return left - right to return left + right.

  • [logic-error] src/review_ledger_demo.py:11 — The is_even function's implementation inverts the documented behavior. The docstring says "Return whether an integer is even" but the body returns value % 2 == 1, which is the test for oddness. The corresponding test test_is_even_recognizes_parity asserts is_even(2) is truthy and is_even(3) is falsy; both assertions will fail because the implementation returns the opposite of what the contract promises.
    Remediation: Change return value % 2 == 1 to return value % 2 == 0.

Medium

  • [code-organization] src/review_ledger_demo.py:1 — The _demo suffix has no precedent in src/. Every existing module uses a short functional name (comments.py, discovery.py, generation.py, etc.) with no qualifier suffix. Placing a temporary fixture module alongside production modules breaks the established naming and organisation pattern for this directory.
    Remediation: Move the file to tests/ (e.g., tests/review_ledger_helpers.py or tests/fixtures/review_ledger_demo.py) and update the import in test_review_ledger_demo.py accordingly.

  • [architectural-incoherence] src/review_ledger_demo.py — CLAUDE.md exhaustively documents the purpose of every module in src/. review_ledger_demo.py — a test fixture containing intentionally broken arithmetic — does not map to any documented architectural role. Placing fixture / seeded-bug code in the production source directory is inconsistent with the module inventory.
    Remediation: If this fixture must live in this repository, place it under tests/fixtures/ or a clearly scoped subdirectory, not alongside production modules in src/.

  • [scope-creep] src/review_ledger_demo.py — The PR description states the branch will be deleted after verification and the fixture is temporary, but there is no enforcement mechanism. The files are committed to main-targeting paths with no TTL, cleanup script, or feature-flag guard. If this PR were accidentally merged the fixture would persist in src/ indefinitely.
    Remediation: Either (a) keep the fixture entirely in the external repo that needs it, or (b) add a repository-level guard to prevent accidental merge.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread src/review_ledger_demo.py

def add(left: int, right: int) -> int:
"""Return the sum of two integers."""
return left - right

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[high] logic-error

The add function implementation contradicts its contract. The docstring promises Return the sum of two integers but the body executes return left - right (subtraction). The corresponding test test_add_returns_sum asserts add(2, 3) == 5, which will fail at runtime because 2 - 3 evaluates to -1.

Suggested fix: Change return left - right to return left + right.

Comment thread src/review_ledger_demo.py

def is_even(value: int) -> bool:
"""Return whether an integer is even."""
return value % 2 == 1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[high] logic-error

The is_even function implementation inverts the documented behavior. The docstring says Return whether an integer is even but the body returns value % 2 == 1, which is the test for oddness. The corresponding test test_is_even_recognizes_parity asserts is_even(2) is truthy and is_even(3) is falsy; both assertions will fail because the implementation returns the opposite of what the contract promises.

Suggested fix: Change return value % 2 == 1 to return value % 2 == 0.

Comment thread src/review_ledger_demo.py
@@ -0,0 +1,11 @@
"""Small arithmetic helpers used by the review-ledger E2E test."""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] code-organization

The _demo suffix has no precedent in src/. Every existing module uses a short functional name (comments.py, discovery.py, generation.py, etc.) with no qualifier suffix. Placing a temporary fixture module alongside production modules breaks the established naming and organisation pattern for this directory.

Suggested fix: Move the file to tests/ (e.g., tests/review_ledger_helpers.py or tests/fixtures/review_ledger_demo.py) and update the import in test_review_ledger_demo.py accordingly.

@csoceanu

Copy link
Copy Markdown
Collaborator Author

Closing the temporary AISDLC-118 end-to-end fixture without merging. The compatibility test is complete; cleanup is in progress.

@csoceanu csoceanu closed this Oct 11, 2026
@csoceanu
csoceanu deleted the codex/aisdlc-118-human-dismissal-e2e-case branch October 11, 2026 10:30
@fullsend-ai-retro

fullsend-ai-retro Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 10:33 AM UTC · Completed 10:44 AM UTC

Commit: 2b16e38 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $1.97

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #108 — AISDLC-118 human-dismissal E2E fixture

Workflow outcome: Clean — no improvement proposals.

PR #108 was a temporary test fixture opened by csoceanu to verify the review-findings-v2 ledger (fullsend-ai/agents#1635). It intentionally seeded two arithmetic logic errors in src/review_ledger_demo.py with matching failing tests. The PR was closed without merging after the E2E verification completed.

Timeline

Time (UTC) Event
10:00:00 PR opened
10:00:04 Auto-review triggered (run 38130361985)
10:01:06 /fs-review posted
10:01:09 Manual review triggered (run 38130440695)
~10:05 First review cancelled (~4.5 min of wasted compute)
10:20:13 Second review completed — 2 high + 3 medium findings, CHANGES_REQUESTED
10:30:54 PR closed without merge

Review quality: Excellent

The review agent (opus, high effort, $2.61) correctly identified both seeded logic errors (add using subtraction, is_even checking oddness) with precise remediation steps. It also raised three valid medium-severity organizational findings about placing a test fixture module in the production src/ directory. All 5 findings were accurate — zero false positives.

Cancelled first review

The automatic pull_request_target review (run 38130361985) ran for ~4.5 minutes before being cancelled when the /fs-review command triggered a second review. This wasted compute is a consequence of the temporary AISDLC-118 test configuration — the repo was running on @main refs with modified routing config at the time. This is already tracked by #97, which covers reverting the temporary config (workflow refs back to @v0, review role restored, etc.). The current fullsend.yaml on main has already been reverted to @v0 with cancel-in-progress: false.

No proposals filed

This was a well-executed test workflow. The review agent performed accurately, the cost was reasonable, and the primary anomaly (cancelled duplicate review) is covered by the existing issue #97.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk/low PR risk: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant