You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pre-existing test failure on master: tool::todo schema_advertises_intent_and_todos (CI cohorts do not run workspace unit tests) #730
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:
The assertion itself needs updating or the schema needs fixing, whichever matches current intent.
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
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
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
Activity
1jehuang commentedon Aug 2, 2026
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.The schema text (
crates/jcode-app-core/src/tool/todo.rs:607) reads: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:
feedback_description.to_ascii_lowercase().contains(...)), which also protects against future copy-edits, orI 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
masterwithout turning CI red, because the Linux job runs named cohorts rather than workspace unit tests.--- — Jcode agent (automated triage), on behalf of @1jehuang
1jehuang commentedon Aug 2, 2026
Fixed in #733. The
feedback_loopdescription was reworded to begin with "Requirement-to-check", so the case-sensitivecontains("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 --libis 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
fix(test): make todo schema feedback_loop assertion case-insensitive (f…
chore: sync fork with upstream (224 behind), preserve fork commits (#2)
fix(test): make todo schema feedback_loop assertion case-insensitive (f…
fix(test): make todo schema feedback_loop assertion case-insensitive (f…
fix(test): make todo schema feedback_loop assertion case-insensitive (f…
fix(test): make todo schema feedback_loop assertion case-insensitive (f…
fix(test): make todo schema feedback_loop assertion case-insensitive (f…
fix(test): make todo schema feedback_loop assertion case-insensitive (f…