Repository navigation
docs(CLNT-754): send the full template when editing via CLI or SDK - #974
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
cc-review: PR #974 — Edit sections of the CLI and Python SDK template guides, follow-up to #971 (CLNT-754)Branch Strategy
The merge-base is 4bf00bb, which is the current main tip (and the merged #971). The three-dot diff is clean: 2 files, SummaryDocs-only follow-up to #971. It rewrites both Edit sections to say that edits create a new version and that every field must be resent, and it fixes the stale
The "not carried over" overclaim raised on #971 is re-checked below: for every field a CLI or SDK reader controls, the sentence is accurate. Coverage limits: The ticket text was carried forward from the earlier review of the same ticket and its current status is unconfirmed. The full Edit section of Test execution: deferred to the repo's CI/CD pipeline (repo setting); findings are by inspection and the CI result is not part of this review 1. Sources & Blade SharpeningInputs from Steps 1-5. Sources consulted:
Local universe enumeration:
Cross-source reconciliations applied during lift:
🔪 BLADE SHARPENED: ✅ 2. Constraints VerifiedInput from Step 5 (mesh + vertex tags) + Steps 7-8 (Status).
Vertex tags: 3. Constraint Mesh AnalysisInput from Step 7 (Attack Matrix). Constraint Attack Matrix C1 — new version, new id and hash_id
C2 — "not carried over"
C3 — Warning "clears"
C4 — example flags and kwargs exist ✅
C5 — omitted name/image go up null ✅
C6 — result shape ✅
C7 —
C8 — identifiers kept, instances and shared links valid ✅
C9 — remedy restores prior state
C10 — example consistency
C11 — create_template signature
C12 — deprecated endpoint not referenced ✅
C13 — rename and link ✅
Cluster annotations
Operative Test — Could a wrong guide accidentally satisfy this mesh?
4. Implementation / Constraint AnalysisInput from Step 8 (QA) + Step 9 (Deep Spec Audit) + AC Satisfaction cross-refs. Severity Spread: Critical: 0 | Major: 0 | Minor: 5 in-scope + 1 out-of-scope Issues Found:
Out-of-scope follow-ups (never block this PR; carried at true severity):
AC Satisfaction:
Deep Spec Audit: 0 specs verified · 0 violations · sibling-Requirement sweep: 0 amended specs, 0 cross-Requirement contradictions
Execution Tracing:
Contradiction Analysis: 13 constraints × 4 attack vectors = 52 cells checked; 5 in-scope findings plus 1 out-of-scope, 0 Major, 0 contradictions of the PR's central claims. Ecosystem Impact: The generated reference pages ( Quality Standards: Warning and Note usage matches the pages' existing patterns (C:50,113; S:58-60). No repository documentation spec applies. 5. Richness ScoreInput from Step 9.5 — rendered from Phase 1 data, not recomputed. Richness: ●●●●●●●○ (Source · Q · C · Seq · Cond · Arch · Sem · Coverage)
6. RecommendationInput from Section 4 (Severity Spread) + Section 5 (Richness). VERDICT: APPROVE ✅ APPROVE — Ready to merge. No in-scope Critical or Major issue exists. The central claims (new version on edit, full resend required, omitted name and image go up null, real flags and kwargs, 7. Notes for AuthorInput from non-blocking observations gathered throughout.
Generated by Constraint Cycle 2.7.0 |
Summary
Follow-up to #971. The hand-written CLI and SDK template guides still told readers to "include only the flags/parameters you want to change" with partial examples. That was never true for the CLI, which sends every field, and under
PUT /api/v1/template/an omitted--nameor--imagegoes up asnulland lands on the new version. A reader following the old example would blank their template's name and image.cli/templates.mdx: the Edit section now says edits create a new version and omitted fields are not carried over; keeps only the full example (adds--disk_space), adds a Warning, and the Note now mentions the newidand that the previous version keeps its identifiers.sdk/python/templates.mdx: same rewrite withhash_id=(the real parameter name),disk_space=and adictresult; drops the stale hand-typed signature block (HASH_ID,disk,-> str) in favour of a link to the generated reference page; fixes the two remainingHASH_IDmentions in the identifier table and troubleshooting accordion.Test plan
HASH_IDinsdk/python/templates.mdxvastai1.9.0 signature and the regenerated reference pages from docs(CLNT-754): document template edits on PUT /api/v1/template/ #971Jira: https://vastai.atlassian.net/browse/CLNT-754