Skip to content

chore: community audit - #1

Merged
MattDHill merged 1 commit into
masterfrom
chore/community-audit
Nov 25, 2026
Merged

MattDHill merged 1 commit into
masterfrom
chore/community-audit

Conversation

@MattDHill

Copy link
Copy Markdown
Member

Start9's intake review of the OpenCode package. It was already in good shape: the credential flow, i18n, workflows and icon (upstream's own favicon) all passed the audit as submitted. This PR makes these changes:

  • packageRepo now points at this fork, which CI and every release run against.
  • The upstream image is pinned by manifest-list digest as well as by tag, so a republished 2.4.1 tag can't change what the package ships. UPDATING.md covers the digest step.
  • instructions.md, setup step 4: OpenCode works out of the box with a free model hosted by OpenCode, so the step no longer says it can't do anything without a provider. It now says prompts and code go to OpenCode's servers by default, and how to connect your own provider instead.
  • README.md: dropped the "providers not preconfigured" limitation (that's upstream behavior, not a difference). Fixed "nothing upstream is disabled", which contradicted the disabled self-updater. Removed a restated action warning, and simplified when the credential task returns.
  • Comments and AGENTS.md are trimmed to what the code and README can't say.

Verified on a StartOS 0.4.3 box (x86_64):

  • First run: install raises the critical task, which blocks start; the action returns the credentials and clears it.
  • Health: green and stable past the first minute; the logs are clean.
  • Login: no credentials, a wrong password, or a wrong username all get 401; opencode plus the generated password gets 200.
  • Rotation: rerunning the action shows the confirmation, restarts the service, and the old password then gets 401 while the new one gets 200.
  • Real use: git, bash and ssh work in the container; a session opened in a git project, and the agent created a file in it with the default model.
  • Restart and backup: data survives a restart, and a backup → uninstall → restore round trip brings back the password, the session and the files.
  • Reinstall: a fresh install of the same build comes up as clean as the first.

The browser UI's screens were checked against upstream's source, not clicked through, and aarch64 is built by CI only.

review effort: 'high'

🤖 Generated with Claude Code

- point packageRepo at the Start9-Community fork
- pin the upstream image by manifest-list digest, and document the digest step in UPDATING.md
- instructions: OpenCode works out of the box with a free hosted model, so connecting a provider is optional
- README: drop the provider limitation, fix the claim that nothing upstream is disabled, trim restated action metadata
- trim code comments and AGENTS.md to what the code and README can't say

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@helix-white helix-white 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.

Reviewed 38c5343 against master. No correctness findings. The image pin is a multi-architecture index containing linux/amd64 and linux/arm64; upstream v2.4.1 enables its free models without credentials, consistent with the revised instructions. The comment removals leave runtime behavior unchanged, and the credential and persistence constraints remain documented.

Merge-tree is clean. All current CI checks passed (matrix discovery, x86 build, ARM build). No builds or tests run during review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@jonbotx

jonbotx commented Nov 24, 2026

Copy link
Copy Markdown

Thanks for the audit — it's accurate and the digest pin is the right call. Two things from our side, one to flag and one to coordinate.

We independently confirmed the pin. ghcr.io/anomalyco/opencode:2.4.1 resolves to manifest-list digest sha256:10e340e3e86d7b23e95cd9960f5a934beae8a87593d7398b5629b6112ed1fc63, matching the FROM line and the UPDATING.md recipe, and both x86_64 and aarch64 are present in the index. We're adopting it.

One conflict to flag: the provider text is stale for the packaged UI. #1 is based on a2c6471. In the meantime we added a Configure Model Providers action, because the served 2.4.1 web interface has no provider screen — so step 4 of instructions.md (Settings → Providers), README limitation 3, and the "the package writes no OpenCode configuration" line don't hold for this package. The action connects any OpenAI-compatible endpoint (self-hosted vLLM / LM Studio / Ollama, or a hosted API such as OpenRouter), writes the provider into ~/.config/opencode/opencode.json, and keeps the key on the startos volume as OPENCODE_KEY_<ID> ({env:…} in the config, never in the file). Verified end to end on a StartOS 0.4.2 box through start-cli (form spec, config + key written, OPENCODE_KEY_* in the running process, /api/model listing, removal cleanup, hand-edited keys preserved).

Coordination: PR #2, based on this branch. To keep the change reviewable, we opened #2 with chore/community-audit as its base, so its diff is only the feature (~12 files) and it inherits your digest pin and the packageRepo move unchanged. Suggested order:

  1. merge chore: community audit #1 → master (then feat: configure OpenAI-compatible model providers (on top of the audit) #2 retargets to master automatically), then
  2. review/merge feat: configure OpenAI-compatible model providers (on top of the audit) #2.

Or review #2 as the combined change. Either works; we didn't want to bury your audit inside a feature diff. We're treating this fork as the canonical home now — thanks for setting it up.

🤖 Generated with Claude Code

@MattDHill
MattDHill merged commit 0ad0cbf into master Nov 25, 2026
3 checks passed
@MattDHill
MattDHill deleted the chore/community-audit branch November 25, 2026 15:39
@MattDHill
MattDHill restored the chore/community-audit branch November 25, 2026 15:39
@MattDHill
MattDHill deleted the chore/community-audit branch November 25, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants