Skip to content

fix(songwriting): make object-writer return exactly one pivot sentence - #6150

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/object-writer-one-pivot-e44b
Oct 4, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/object-writer-one-pivot-e44b

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Summary

songwriting:object-writer is asked to return the file path, seven channel grades and one sentence on where its pivot chain landed. In the 2026-10-03 effort comparison (54 runs; object-writing eval cases 1, 2 and 5 to 8; low, medium and high), writers at every level often returned two to four pivot sentences. The orchestrating object-writing skill reads that sentence as a one-line summary, so the extra sentences add noise and make the return unreliable to parse.

Fix

  • agents/object-writer.md: the ## Output contract return item now states that the pivot-chain sentence is the last line of the return and a single sentence (one terminal period, no second sentence, no recap of the chain, nothing after it). It cites fix(songwriting): object-writer returns several pivot sentences where it is asked for one #6031 as the observed stumble.
  • skills/object-writing/evals/evals.json: cases 5, 6, 7 and 8, which grade the return, gain an expectation that the pivot-chain part of the return is exactly one sentence and ends the return. No transcripts are embedded.
  • songwriting 1.6.3 to 1.6.4, with a CHANGELOG entry.

Verification

  • Proxy behavioral check (the eval harness needs claude -p with credentials, which this environment lacks). Fresh-context Claude Opus 5.5 at medium effort (the agent pins opus / medium) was given only the agent body and a dispatch prompt (seed, timer, output path), with no knowledge of what was graded, on the seeds of cases 5 to 8 plus kitchen:
    • This branch's contract: 8 runs, 7 returned exactly one pivot sentence as the last line. The 4 runs whose return text was captured byte for byte to a file were all single-sentence. The one exception was relayed through a summarizing channel, so its exact text is unconfirmed.
    • main's contract: 2 runs, 1 returned three pivot sentences ("The chain started at soggy beer-carton cardboard... It went through... It ended far from the seed..."), reproducing fix(songwriting): object-writer returns several pivot sentences where it is asked for one #6031.
    • Not a substitute for the issue's harness rerun of cases 1, 2 and 5 to 8, which is still owed wherever the CLI is authenticated.
  • check-evals-quality.sh on the evals file: PASS, 0 warnings.
  • scripts/check-changed-skills.sh origin/main: object-writing PASS (0 errors; 1 pre-existing no-Gotchas warning).
  • scripts/check-changelog-parity.sh --check, --check-order, --check-bump origin/main, --check-preserved origin/main: all pass.
  • node scripts/validate-plugin-contracts.mjs: pass. markdownlint-cli2 on the changed markdown: 0 issues. datamuse.test.sh (the plugin's only test suite): 99/99.

Related

Closes #6031

Open in Web Open in Cursor 

@kyle-sexton
kyle-sexton marked this pull request as ready for review October 4, 2026 02:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 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-04T02:17:37.234229Z bc4f68f Draft marked ready
ℹ️ 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.

@claude

claude Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 45s —— View job


Security review — /review:security-review

Result: skip gate triggered — no security-relevant surface.

This PR touches only:

  • plugins/songwriting/.claude-plugin/plugin.json — version bump (1.6.3 → 1.6.4)
  • plugins/songwriting/CHANGELOG.md — changelog entry
  • plugins/songwriting/agents/object-writer.md — adds a constraint to the agent's output contract (pivot-chain sentence must be exactly one sentence, last line, nothing after it)
  • plugins/songwriting/skills/object-writing/evals/evals.json — adds matching eval expectations to cases 5–8

All changes are purely additive prompt/eval text for a songwriting agent: no code execution, no auth/authz logic, no injection surfaces (command/SQL/path/template), no secret or token handling, and no GitHub Actions workflow changes.

I also checked this diff against the instruction-surface-deletion lens (removing/narrowing/softening a standing guardrail): it doesn't apply here — the diff only strengthens an existing output-contract rule and adds eval coverage for it; nothing is deleted, narrowed, or softened.

No security issues found. Nothing to post as inline comments.

@claude

claude Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 49s —— View job


Code review (/review:code-review)

  • Gather context (PR diff, changed files, CLAUDE.md/AGENTS.md rules)
  • Understand the request (invoke /review:code-review per custom instructions)
  • Review agents/object-writer.md contract change
  • Review skills/object-writing/evals/evals.json changes
  • Review CHANGELOG.md / plugin.json version bump
  • Post findings

No inline comments posted — nothing met the high-signal bar for this lane.

Summary: This is a narrow, correctly-scoped fix.

  • agents/object-writer.md: the added sentence in the ## Output contract item 2 clearly states the one-sentence/last-line constraint, matches the surrounding bold-emphasis style, and cites the observed-stumble issue (fix(songwriting): object-writer returns several pivot sentences where it is asked for one #6031) per this repo's instruction-economy rule.
  • skills/object-writing/evals/evals.json: the new expectation is added to all four return-grading cases (5–8), worded consistently (adapted correctly for case 8's two-agent dispatch), and is self-consistent JSON — no transcript content, consistent with the eval-case-transcripts rule.
  • CHANGELOG.md / plugin.json: the 1.6.3 → 1.6.4 patch bump and changelog entry follow this plugin's established Keep a Changelog format exactly (bold lead-in, issue link, follow-up detail), dated correctly.

Note: I did not independently re-run check-evals-quality.sh, check-changed-skills.sh, check-changelog-parity.sh, or the plugin's test suite in this sandbox (bash execution here is restricted to simple, unchained commands) — the PR body's verification results for those are author-claimed and unverified by me. Visual inspection of the diff found no correctness issues.

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

claude-security-review has reviewed this pull request through bc4f68f; a later push is reviewed from there.

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

claude-review has reviewed this pull request through bc4f68f; a later push is reviewed from there.

@cursor
cursor Bot added this pull request to the merge queue Oct 4, 2026
Merged via the queue into main with commit e003aef Oct 4, 2026
2 checks passed
@cursor
cursor Bot deleted the cursor/object-writer-one-pivot-e44b branch October 4, 2026 02:39
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.

fix(songwriting): object-writer returns several pivot sentences where it is asked for one

2 participants