fix(sdk): pin memory in STEP_COMMON_FIELDS — main's suite is red - #223
Conversation
…gain main is red. #221 added `memory` to STEP_COMMON_FIELDS (packages/sdk/src/step-fields.ts:25) without updating the pin that guards it: FAIL tests/verb-field-lint.test.ts > closed per-verb step fields > pins the per-verb descriptor and generates every foreign-field pair from it AssertionError: expected [ 'id', 'type', 'dependsOn', …(3) ] to deeply equal [ 'id', 'type', 'dependsOn', …(2) ] (run 34098150100, main @ 6394a2e.) The pin exists so a change to the closed vocabulary "cannot be silently undone" — it is an acknowledgement gate, not a duplicate of the source. Adding `memory` to it is the acknowledgement, and the comment records why the field is common rather than verb-specific: any step kind may declare a pack, so it generates no foreign-field pairs. This restores the gate rather than weakening it: the test still fails if the descriptor changes again without a matching edit here. Verified locally: vitest tests/verb-field-lint.test.ts 78 passed full SDK suite 684 passed, 3 skipped, 0 failed The branch CI for #221 was already failing this before it merged (run 34097610746 on feat/step-memory-220); the merge carried the red onto main. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FtQSAcGDta5VH9xiZFT4sR
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ed again Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FtQSAcGDta5VH9xiZFT4sR
maintainability lens — PASSMaintainability review — PR #223ContextFix commit unblocks FindingsNotes (non-blocking):
Concern (worth a follow-up, not this PR):
Positives:
No blockers. Two low-cost improvements suggested (comment trim, add REVIEW_PASSED |
history lens — PASSBlockers: none. PR #223 introduces no blocker under the three HISTORY criteria. At packages/sdk/tests/verb-field-lint.test.ts, new lines 182–185 acknowledge The same lines introduce no new contradiction with RFC-0001. Gate 5 explicitly describes step-declared Concern — evidence completeness, nonblocking: commit Notes: the commit’s stated file scope matches the diff. Literal command: Captured output:
REVIEW_PASSED |
structure lens — PASS$ git log --oneline -5; echo "---"; git branch --show-current
|
|
🎯 review-swarm: PASSED (M:pass H:pass S:pass) Lens transcripts posted as sibling comments above. |
|
Independent 3-lens gate, run against
The maintainability lens made a point worth keeping: Merging: main has been red since 07:58Z and this is the fix. |
…sion at 15G Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FtQSAcGDta5VH9xiZFT4sR
main is red. Run 34098150100 on
6394a2e9:#221 added
memorytoSTEP_COMMON_FIELDS(packages/sdk/src/step-fields.ts:25) without updating the pin in the test that guards that list.The pin is an acknowledgement gate, not a duplicate of the source — its own comment says it exists so the change "cannot be silently undone". Adding
memoryto it is the acknowledgement, with a note on why the field is common rather than verb-specific: any step kind may declare a pack, so it generates no foreign-field pairs. The gate still fires if the descriptor moves again without a matching edit.Verified
Worth noting separately
#221's own branch CI was already failing this — run 34097610746 on
feat/step-memory-220, 6 minutes before the merge — and it merged anyway, carrying the red onto main. That is the second time in this session an auto-merge has acted while the gate was not satisfied; the first was #215 merging with defects a lens had named, tracked as #218. Whatever is deciding to merge is not readinglinux-x64-artifact.I would treat that as the more important finding than this one-line fix.
Refs #221, #218