Skip to content

SOF-7926 - #408

Open
k0stik wants to merge 20 commits into
devfrom
chore/SOF-7926
Open

SOF-7926#408
k0stik wants to merge 20 commits into
devfrom
chore/SOF-7926

Conversation

@k0stik

@k0stik k0stik commented Jun 23, 2026

Copy link
Copy Markdown
Member

No description provided.

k0stik and others added 2 commits June 23, 2026 15:41
Extract hash into a reusable hashed schema and compose bankable from hashed plus exabyteId.

Co-authored-by: Cursor <cursoragent@cursor.com>
Compose hash via system/hashed at consumer schemas instead of allOf in bankable.

Co-authored-by: Cursor <cursoragent@cursor.com>
k0stik and others added 7 commits June 24, 2026 17:00
Material entities now compose system/hashed.json alongside named/defaultable
in-memory mixins so MaterialSchema includes the persisted hash field.

Co-authored-by: Cursor <cursoragent@cursor.com>
name and status are already provided via named_defaultable and status
refs in workflow/unit/base.json; removing them from mixins/base avoids
duplicate getters in generated schema mixins.

Co-authored-by: Cursor <cursoragent@cursor.com>
unit-specific mixins already declare literal type values; keeping type
off the shared base mixin avoids TS interface merge conflicts in wode.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove required hash from material.json and add material_hashed.json composing material + system/hashed for persisted hashed entities.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
}
},
"required": [
"type",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep this base "as is"

k0stik added 5 commits August 4, 2026 01:50
Introduce basis_constrained so materials can require atomic constraints on basis, and compose material_constrained / material_constrained_hashed like material_hashed.
"enableRender": {
"description": "Whether Rupy should attempt to use Jinja templating to add context variables into the unit",
"type": "boolean"
},

@timurbazhirov timurbazhirov Aug 5, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a "description" field at the top level to explain:

(1) type is necessary field, but these need to be defined as consts/enums in specific "child" instances
(2) replace reference to "Rupy" with "render during workflow/job runtime"

"$ref": "system/hashed.json"
}
]
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider:

material_constrained -> material_with_protoproperties
material_hashed -> material_hashed
material_constrained_hashed -> material_with_protoproperties_hashed

k0stik and others added 6 commits August 6, 2026 19:36
Keep MaterialSchema free of hashing fields so MaterialHashed /
MaterialConstrainedHashed own scaledHash via the hashed schema.

Co-authored-by: Cursor <cursoragent@cursor.com>
Throw when a schema $id is not registered so consumers do not need a local resolve helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
Clarify that these variants carry a constrained basis (and optional hash), not a separate "constrained material" domain concept.

Co-authored-by: Cursor <cursoragent@cursor.com>
Address review feedback preferring "enhanced" terminology.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Drop null/"" keys before AJV cleaning so entity JSON with optional
null fields (e.g. slug) validates, and register tsType/tsEnumNames
no-op keywords on shared AJV instances.

Co-authored-by: Cursor <cursoragent@cursor.com>
Entity schemas use "" as intentional placeholders (flowchart links); stripping
them broke wode condition/subworkflow units. Empty-string cleaning stays in
application JsonSchemaValidator.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants