Skip to content

expand bank-chat fixture with brownfield integration coverage#199

Merged
HumanBean17 merged 1 commit into
masterfrom
cursor/bank-chat-fixture-expansion
May 22, 2026
Merged

expand bank-chat fixture with brownfield integration coverage#199
HumanBean17 merged 1 commit into
masterfrom
cursor/bank-chat-fixture-expansion

Conversation

@HumanBean17
Copy link
Copy Markdown
Owner

Summary

  • Enriches tests/bank-chat-system/ with notification, audit, reporting, HTTP/async integration, and in-corpus @Codebase* brownfield annotations (definitions in chat-contracts, usage across assign/app/engine).
  • Adds Tier-1 guardrails in tests/test_bank_chat_brownfield_integration.py for brownfield routes, clients, async Layer-C, and @CodebaseProducers on the session bank graph (pass1–5, no pass6).
  • Fixes tests exposed by the larger corpus: test_find_client_by_client_kind (verify client_kind via graph rows, not display fqn) and test_increment_updates_lance_after_touch_java_file (touch file under Maven src/main/java).
  • Updates tests/README.md fixture tree and Feign/brownfield guidance.

Test plan

  • .venv/bin/ruff check .
  • .venv/bin/python -m pytest tests -q — 698 passed, 8 skipped
  • Graph meta on rebuilt bank corpus: routes_from_brownfield_pct ~33%, http_clients_from_brownfield_pct ~12.5%, async_producers_from_brownfield_pct ~33%

No indexer / ontology_version changes (fixture + tests only).

Made with Cursor

Adds notification, audit, reporting, and in-corpus @codebase* annotations
to the test corpus, plus Tier-1 pytest guardrails and fixes for client_kind
and cocoindex increment touch paths exposed by the larger tree.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Copy Markdown
Owner Author

@HumanBean17 HumanBean17 left a comment

Choose a reason for hiding this comment

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

Review summary

Direction: Good — fills a real Tier-1 gap that tests/fixtures/brownfield_* stubs cannot cover (annotations defined in chat-contracts, consumed across assign / app / engine on the session bank graph).

Necessity: Partially. The brownfield integration story, Feign client_kind coverage, CLI increment touch-path fix, and test_bank_chat_brownfield_integration.py guardrails are warranted. Most of the ~1.3k LOC of notification/audit/reporting domain is not exercised by any new assertion — only 8 @Codebase* usages drive the new tests. A ~10–15 file focused slice would satisfy the same guardrails and align better with tests/README.md rule 5 (“keep the fixture small”).

What works well

  • Tier-1 layout matches README: contracts hold @Codebase* definitions; usage spans modules; session graph pass1–5 (no pass6).
  • test_find_client_by_client_kind fix is correct — display fqn does not embed client_kind; verify via list_clients() / graph columns after Feign clients were added.
  • test_increment_updates_lance_after_touch_java_file — touch under Maven src/main/java matches indexer walk semantics.
  • No production/indexer/ontology_version churn; assertions stay loose (>= 1, set checks, meta > 0).

Suggestions (non-blocking)

  1. Fixture size: Consider trimming notification/audit/reporting bulk unless a follow-up test or manual-verification checklist needs it — every Tier-1 test pays session graph build cost on the larger tree.
  2. PR hygiene: A short propose (Tier-1 goals, bank-chat vs brownfield_* split, timing before/after) would match repo culture for a ~1.4k-line fixture change; README also asks for wall-time notes on large refactors.
  3. Minor: ChatCoreFeignClient importing JoinOperatorRequest from chat-app is a slightly odd cross-module edge in a toy corpus — fine if intentional.

Recommendation

Approve the intent (Tier-1 brownfield + test fixes). Optional follow-up: trim unused domain files or document why they stay (e.g. future describe/hints scenarios). Not a reason to reject — the gap and fixes are real.

@HumanBean17 HumanBean17 merged commit ca016de into master May 22, 2026
1 check passed
HumanBean17 added a commit that referenced this pull request May 22, 2026
Adds notification, audit, reporting, and in-corpus @codebase* annotations
to the test corpus, plus Tier-1 pytest guardrails and fixes for client_kind
and cocoindex increment touch paths exposed by the larger tree.

Co-authored-by: Cursor <cursoragent@cursor.com>
@HumanBean17 HumanBean17 deleted the cursor/bank-chat-fixture-expansion branch May 23, 2026 16:18
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