Skip to content

Rename slotSnapshot→fieldSnapshot and missingSlots→missingFields in proposal entity data#73

Open
MaxLinCode wants to merge 1 commit intoclaude/phase1-pending-write-operationfrom
claude/entity-slot-rename
Open

Rename slotSnapshot→fieldSnapshot and missingSlots→missingFields in proposal entity data#73
MaxLinCode wants to merge 1 commit intoclaude/phase1-pending-write-operationfrom
claude/entity-slot-rename

Conversation

@MaxLinCode
Copy link
Copy Markdown
Owner

Summary

  • Renames missingSlotsmissingFields and slotSnapshotfieldSnapshot in the proposal_option entity schema to align with the field-based model from phase 1
  • Removes the flattenScheduleFields adapter in proposal-rules.ts — now compares scheduleFields directly against the snapshot
  • Separates targetEntityId from schedule fields in synthesize-mutation-text.ts since target is no longer part of scheduleFields (it lives in targetRef on PendingWriteOperation)
  • Updates discourse-state.ts comment to note resolvedSlotsSchema is retained only for slot-extractor schemas (phase 2 scope)

Test plan

  • pnpm --filter @atlas/core typecheck passes
  • pnpm --filter @atlas/core test passes (125 tests)
  • Verify apps/web and packages/db tests are updated in follow-up (these still reference old field names)

🤖 Generated with Claude Code

…roposal entity data

Aligns proposal_option entity schema with the field-based model introduced
in phase 1. Also separates targetEntityId from scheduleFields in
synthesize-mutation-text since target is no longer part of the schedule
fields group (it lives in targetRef on PendingWriteOperation).

- index.ts: missingSlots→missingFields, slotSnapshot→fieldSnapshot
- proposal-rules.ts: remove flattenScheduleFields adapter, compare
  scheduleFields directly, rename deriveSlotsCompatibility→deriveFieldsCompatibility
- synthesize-mutation-text.ts: accept resolvedFields + targetEntityId,
  rename internal helpers to field-based names
- discourse-state.ts: update comment on resolvedSlotsSchema retention
- All tests updated to match new schema shape

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
atlas-web Ignored Ignored Mar 28, 2026 10:10pm

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