Skip to content

docs: correct the GMI paper's T1 grading, preset moods and gate re-run cap - #385

Merged
jddunn merged 1 commit into
masterfrom
docs/gmi-paper-grading-mood-gate-cap
Oct 13, 2026
Merged

jddunn merged 1 commit into
masterfrom
docs/gmi-paper-grading-mood-gate-cap

Conversation

@jddunn

@jddunn jddunn commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Corrects three statements in the method draft of the GMI versus agent() paper, each read against what it describes.

  • Section 4.3 and Appendix B said that T1 answers are graded with each dataset's own grading prompt. The harness grades both datasets with LongMemEval's grading prompts, chosen by question type, and gives a LOCOMO question the prompt of the nearest type: a temporal question the temporal-reasoning prompt, an adversarial question the abstention prompt, and every other question the multi-session prompt. Section 4.3 now says so and cites [2] for the prompts (LongMemEval, section 3.3 "Question Answering" and appendix A.4 "Evaluation Metric Building"); Appendix B's t1-grade row points to it, and references.md adds that part of the source to the entry.
  • Section 4.1 said that the frustration preset sets the empathetic mood and the confusion preset the analytical one. The presets' prompts propose those moods (metaprompt_presets.ts), and a firing sets the mood its metaprompt's reply names when the reply names one of the GMI's moods (MetapromptExecutor.ts). The section now says so: C1's two elements add their text only while the GMI holds their mood.
  • Section 4.7 ran a failed validity gate again within a $60 cap, a figure the design no longer has. The re-run now counts against the stage's spending cap, which Section 5.4 sets.

Linked issues

Follows #349, #353 and #374.

Type of change

  • Bug fix
  • Feature
  • Performance
  • Documentation
  • Refactor
  • Tests
  • Build or CI

How this was verified

