Skip to content

feat(op): Add file immediate mode, json/yaml Resource types with schema validation - #243

Merged
David-Noble-at-work merged 3 commits into
developfrom
refactor/star-provider-migration
Mar 18, 2026
Merged

David-Noble-at-work merged 3 commits into
developfrom
refactor/star-provider-migration

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Summary

  • file.Provider immediate mode — changed +devlore:access=planned to access=both, regenerated receiver with NewExecuting for noblefactor-ops star consumption
  • json.Resource — new structured document resource with Parse, Validate, ResourceFromValue, and AnnounceResource descriptor
  • yaml.Resource — same pattern, with JSON round-trip normalization for schema validation compatibility
  • Plan document — docs/plans/star-provider-migration.md covering the full 8-phase migration of noblefactor-ops star receivers to the pkg/op framework

Test plan

  • make vet passes
  • make test passes (all packages including file, json, yaml providers and gen)
  • make generate produces correct gen/ files
  • Verify golangci-lint passes (not installed locally)

David Noble added 3 commits March 17, 2026 18:56
…ma validation

- Change file.Provider from access=planned to access=both, enabling
  immediate-mode Starlark receivers for noblefactor-ops star
- Add json.Resource and yaml.Resource types following the mem.Resource
  pattern (ResourceBase embed, AnnounceResource, ResourceFromValue)
- Each Resource holds a parsed Go value internally, enabling JSON Schema
  validation without Starlark↔Go roundtrips
- Add Parse method to json and yaml providers (returns Resource with
  cached parsed value; Decode remains unchanged for bare Starlark dicts)
- Add Validate method on both Resource types using santhosh-tekuri/jsonschema/v5
- Add plan document for the broader star provider migration
@David-Noble-at-work
David-Noble-at-work merged commit 1f1f3ee into develop Mar 18, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the refactor/star-provider-migration branch March 18, 2026 02:26
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.

1 participant