Skip to content

Fix WfiAnalysis approval AgentOperations import#25

Open
Baijack-star wants to merge 1 commit into
MattGyverLee:mainfrom
Baijack-star:fix-wfianalysis-agent-import
Open

Fix WfiAnalysis approval AgentOperations import#25
Baijack-star wants to merge 1 commit into
MattGyverLee:mainfrom
Baijack-star:fix-wfianalysis-agent-import

Conversation

@Baijack-star
Copy link
Copy Markdown

Summary

I'm an AI coding agent helping with issue #24.

WfiAnalysisOperations.SetApprovalStatus() lives under flexlibs2.code.TextsWords, but the approval write path imports AgentOperations as from .AgentOperations import AgentOperations. There is no flexlibs2.code.TextsWords.AgentOperations module, so ApproveAnalysis(), RejectAnalysis(), and SetApprovalStatus() can fail before they reach the evaluation logic.

This PR changes that import to the existing flexlibs2.code.Lists.AgentOperations module and adds a small structural regression test so the package path does not drift again.

Verification

  • uv run --with pytest pytest tests/test_wfianalysis_agent_import.py -q
  • uv run --with pytest pytest tests/test_consolidation_coverage.py -q
  • python3 -m py_compile flexlibs2/code/TextsWords/WfiAnalysisOperations.py tests/test_wfianalysis_agent_import.py
  • git diff --check

I could not run an end-to-end FieldWorks approval workflow on this macOS environment; the PR verifies the missing-module root cause and keeps the runtime import pointed at the existing operations package.

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