CI only; nothing was run on a workstation.

  • The harness's T1 grader was read for the prompt each item gets, and the LongMemEval paper's HTML version for its sections 3.3 and A.4 (Figure 10 gives the judge's instructions by question type).
  • The two presets and the metaprompt executor were read at master for the moods they propose and the mood a reply sets.
  • The reference list runs 1 to 30 in both files, with the same URLs, read dates, versions and titles, and the "Cited in" line of [2] names every section that cites it.
  • Every check of the repository's workflows on this pull request, among them Test & Lint.
  • The change touches four lines of docs/research/gmi-vs-agent/paper.md and one line of docs/research/gmi-vs-agent/references.md. The docs site does not publish that directory, and the study page does not change, so no site deploy follows.

Migration notes

None.

Checklist

  • Tests cover the changed behavior. No behavior changes.
  • Docs are updated.
  • The title follows Conventional Commits, with ! before the colon for a change that breaks users (feat!: or feat(api)!:).
  • No secrets or private data are included.
  • Every automated review thread is settled (how).
  • I have read this change and can explain every line.

…n cap

Section 4.3 and Appendix B said that T1 answers are graded with each dataset's own grading prompt. The harness grades both datasets with LongMemEval's grading prompts, chosen by question type, and gives a LOCOMO question the prompt of the nearest type: a temporal question the temporal-reasoning prompt, an adversarial question the abstention prompt, and every other question the multi-session prompt. The sentences now say so, citing sections 3.3 and A.4 of the LongMemEval paper.

Section 4.1 said that the frustration preset sets the empathetic mood and the confusion preset the analytical one. The presets' prompts propose those moods, and a firing sets the mood its metaprompt's reply names when the reply names one of the GMI's moods, so C1's two elements add their text only while the GMI holds their mood.

Section 4.7 ran a failed gate again within a $60 cap, a figure the design no longer has; the re-run counts against the stage's spending cap of Section 5.4.
@jddunn
jddunn requested a review from Victor-Evogor as a code owner October 13, 2026 03:12
@sourcery-ai

sourcery-ai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Sorry @jddunn, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 4 days and 3 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-10-13T03:15:09.671772Z 9f2deee PR opened
ℹ️ 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.

@sourcery-ai

sourcery-ai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the GMI paper draft to match the harness and AgentOS implementation: T1 grading now follows LongMemEval’s type-specific prompts, preset mood gating reflects metaprompt behavior, and validity-gate reruns use the stage spending cap rather than a fixed $60 limit.

Sequence diagram for GMI mood-gated prompt elements

sequenceDiagram
    participant User
    participant GMI
    participant MetapromptExecutor
    participant MoodElement

    User->>GMI: processRequest()
    GMI->>MetapromptExecutor: metaprompt execution
    MetapromptExecutor-->>GMI: reply naming a GMI mood
    alt reply names the element mood
        GMI->>MoodElement: add contextual text
    else mood does not match
        GMI-->>MoodElement: omit contextual text
    end
    GMI-->>User: generated reply
Loading

Sequence diagram for type-specific T1 grading

sequenceDiagram
    participant Harness
    participant Judge
    participant LongMemEval

    Harness->>Judge: submit T1 answer and gold answer
    Harness->>LongMemEval: select grading prompt by question type
    LongMemEval-->>Harness: temporal-reasoning, abstention, or multi-session prompt
    Harness->>Judge: grade with selected prompt
    Judge-->>Harness: T1 grade
    opt seeded 20% regrade
        Harness->>Judge: regrade T1 answer
    end
Loading

File-Level Changes

Change Details Files
Corrected the documented T1 grading protocol and its supporting citation.
  • Specify that both datasets use LongMemEval grading prompts selected by question type.
  • Document LOCOMO’s mapping to temporal, abstention, or multi-session prompts.
  • Align the Appendix B grading-row description and reference metadata with Section 4.3.
docs/research/gmi-vs-agent/paper.md
docs/research/gmi-vs-agent/references.md
Corrected the description of how preset moods control C1’s contextual prompt elements.
  • Describe frustration and confusion presets by the moods their prompts propose.
  • Clarify that a metaprompt firing activates an element only when its reply names the corresponding GMI mood.
docs/research/gmi-vs-agent/paper.md
Removed the obsolete fixed dollar cap for validity-gate reruns.
  • Make failed gate reruns consume the stage spending cap defined in Section 5.4.
docs/research/gmi-vs-agent/paper.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: framerslab/agentos/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Team
  • Run ID: f6a6f639-736e-4cd8-9a6c-31044d4d27dc
📥 Commits

Reviewing files that changed from the base of the PR and between 0a7da7d and 9f2deee.

📒 Files selected for processing (2)
  • docs/research/gmi-vs-agent/paper.md
  • docs/research/gmi-vs-agent/references.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

📝 Walkthrough

The research paper updates its mood criteria, grading prompts, and validity-gate retry limit. The grading rubric and LongMemEval reference entry also describe and cite the question-type grading prompts.

Changes: Research protocol documentation

Layer / File(s) Summary
Evaluation protocol details
docs/research/gmi-vs-agent/paper.md
C1 adds mood elements only when metaprompt replies name a matching mood. T1 uses LongMemEval prompts selected by question type, with specified mappings for LOCOMO. The validity-gate retry limit now uses the stage spending cap.
Rubric and reference alignment
docs/research/gmi-vs-agent/paper.md, docs/research/gmi-vs-agent/references.md
The t1-grade rubric description specifies the LongMemEval prompt for the question type. The reference entry adds the related claim and supporting citations.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 9f2de

The documentation changes are mergeable with no verified correctness or operational risk.

Pre-merge checks · Passed 5
Passed Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly summarizes the three documentation corrections: T1 grading, preset moods, and the gate re-run spending cap. It is concise and uses a valid Conventional Commits-style prefix.
Description check Passed The description follows the repository template. It explains the changes, lists linked issues, identifies the change type, documents CI-only verification, provides migration notes, and includes the ch…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@jddunn
jddunn merged commit 4f649e6 into master Oct 13, 2026
14 of 15 checks passed
@jddunn
jddunn deleted the docs/gmi-paper-grading-mood-gate-cap branch October 13, 2026 03:35
github-actions Bot pushed a commit that referenced this pull request Oct 13, 2026
## [0.13.86](v0.13.85...v0.13.86) (2026-10-13)

### fix

* **guardrails:** a blocked tool call is refused before it runs, and a blocked external call leaves the saved pause (#384) ([dcfe023](dcfe023))
* **meetings:** the channel's follow-ups: lease, delivery, store and transport edge cases (#386) ([d925ceb](d925ceb))

### docs

* correct the GMI paper's T1 grading, preset moods and gate re-run cap (#385) ([4f649e6](4f649e6))
* fourteenth round of audit follow-ups (the P2 leftovers of the cold reads) (#377) ([0a7da7d](0a7da7d))
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