Skip to content

docs: point the SDK rules at the capability - #449

Merged
retr0h merged 1 commit into
mainfrom
docs/sdk-standards-pointer
Aug 16, 2026
Merged

docs: point the SDK rules at the capability#449
retr0h merged 1 commit into
mainfrom
docs/sdk-standards-pointer

Conversation

@retr0h

@retr0h retr0h commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Implements specify-sdk-standards tasks 2.1, 2.2, and section 3, now that osapi-io/specs#75 has merged.

What moved

CLAUDE.md — the 36-line SDK method naming (MANDATORY) block becomes a 7-line pointer. The capability states the rule; restating it here is a second copy that drifts.

docs/docs/sidebar/sdk/guidelines.md — keeps every worked example, gains a note saying the rules those examples illustrate are specified in the capability, and that they bind osapi-orchestrator too. The examples are the reason to keep the page: showing a gen type leaking into a signature teaches more than the sentence forbidding it.

Verification

Task Check Result
3.1 Service methods that repeat their service name 0 of 117
3.2 Public signatures containing a generated type 0
3.3 Exported result fields without a JSON tag 0 of 548
3.4 Consumer imports of the generated package 0

go build ./... clean; just docusaurus-fmt-check and just md-fmt-check pass.

3.2 is checked by parsing each method's parameters and return types rather than grepping the file — generated types appear throughout method bodies, which is exactly what the SDK is for, and a naive grep reports those as violations.

🤖 Generated with Claude Code

The rules governing pkg/sdk lived in two documents addressed to
people working inside osapi, while binding osapi-orchestrator, which
is built on the SDK and cannot see them.

CLAUDE.md drops the naming block the capability now states.
guidelines.md keeps its worked examples and points at the
specification for the rules they illustrate.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@retr0h
retr0h merged commit 443440a into main Aug 16, 2026
10 checks passed
@retr0h
retr0h deleted the docs/sdk-standards-pointer branch August 16, 2026 06:19
@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #449   +/-   ##
=======================================
  Coverage   99.94%   99.94%           
=======================================
  Files         484      484           
  Lines       24935    24935           
=======================================
  Hits        24921    24921           
  Misses         14       14           

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65d8de4...a5a09e6. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant