Repository navigation
Replies: 5 comments
|
Hi @umermjd11 — Part 1 is done, and thanks for scoping it this way. Proving the pattern on a small read-only slice was the right call; it surfaced a few things a bigger first bite would have buried. What landed:
One declared behaviour change: a network missing from Next operation, since the task asks — your call on priority, but my suggestion would be Still read-only, so Part 2 stays low-risk. Write operations probably want to wait for Part 3 and the plan/apply design — happy to take a different one if you'd rather. Branches pushed. SDK at 497 passed, daemon at 620, no failures on either. |
|
Update — a deeper review over the delivered work turned up a few things I want to fix before treating Part 1 as closed. The operations layer still lets some raw exceptions through instead of Also want to settle the two CLI compatibility points properly rather than carrying them as declared exceptions. The operations layer, the envelope round-trip and the real job type all work on their tested paths. Both PRs are in draft while I fix the above, and I'll re-report once verified. |
|
Following up — the remaining issues are fixed. The job loop no longer depends on the failed session to record its own failure, so a job that fails during network resolution lands as On the two compatibility points I raised: rather than ask you to amend the criteria, I restored the original behaviour instead ( One case genuinely can't be restored: a network missing from The one thing I couldn't reconcile is the original stake test. It asserts the CLI called Branches pushed. SDK at 520 passed, daemon at 665, no failures on either. |
|
Heads-up: For this task: no code conflict (PR No. 31 / No. 32 don't modify |
Uh oh!
There was an error while loading. Please reload this page.
cc @Santiagocetran
Assigned. Full spec:
Developer/tasks/task_110926_15.mdThe task file has the full specification — the exact scope boundaries, the two candidate operations, and the deliverables checklist. This post is the summary and assignment notice.
Summary
Developer/BACK_LOG.mdBL-9 flags thatdincli/sdk/serialize.py'sto_envelope()has zero production call sites, anddind'sJOB_HANDLERSregistry has exactly one job type ("demo", a no-op) — thesdk/operations/layer the SDK interface proposal (§8) has always planned never got built. It was explicitly blocked on the wallet/session/tx signing keystone (BL-2,task_300726_8) — that's done now, confirmed directly againstfeat/din-sdk@dc83f92(session.py,wallet.py,tx.pyall real and tested).This task is Part 1, not the whole surface: build
dincli/sdk/operations/with one read-only operation, prove it round-trips throughto_envelope(), wire it as a real (non-"demo")dindjob type, and refactor one existing CLI command onto it with byte-identical output. Two candidates named in the task file (din-info,read-stake) — pick one, a second is a bonus. Write-only operations (task registration, GI lifecycle, scoring) stay explicitly out of scope for this task.Blockers
None that block starting. Everything needed —
session.py,contracts.py,manifest.py/runtime.py,serialize.py,errors.py— already exists on your ownfeat/din-sdkbranch. No other PR needs to merge first, no sign-off needed to start. If a specific operation turns out to need business logic that isn't a clean lift out ofdincli/cli/modelownerd/*.py(interactive prompts, mid-flow IPFS uploads), that's expected — pick a different candidate rather than fighting it; see the task file's scope boundaries.All reactions