Commit Graph

14 Commits

Author SHA1 Message Date
ad012b4cd4 feat: structural test integrity enforcement — mock ban, brain contract tests, UI change noise threshold
- Add permanent mock ban guard in root conftest.py that fails any test
  importing unittest.mock at COLLECTION TIME (before execution)
- Add 8 brain output contract tests reproducing the exact production bug:
  LLM thinks 'press back' but parser extracts 'tap messages tab' from
  the <think> block
- Add UI change noise threshold (MIN_UI_CHANGE_BYTES=50) to prevent
  false-positive 'ui_changed' from 1-byte XML diffs (timestamps/whitespace)
- Verify planner correctly strips masked actions from Brain prompt
2026-04-28 23:45:22 +02:00
bd9148e6e9 fix(tests): purge theater/broken tests, fix Config argparse pollution, fix is_ad() false positive
PHASE 1 — STOP THE BLEEDING:
- Delete 6 theater/dead test files (empty stubs, skipped placeholders)
- Create root conftest.py to isolate Config/argparse from pytest sys.argv
- Rewrite test_feed_loop_continuation.py: replace inspect.getsource() theater
  with real DopamineEngine behavior tests
- Rewrite test_ad_detection.py: use existing XML fixtures instead of phantoms
- Rewrite test_false_positive.py: use verified fixtures, caught REAL bug

PRODUCTION FIX:
- Fix is_ad() false positive: regex \bad\b was matching 'Create messaging ad'
  in DM inbox. Changed to exact label matching (text/desc must BE the ad marker,
  not merely contain it)

Result: 34 FAILED + 4 ERRORS -> 0 FAILED, 178 PASSED, 3 SKIPPED
2026-04-28 09:36:22 +02:00
a7449a1db3 chore(test): Ruthless deletion of ALL remaining MagicMocks and patches across the entire test suite 2026-04-27 16:50:26 +02:00
42a11107fd test(e2e): eliminate all legacy mocks and establish real-world sim suite 2026-04-27 01:11:47 +02:00
77e8251aa7 fix(sae): stabilize navigation engine, fix container filtering, and negative reinforcement logic 2026-04-25 13:09:12 +02:00
30724d3c03 chore: FSD stabilization, strict TDD enforcement, and unlearn mechanism
- implemented self-healing unlearn for Qdrant false positives
- centralized testing logic in conftest
- documented core rules, ai standards, and goap philosophy
- purged old dev scratchpads
2026-04-24 13:28:32 +02:00
75009d91a2 feat(navigation): Implement 100% autonomous Blank Start architecture; purge heuristics 2026-04-22 00:05:03 +02:00
fff9ec5b0a Hardening: Streamlined testing infrastructure, unified toolkit, and established English TDD standards 2026-04-21 10:17:27 +02:00
0a02e901b6 fix(feed): resolve home feed back-button scroll-to-top trap
- Separated obstacle detection from feed marker validation
- Prevented blind BACK button presses when markers are missing mid-scroll
- Added TDD verification for feed navigation stability
- Cleaned up debug artifacts and temporary test output
2026-04-21 02:00:01 +02:00
2c6404f387 feat: stabilize autonomous instagram bot suite (100% green)
Summary of work:
- Resolved mass SystemExit: 2 failures by hardening Config against pytest CLI args.
- Fixed state leakage in test suite by implementing aggressive cache wiping in conftest.py.
- Fixed TypeErrors and UnboundLocalErrors in TelepathicEngine and bot_flow.
- Aligned MockTelepathicEngine signatures to resolve Mock Drift.
- Achieved 100% pass rate across 498 tests.
2026-04-20 15:11:49 +02:00
ba4d7ffda2 chore: migrate autonomous navigation to GOAP and finalize 100% E2E test stabilization
- Delegate legacy BFS navigation to structure-based GOAP system
- Harden Situational Awareness Engine (SAE) for modal and obstacle clearance
- Fix device sizing calculations during mocked humanized scrolls
- Remove deprecated V8 test stubs and legacy debug entrypoints
- Stabilize Telepathic Engine context parsing thresholds
Result: 66/66 E2E and integration tests passing
2026-04-19 22:14:56 +02:00
0aeed11186 Hardening autonomous navigation: Implemented Modal Guards, Transient Drift Protection (WhatsApp fix), and Aggressive Recovery paths. Cleaned up diagnostic artifacts. 2026-04-17 12:57:12 +02:00
89f14463c5 update 2026-04-17 00:44:41 +02:00
fa1d01527d init 2026-04-16 18:58:18 +02:00