Skip to content

fix(skills): remove hard-coded attempt and correction caps - #212

Closed
1wgrumph wants to merge 2 commits into
mainfrom
fix/remove-attempt-cap
Closed

1wgrumph wants to merge 2 commits into
mainfrom
fix/remove-attempt-cap

Conversation

@1wgrumph

@1wgrumph 1wgrumph commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removes the last hard-coded correction cap. Refs #211.

main already removed the skill-text caps ("at most three attempts", "third failed correction", MAX_CORRECTIONS = 3) in 2.0.0 (#217). After merging main, this PR's remaining change is the recovery contract-test model:

  • test/recovery.test.mjs: applyCorrection no longer forces OWNER_DECISION_REQUIRED on a 3rd correction or rejects a 4th. A correction with new evidence returns READY; the test proves the 3rd and 4th do. The counter is a record, not a limit, matching task-state.md on main (only an owner-supplied allowance caps corrections).
  • CHANGELOG.md: Unreleased entry.

Issue #211 stays open for its profile-driven configurable-limit item.

Verification

  • node --test test/*.test.mjs: 966 pass, 0 fail
  • python3 test/schema-validation.py: passed=319 failed=0
  • node --test test/native/codex-hook-discovery.test.mjs: 3 pass, 0 fail

🤖 Generated with Claude Code

https://claude.ai/code/session_012NmRjMTF9dGTPtnTZ8JLN5

Role skills, task-state references and contract-test models stated a
literal three-attempt cap that no profile setting could change. Keep the
new-evidence retry rule and round budgets; a recorded correction
allowance is now the only cap.

Refs #211
Resolve conflicts in favor of main: PR #217 (2.0.0) already removed the
skill-text caps and MAX_CORRECTIONS. Keep the recovery test-model change,
the last remaining hard-coded correction cap, and reword the changelog.
1wgrumph pushed a commit that referenced this pull request Oct 21, 2026
The recovery contract-test model still forced OWNER_DECISION_REQUIRED on a
third correction and rejected a fourth. Skill-text caps were removed in
2.0.0 (#217); task-state.md now caps corrections only by an owner-supplied
allowance. A correction with new evidence now returns READY.

Refs #211. Supersedes #212.
@1wgrumph

Copy link
Copy Markdown
Contributor Author

Superseded by #224. After main moved (2.0.0, #217), only the recovery test-model change was left, and GitHub could not rebase-merge this branch. #224 carries that net change and has merged.

@1wgrumph 1wgrumph closed this Oct 21, 2026
@1wgrumph
1wgrumph deleted the fix/remove-attempt-cap branch October 21, 2026 20:43
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