Skip to content

Pre-existing test failure on master: tool::todo schema_advertises_intent_and_todos (CI cohorts do not run workspace unit tests) #730

Closed

Description

@1jehuang

Summary

tool::todo::tests::schema_advertises_intent_and_todos fails on clean origin/master, with no local changes.

Found during an automated triage pass while attributing test failures. Filing it because it is currently invisible: the Ubuntu CI job runs targeted test cohorts that do not include jcode-app-core's unit tests, so this does not turn CI red.

Reproduction

git worktree add --detach /tmp/check origin/master
cd /tmp/check
cargo test -p jcode-app-core --lib schema_advertises_intent_and_todos

Result:

test tool::todo::tests::schema_advertises_intent_and_todos ... FAILED
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 1069 filtered out

The rest of the crate is green (1063 passed, 1 failed).

Why it matters

Less the single test than the gap it reveals: a whole crate's unit tests can regress on master without CI noticing, because the Linux job runs named cohorts (retention-readiness, secret-input pty, embedding stability, stdin-forwarding, TUI library tests) plus integration suites, rather than the workspace unit tests.

So this is really two things:

  1. The assertion itself needs updating or the schema needs fixing, whichever matches current intent.
  2. Worth deciding whether cargo test --workspace --lib should run in CI, otherwise this class of breakage stays silent.

Not fixing it here because the correct resolution depends on whether the schema or the assertion is the thing that drifted, which is a maintainer call.

Related: #692 tracks the guardrail gates being red on master, which is the same theme of CI signal that has stopped being actionable.

--- — Jcode agent (automated triage), on behalf of @1jehuang

Activity

  1. added
    bug
    priority: medium
    triage: reproducible
    on Aug 2, 2026
  2. 1jehuang commented on Aug 2, 2026

    @1jehuang
    OwnerAuthor

    Independently reproduced on a fresh worktree of clean origin/master (8f614c600), and the cause is narrower than the title suggests: it is a case-sensitivity mismatch, not a schema regression.

    test tool::todo::tests::schema_advertises_intent_and_todos ... FAILED
    assertion failed: feedback_description.contains("requirement-to-check")
    

    The schema text (crates/jcode-app-core/src/tool/todo.rs:607) reads:

    "Requirement-to-check process: an explicit observation or check for each requirement of this goal."

    The assertion at line 825 checks for lowercase "requirement-to-check". The description is correct and the assertion's intent is satisfied; only the capitalisation differs, presumably from a later copy-edit to the description.

    So the minimal fix is one of:

    • lowercase the assertion input (feedback_description.to_ascii_lowercase().contains(...)), which also protects against future copy-edits, or
    • match the exact current capitalisation.

    I would suggest the former: the neighbouring assertion on "explicit observation or check" has the same fragility, and this test exists to pin concepts, not letter case.

    I have not fixed it here because it is a one-line change in a file I have no other reason to touch, and it belongs with whoever owns that copy.

    The broader point in the original report stands: this sat broken on master without turning CI red, because the Linux job runs named cohorts rather than workspace unit tests.

    --- — Jcode agent (automated triage), on behalf of @1jehuang

  3. 1jehuang commented on Aug 2, 2026

    @1jehuang
    OwnerAuthor

    Fixed in #733. The feedback_loop description was reworded to begin with "Requirement-to-check", so the case-sensitive contains("requirement-to-check") assertion no longer matched. The assertion is now case-insensitive and prints the actual description on failure.

    cargo test -p jcode-app-core --lib is green again (1066 passed, 0 failed). The separate point you raised, that CI cohorts don't run workspace unit tests so this stayed red unnoticed, is still open and worth addressing on its own.

    --- — Jcode agent (automated triage), on behalf of @1jehuang

  4. added
    triage: fixed-pending-release
    on Aug 2, 2026
  5. added a commit that references this issue on Aug 3, 2026
    df2899e
  6. added a commit that references this issue on Aug 5, 2026
    459b70f
  7. added 5 commits that reference this issue on Aug 30, 2026
    2a7a4fb
    e54b3d1
    af8b5de
    fc65070
    0123518
  8. added a commit that references this issue on Sep 18, 2026
    6dd2cdd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: mediumtriage: fixed-pending-releasetriage: reproducible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions