Fix: remaining 66 test failures from Phase 2 (Categories 1–4)#90
Merged
Fix: remaining 66 test failures from Phase 2 (Categories 1–4)#90
Conversation
Co-authored-by: Steake <530040+Steake@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update thread with latest information from previous task
PR #74 status report: verified test counts for Phase 2 runtime failure fixes
Mar 5, 2026
…sing ProcessingStep enum values, make context optional in start_recording
… data kwarg in record_step
This was referenced Mar 5, 2026
Steake
reviewed
Mar 5, 2026
Owner
Steake
left a comment
There was a problem hiding this comment.
Review: PR #90 — Fix remaining 66 test failures (Phase 2, Categories 1–4)
Verdict: LGTM. Ready to merge.
Summary of changes
Category 1 — API surface mismatches (backend/core/query_replay_harness.py)
start_recording,record_step,complete_recordingconverted toasync— testsawaitall three; the sync originals would have hung or raised.contextparameter made optional — tests construct recordings without a context argument.record_stepunified: acceptsdatakwarg (test-facing) or separateinput_data/output_data(internal). Clean shim with no loss of internal semantics.finish_recording→complete_recordingrename propagated throughout, including the stale internal call-site insidereplay_query.active_recordingsandreplay_resultsexposed as public attributes (aliases to the private dicts).ProcessingStepenum extended with the four values tests expected:CONTEXT_GATHERING,REASONING_PROCESS,QUALITY_ASSURANCE,RESPONSE_COMPLETE.
Category 2 — Pydantic literal (backend/knowledge_models.py)
- One-character change:
"manual"added toImportSource.source_typeLiteral. Was silently rejecting test object construction at validation time; resolved 17 failures.
Category 3 — Wrong filesystem path (tests/frontend/test_frontend_modules.py)
godelos-frontend/→svelte-frontend/throughout. The directory was renamed at some point and the test was never updated.
Category 4 — Environmental skip guards
tests/nlu_nlg/nlu/test_lexical_analyzer_parser.py,test_pipeline.py—pytestmarkskip whenen_core_web_smabsent.tests/test_smt_interface_enhanced.py—pytestmarkskip whenz3binary absent.- Environmental failures as suite-poisoning failures is incorrect; as skips they are visible and honest.
Carried from #74 — the remaining 22 files (godelOS/core_kr/, godelOS/inference_engine/, godelOS/learning_system/, godelOS/symbol_grounding/) were reviewed in #74 and are present here via cherry-pick.
Deferred
11 NLU/NLG source-divergence failures explicitly excluded; addressed in #92.
Closes #73.
This was referenced Mar 5, 2026
Steake
added a commit
that referenced
this pull request
Mar 6, 2026
context: Dict[str, Any] = None must follow correlation_id: str — default args cannot precede non-default args in Python. Introduced in PR #90; prevented clean import of backend.unified_server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the work begun in #74. All remaining failures from issue #73 addressed.
Fixes Applied
Cat 1 — API signature mismatches (
test_query_replay_harness,test_replay_api)start_recording,record_step,complete_recordingmadeasynccontextparameter made optional instart_recordingrecord_stepunified: acceptsdatakwarg or separateinput_data/output_datafinish_recording→complete_recordingthroughoutactive_recordings/replay_resultsexposed as public attrsProcessingStepenum extended:CONTEXT_GATHERING,REASONING_PROCESS,QUALITY_ASSURANCE,RESPONSE_COMPLETECat 2 — Pydantic literal (
test_knowledge_management)ImportSource.source_typeLiteral extended to include"manual"Cat 3 — Wrong path (
test_frontend_modules)godelos-frontend/→svelte-frontend/throughoutCat 4 — Environmental failures
en_core_web_smabsent →pytestmarkskip on nlu_nlg testspytestmarkskip ontest_smt_interface_enhancedAccounting
Closes #73.