Skip to content

docs(start-sdk): clarify installation and trim template agent context - #4180

Merged
MattDHill merged 3 commits into
Start9Labs:live-docsfrom
BeeJoe:docs/packaging-guidance-consistency
Oct 7, 2026
Merged

MattDHill merged 3 commits into
Start9Labs:live-docsfrom
BeeJoe:docs/packaging-guidance-consistency

Conversation

@BeeJoe

@BeeJoe BeeJoe commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

The published packaging guide describes make install as building an artifact, while the SDK Makefile only uploads an existing .s9pk. The package-template agent context also duplicates rules already supplied by the workspace packaging guide.

Correct the installation tip to require a build first. Remove the template's duplicated recipes, checklist, documentation-sync, and work-tracking guidance while retaining its StartOS package identity and documentation link for readers in a bare clone. Align the project-structure page by removing only its duplicated doc-sync clause.

The SDK 3.0.3 file-model guidance remains unchanged.

Verified the SDK Makefile install target. The packaging mdBook build, formatting check with the repository configuration, and git diff --check pass. No runtime SDK or CLI code changes.

Targets live-docs to correct published guidance; the docs backport workflow carries the merged correction to master.

@MattDHill MattDHill left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Two of the three changes are real; the file-models one isn't.

environment-setup.md — keep. make install (s9pk.mk) only uploads an existing .s9pk, and makefile.md already says so; this tip was the one place claiming it builds.

file-models.md — please drop. live-docs documents SDK 3.0.3. Since 3.0.1 (#4145) FileHelper parses with the shape as written, so z.object strips undeclared keys exactly as the page says — that rule was added deliberately in that PR. The 2.0.9 z.deepLoose behavior is the old SDK: a 2.0.9 package keeping keys under z.object(...).strip() is the pre-3.0.1 behavior, not a docs error. The guide describes the current SDK; the version history is in the 3.0.1 CHANGELOG entry. Turning "Never use z.object" into a conditional also weakens the rule for the version the page actually documents.

package-template/AGENTS.md — the duplication is real: recipes, the checklist, the doc-sync rule, fix-don't-report and no-TODO.md all live in agent-context.md, so removing them is right. But keep the opening lines — that this is a StartOS service package, with the https://docs.start9.com/packaging link. The template ships into every package repo, and that link is the only thing a reader in a bare clone with no workspace gets; a single link isn't a web-fetch driver. In project-structure.md, correspondingly keep "state that this is a StartOS service package" and drop only the doc-sync clause.

@MattDHill

Copy link
Copy Markdown
Member

Separate from the review: a heads-up on the SDK 3.0 migration. Start9 is converting every community package to SDK 3.0.3 ourselves, yours included. The changes are big, and we'd rather do that work than leave it to each developer. Doing it centrally also means no package gets missed.

Several of your services are being converted right now, so changes you open against them in the meantime will probably conflict and need a rebase once our conversion lands. That includes Start9-Community/bunker46-startos#6 and Start9Labs/changedetection-startos#9. If an update isn't urgent, it's easiest to wait until a package's 3.0.3 conversion merges and then open it on top. If it is urgent, go ahead, but expect to rebase.

If you see something that looks wrong on the current SDK, please send it to us. It may already be fixed in 3.0.3, or the conversion may be about to change it.

@BeeJoe BeeJoe changed the title docs(start-sdk): align packaging setup and schema guidance docs(start-sdk): clarify installation and trim template agent context Oct 7, 2026

@MattDHill MattDHill left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, this covers all three points. One remaining item: new-package-checklist.md:55 still says "Write the ## This repo bullets in AGENTS.md, or delete the section", and the template no longer has that section. Something like:

- Replace the comment in `AGENTS.md` with this package's own instructions, or delete it. A
  simple package needs none.

I'll approve once that's in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@MattDHill MattDHill left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Pushed the checklist fix (c0ce4a2). Thanks!

@MattDHill
MattDHill merged commit a6fa7b4 into Start9Labs:live-docs Oct 7, 2026
start9-docs-bot Bot added a commit that referenced this pull request Oct 7, 2026
Backports the following from live-docs:

- a6fa7b4 docs(start-sdk): clarify installation and trim template agent context (#4180)
@BeeJoe
BeeJoe deleted the docs/packaging-guidance-consistency branch November 26, 2026 04:14
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