Skip to content

device-health-oracle: add oracle to provisioning workflow without checks#2711

Draft
nikw9944 wants to merge 3 commits intomainfrom
nikw/2669
Draft

device-health-oracle: add oracle to provisioning workflow without checks#2711
nikw9944 wants to merge 3 commits intomainfrom
nikw/2669

Conversation

@nikw9944
Copy link
Contributor

@nikw9944 nikw9944 commented Jan 23, 2026

Summary of Changes

  • serviceability: New links and devices now start in Pending status
  • serviceability: Go SDK updates allowing device-health-oracle to write to device.health and link.health
  • device-health-oracle: update device and link health to ready
  • These changes are required for rfcs/rfc12-network-provisioning.md
  • Next steps include adding the various checks described in the rfc12 to device-health-oracle

Testing Verification

  • e2e: test device and link provisioning workflow

@nikw9944 nikw9944 changed the title device-health-oracle: add oracle to provisioning workflow without checks" device-health-oracle: add oracle to provisioning workflow without checks Jan 23, 2026
@nikw9944 nikw9944 force-pushed the nikw/2669 branch 3 times, most recently from c22987b to 6dc35c6 Compare January 23, 2026 23:13
@nikw9944 nikw9944 marked this pull request as ready for review January 23, 2026 23:14
@nikw9944
Copy link
Contributor Author

Note that merging this to main will require deploying device-health-oracle to testnet/mainnet-beta before promoting this change to those environments.

Data: map[string]any{
"err": map[string]any{
"InstructionError": []any{
json.Number(string(rune('0' + instructionIndex))),
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor comment:

I think this works since we enforce maxBatchSize. But if someone writes a new test in the feature that directly uses makeInstructionError(10) or higher. It would silently produce wrong test data and potentially cause confusing test failures. I think fmt.Sprintf("%d", instructionIndex) formats an integer as its decimal representation so it's safer.

@nikw9944 nikw9944 marked this pull request as draft January 26, 2026 19:09
@nikw9944 nikw9944 self-assigned this Jan 26, 2026
…for writing to device.health and link.health; device-health-oracle now updates health status
 gwfHPG4suqu1aiXEjCPyW9rZfKnb9zQqdNt4iyqiA1D | gwfHPG4suqu1aiXEjCPyW9rZfKnb9zQqdNt4iyqiA1D
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