Skip to content

Problem Framing LLM Implementation#9

Merged
davincios merged 9 commits intomainfrom
feature/problem-framing
Jan 24, 2026
Merged

Problem Framing LLM Implementation#9
davincios merged 9 commits intomainfrom
feature/problem-framing

Conversation

@davincios
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates project documentation around “problem framing” and testing guidance, positioning frame_problem as an MVP entry point for future LLM-oriented context enrichment.

Changes:

  • Updated node_frame_problem docstring to describe MVP problem-statement framing and future enrichment ideas.
  • Added a “Test Writing Approach” section to AGENTS.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/agent/nodes/frame_problem.py Updates documentation for the frame-problem node (no functional behavior change).
AGENTS.md Adds testing guidance for contributors/assistants.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/agent/nodes/frame_problem.py Outdated
Comment on lines 9 to 17
Current MVP functionality:
- Write a simple problem statement for the LLMs to use as input.

Extend in the future to add:
- Formulate investigation goals
- Service Graph lookup
- Team/ownership enrichment
"""
return {}
Copy link

Copilot AI Jan 24, 2026

Choose a reason for hiding this comment

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

The docstring states the node's MVP "writes a simple problem statement" for LLM input, but the function still returns an empty dict and does not update the investigation state. This is misleading for future maintainers and does not match the PR title. Either implement the described behavior (e.g., populate an existing state field such as problem_md or introduce a dedicated field) or update the docstring/PR title to reflect that this node is currently a no-op.

Copilot uses AI. Check for mistakes.
Comment thread src/agent/nodes/frame_problem.py Outdated
- Write a simple problem statement for the LLMs to use as input.

Extend in the future to add:
- Formulate investigation goals
Copy link

Copilot AI Jan 24, 2026

Choose a reason for hiding this comment

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

There is trailing whitespace at the end of this line (after "goals"). Please remove it to avoid noisy diffs and potential lint/pre-commit failures.

Suggested change
- Formulate investigation goals
- Formulate investigation goals

Copilot uses AI. Check for mistakes.
Comment thread AGENTS.md Outdated

# Test Writing Approach:
- Write tests always as integration tests, never use mock services.
- Write tests in the same file as the code they are testing or if the file is too large, create a new file with the same name as the code file but with _test.py suffix in the same directory.
Copy link

Copilot AI Jan 24, 2026

Choose a reason for hiding this comment

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

The testing guidance here conflicts with the current pytest collection settings: pytest.ini uses python_files = test_*.py, so tests written in the same file as production code (under src/) or named with an _test.py suffix (e.g., foo_test.py) will not be discovered by pytest. Please align the guidance with the repo’s pytest configuration (recommend tests/test_*.py or update pytest.ini to also collect *_test.py if that’s the desired convention).

Suggested change
- Write tests in the same file as the code they are testing or if the file is too large, create a new file with the same name as the code file but with _test.py suffix in the same directory.
- For Python, place tests under the `tests/` directory and name files `test_*.py` so they are discovered by pytest (per `pytest.ini`).

Copilot uses AI. Check for mistakes.
Comment thread AGENTS.md
- Never commit API keys or secrets

# Test Writing Approach:
- Write tests always as integration tests, never use mock services.
Copy link

Copilot AI Jan 24, 2026

Choose a reason for hiding this comment

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

Trailing whitespace at the end of this line (after the period). Please remove it.

Suggested change
- Write tests always as integration tests, never use mock services.
- Write tests always as integration tests, never use mock services.

Copilot uses AI. Check for mistakes.
@davincios davincios merged commit ffb8771 into main Jan 24, 2026
2 checks passed
@davincios davincios deleted the feature/problem-framing branch January 24, 2026 17:57
VaibhavUpreti pushed a commit that referenced this pull request Mar 13, 2026
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.

2 participants