Skip to content

L1-06 Data contracts from any stack #478

Done

Description

@sknampally

Part of #472, Release 1.1: any legacy codebase.

Specification: docs/any-legacy.md, section 5.4

Done when: SQL DDL is read with no model; entity classes by a checked model step; the target stack's types apply as today

Prepared with AI assistance.

Activity

  1. added
    type:story
    on Nov 27, 2026
  2. sknampally commented on Nov 28, 2026

    @sknampally
    CollaboratorAuthor

    Delivered in: the release 1.1 pull request from l1/any-legacy (stacked on #494).

    Prepared with AI assistance.

  3. sknampally commented on Nov 28, 2026

    @sknampally
    CollaboratorAuthor

    Forward-Engineering Review Feedback (on develop)

    In src/reframe/design/schema.py, uses() sets non-mainframe contract roles to "table" (from SQL DDL) or "entity" (from ORM entity classes).

    However, src/reframe/design/package.py and contracts_md() only treat b["role"] == "file record" as persistent data models:

    • tasks() (package.py:163-168) puts "table" and "entity" contracts under "Working records it passes or builds".
    • contracts_md() (package.py:253-256) skips rendering the field/column table in every capability's design.md / spec.md / plan.md and prints "- <NAME> (working storage of ...): see data-contracts.md.".

    Suggested changes

    • Update package.py (tasks() and contracts_md()) so b["role"] in ("file record", "table", "entity") are treated as persistent data records and rendered inline with their typed columns/fields in capability specs (also tracked in P4-08 The AI-DLC package #394).
    • Add a test verifying that a non-mainframe capability using "table" and "entity" contracts renders its full contract table in design.md/spec.md and classifies them as persistent records rather than working storage.
  4. sknampally commented on Nov 29, 2026

    @sknampally
    CollaboratorAuthor

    Every point in the review is fixed in #499, which is waiting for your review: see its table for each point and the fix. CardDemo's example output will show the changes after its next design round. Prepared with AI assistance.

  5. sknampally commented on Nov 29, 2026

    @sknampally
    CollaboratorAuthor

    Done: the review's fixes merged in #499.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions