Skip to content

Add ordered flashcard stages - #6

Merged
backslash-f merged 2 commits into
mainfrom
codex/ordered-card-stages
Sep 20, 2026
Merged

backslash-f merged 2 commits into
mainfrom
codex/ordered-card-stages

Conversation

@backslash-f

Copy link
Copy Markdown
Contributor

Summary

  • add stable host-authored stage identities and ordered prompt/answer stages
  • validate nonempty stage sequences and reject duplicate stage identities during construction and decoding
  • preserve the existing simple-card initializer and first-stage prompt/answer accessors
  • preserve original single-card Codable interoperability while encoding the new staged representation
  • document staged cards and keep the existing ThreeChoiceSession behavior on each card's first stage
  • sync AgentGuidelines 0.0.34 with exact tagged-tree provenance

Validation

  • AgentGuidelines/Scripts/swift_format.sh format-and-lint Package.swift Sources Tests
  • AgentGuidelines/Scripts/swift_format.sh lint-strict Package.swift Sources Tests
  • swift build
  • swift test — 28 tests / 35 parameterized executions, zero failures
  • AgentGuidelines/Scripts/validate_consumer_setup.swift --consumer-root . --require-swift-format
  • AgentGuidelines/Scripts/validate_guidelines.swift AgentGuidelines
  • swift package dump-package — Swift 6 language mode plus warning/error and required upcoming-feature settings verified for library and test targets
  • .agents/skills/agent-guidelines-audit/scripts/check_markdown_wrapping.swift README.md AGENTS.md Sources/FlashcardKit/FlashcardKit.docc
  • git diff --check
  • AgentGuidelines subtree tree b40e2c75de8681ade6a5ae97ad3ddd8a28f3adda exactly matches tag 0.0.34

Audit notes

  • No dependency graph changes.
  • The new types are pure validated values with no lifecycle or operational boundary, so they intentionally emit no runtime logs.
  • FlashcardKit's existing 🃏 registry identity, AppLogger linkage, and com.thatfactory.flashcardkit subsystem remain consistent.

@backslash-f
backslash-f marked this pull request as ready for review September 20, 2026 13:08
@backslash-f
backslash-f merged commit cabf7e8 into main Sep 20, 2026
2 checks passed
@backslash-f
backslash-f deleted the codex/ordered-card-stages branch September 20, 2026 13:20
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