Refactor node interface & node types #17
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 297 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.341
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #17"
general
weight: 0.35
jni
Closes #5
Things to note:
From the Node definition:
I think this wording was too restrictive. My understanding is that nodes can have other top-level required fields like collections needing a "nodes" list or
path, which is not part of the overall Node interface, multiscales will have other required fields (TBD if still path / nodes or new name). Thus, I cut in this PR that all other metadata would need to go into traits.The issue said:
We can do that, but I think the repetition may be helpful to avoid confusion. The schema of a collection node still requires a type & id field, even if that is only because it's a type of node. Thus, I have only updated the schemas with the new requirements, not reduced them.
Open questions
How does the reference definition in #4 interact with the node interface? cc @normanrz
Example:
Does the node in the nodes list:
a) need to have an
idand thus follow the node interfaceb) need to have a
refof theidof the target node? (not 100% sure I understand the full scope of #4 correctly hereAreas of discussion:
Some of these overlap with what may come from other issues. They are discussion points I see when making the node interface & node types adaptations.
In Node schema:
We should discuss if names actually still must be unique now that we enforce unique IDs and names are optional. => I suggest we track this separately
Parts not covered:
Other comments:
It was hard to restrict this to only #5. It does of the renaming for #6, because we need to refer to traits from the Node definitions. And I added a first few UUID references to write the Node interface (but they should be elaborated on / checked better in #2.