Repository navigation
fix: restore offline workflow, approval-first proposals, and 5-state Ollama engine - #2
Merged
Merged
Conversation
…ackaging lifecycle test
…se banner, filter rejected/failed from review queue
… and add *.exe to gitignore
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.
SortSense — Verification & Final Restoration Report
1. Root Cause Analysis (Confirmed & Corrected from FIXES.md)
DOC-WA0879845.pdf) scored 0.15–0.25, dropping to the review queue without intelligent categorization. The 0.85 threshold was never the problem—the evidence scoring lacked subject intelligence.organizer.decide()discarded content-derived filenames: When an unclassified document was analyzed,decide()rebuilt the filename fromdocument_type, suggestingUnclassified.txt._safe_move, bypassingSafeFileExecutorand creating no history records (disabling Undo).Settingsmodel inapp/config.pywas missingollama_timeout, causing live inference via_make_client()to crash withAttributeError.2. Files Modified & Changes Beyond the ZIP
Beyond the files integrated from
SortSense-fixed.zip, the following critical fixes and improvements were engineered:app/config.py: Addedollama_timeout: float = 120.0(withSORTSENSE_OLLAMA_TIMEOUT/FILEMIND_OLLAMA_TIMEOUTfallback) to resolveAttributeErrorduring real Gemma client initialization.app/gui.py:save_settings(): Fixed race condition and GUI freeze by stopping and joining the background observer in a daemon worker thread before restarting._open_proposals(): Filtered outREJECTEDandFAILEDitems so rejected proposals do not reappear upon queue refresh.Pendingtracks unapproved/unexecuted proposals, whileProcessedincrements strictly on successful execution.app/main.py: Replaced outdated "FileMind" branding with "SortSense — local AI file organizer" in banner and docstrings.sortsense.spec: Added'pypdf'tohidden_importsto preventModuleNotFoundErrorin packaged standalone binary..github/workflows/ci.yml:py -m pytestwith explicitpython -m pytest(avoiding runner Python 3.15 fallback).upload-artifact@v4step publishingdist/SortSense/asSortSense-Windows-exe.fix/sortsense-regression-restoration..gitignore: Added.venv*/,*.pyo,pytest_*.txt, and*.exe.RELEASE_NOTES_DRAFT.md: Pre-release v0.1-beta release notes draft.INSTALL.md: Testing and installation guide for multi-PC evaluation.3. Verified Working Features (With Concrete Evidence)
Downloads/remained untouched until explicit approval.Downloads/DOC-WA0879845.pdfto custom folderCompetitive Programming/Graph_Algorithms_BFS_DFS.pdf.DOC-WA0926714.pdfleft it completely untouched inDownloads/while approved files were moved.Downloads/with their original opaque filenames preserved.dist/SortSense/SortSense.exe(14.8 MB), passed standalone smoke test with exit code 0 ([SMOKE TEST] ALL WORKFLOWS PASSED CLEANLY.).44267894064passed bothTest Suite (Python 3.11)andWindows Desktop Packaging, uploadingSortSense-Windows-exeartifact.4. Deterministic-Mode Demo on the 12 Fixture Files
Ran with Ollama offline across mixed
.pdf,.md, and.txtfiles:5. Ollama & Gemma Engine State Verification
Each of the 5 engine states was tested directly against
OllamaServiceManager.engine_state():('deterministic', 'Deterministic Mode (Ollama not installed)')('ollama_unavailable', 'Ollama Unavailable - using Deterministic Mode')('model_missing', 'Ollama Available / Model Missing (nonexistent-model:99b)')('gemma_active', 'Gemma AI Active (gemma4:e4b)')('request_failed', 'Model Request Failed - using Deterministic Mode')Real Inference Output (
tests.smoke_test_livewithgemma4:e4bon CPU):test_files/filemind_sample.pdf(69 chars, 1 page)Smoke Test VerificationTestingFileMind_SmokeTest_PDF.txtA smoke-test PDF used to verify the end-to-end PDF ingestion process for FileMind.0.95VALID: False,ISSUES: ["new_filename 'FileMind_SmokeTest_PDF.txt' does not end with correct extension '.pdf'."](Safeguard caught extension mismatch and prevented unsafe rename).6. Automated Test Results
test_low_confidence_document_routed_to_review_despite_rule_match).7. Git & Repository Status
fix/sortsense-regression-restoration6e80bcd(ci: ensure python -m executable invocation in GitHub Actions workflow and add *.exe to gitignore)git status).main(not merged, awaiting approval).RELEASE_NOTES_DRAFT.md).8. Remaining Limitations & Non-Verified Items
emptywith original filename kept for manual review.windows-latestvirtual runner. A bare Windows machine with zero developer runtimes has not been tested locally.