Skip to content

feat: explain the answer rules to the model - #39

Merged
hawkxdev merged 2 commits into
mainfrom
opencode/issue36-20260929194734
Sep 29, 2026
Merged

hawkxdev merged 2 commits into
mainfrom
opencode/issue36-20260929194734

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What changed

The system message now states all four answer rules as separate lines after the knowledge-base block. It explains the reply language and source of facts, forbidden stems including negations, product selection for the upsell, and the meaning of kb_match. The rest of the messages is unchanged. The issue-specific acceptance marker is removed.

How verified

All six commands passed on integrated head e7d1e56, including the web page:

  • uv sync --locked: resolved 37 packages, audited 35.
  • uv run ruff check .: all checks passed.
  • uv run ruff format --check .: 53 files already formatted.
  • uv run mypy .: no issues in 37 source files.
  • uv run pytest --cov: 212 passed; coverage 99.56%.
  • uv run python scripts/check_conventions.py: 37 files, 0 violations.

The four acceptance cases fail without the implementation and pass with it. Ten mutations of this implementation reproduced exactly the predicted failures: each missing rule and each rule moved only before the base fails its own case, moving all rules fails four, and joining the first two fails two. The restored full suite passed; the missing-anchor control returned NOT-RUN.

No additional tests were needed: #36 acceptance covers the new rules, and #16 acceptance covers the unchanged messages, base, disclaimer and customer delimiters.

Out of scope

The service retry message, model client, provider selection and dependencies are unchanged. Live provider evaluation is separate from this prompt contract.

Closes #36

@opencode-agent
opencode-agent Bot requested a review from hawkxdev as a code owner September 29, 2026 19:49
@hawkxdev hawkxdev added the agent-authored Pull request opened by an agent label Sep 29, 2026
@hawkxdev hawkxdev changed the title Issue #36 done; all six checks pass. feat: explain the answer rules to the model Sep 29, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T19:56:48.321951Z e7d1e56 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: e7d1e562af

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@hawkxdev hawkxdev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Verified all acceptance criteria and the unchanged-message checks, all six commands on the integrated head, and ten precise mutations with restored sources. No blocking finding.

@hawkxdev
hawkxdev merged commit 8bd39fc into main Sep 29, 2026
6 checks passed
@hawkxdev
hawkxdev deleted the opencode/issue36-20260929194734 branch September 29, 2026 19:59
hawkxdev added a commit that referenced this pull request Oct 8, 2026
Co-authored-by: Sergey Sokolkin <hawkxdev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Pull request opened by an agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: explain the answer rules to the model

1 participant