Skip to content

chore(oss): re-scaffold owned files from oss 0.42.0 - #770

Merged
fdaviddpt merged 2 commits into
mainfrom
doctor/scaffold-owned-resync
Sep 25, 2026
Merged

fdaviddpt merged 2 commits into
mainfrom
doctor/scaffold-owned-resync

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Repair from /oss:run step 1 (oss:doctor). Closes no issue -- doctor repair, not a fix for a tracked defect.

scripts/scaffold.py --apply resync of the oss-owned files against installed oss 0.42.0. Clears five stale-file WARNs:

  • .claude/jit-context/*/01-oss rule layers + 00-index.tsv (two new rules: python-heredoc-writes-are-unvalidated.md, raw-file-reads-are-uncapped.md)
  • .github/workflows/oss-changelog.yml
  • .oss/assemble_changelog.py
  • .oss/statusline.py -- also fixes the statusline rendering the channel as ch?: the vendored copy predated supertool 0.64.0's BOUND, UNPROVEN state
  • trap.d/README.md (prose only)

Scaffold also wanted to create .markdownlint.json and outbound/; neither was a doctor finding, so both were left out of this commit.

Maintainer furniture only -- no plugin code, no user-visible change.

🤖 Generated with Claude Code

[AI-generated]

doctor.sh flagged .github/workflows/oss-changelog.yml, .oss/assemble_changelog.py,
.oss/statusline.py, trap.d/README.md and the tools/01-oss rule layer as stale
relative to what re-running /oss:scaffold would write. scripts/scaffold.py
--apply --i-was-asked regenerated all oss-owned files/layers against the
currently installed oss 0.42.0; two newly-shipped tools/01-oss rules and
drifted paths/01-oss and vocabulary/01-oss content came along in the same
wholesale resync. Two genuinely new, unrelated scaffold outputs
(.markdownlint.json, outbound/) were reverted before committing since
doctor.sh named no finding for them.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@fdaviddpt fdaviddpt added the no-changelog Change is invisible to users label Sep 25, 2026
@fdaviddpt

Copy link
Copy Markdown
Contributor Author

Hold -- do not merge as is.

6 failures on every pytest leg, all in tests/test_statusline_nondict_manifest_727.py. This repo's vendored .oss/statusline.py carried local hardening for #727 (non-object plugin.json, .oss.json, installed_plugins.json must not raise). The resync overwrote it with the oss 0.42.0 copy, which lacks those guards, e.g.:

.oss/statusline.py:1668: AttributeError: 'list' object has no attribute 'get'
tests/test_statusline_nondict_manifest_727.py:80: assert None == {}

So the resync regresses #727. The #727 fix exists only in this repo's copy, never upstream, and every future scaffold resync will undo it again. Options: port the #727 guards onto the 0.42.0 copy here (keeps the BOUND, UNPROVEN channel fix), and/or land them upstream in the oss plugin so the vendored file stops diverging.

[AI-generated]

This repo now uses the .oss/statusline.py that the oss plugin (0.42.0)
ships, unmodified, and keeps no tests of its own for it. The maintainer's
decision: use the oss statusline, not our own copy; statusline tests do
not belong in this repo.

Removed:
- tests/test_statusline_nondict_manifest_727.py: pinned the local #727
  isinstance(dict) guards (repo_version, _latest_release, repo_config,
  installed_plugins, _installed_plugin_root). Those guards existed only in
  this repo's old patched copy; 6 of its 12 cases fail against the
  0.42.0 file. The #727 statusline guards are no longer ours to keep.
- tests/test_statusline_channel_health_which_725.py and
  tests/test_statusline_gh_unlabelled_issue_counts_622.py: still pass
  against 0.42.0, but they test oss-owned code; that coverage belongs in
  the oss plugin, not here.

Kept: tests/test_gitignore_supertool_root_725.py tests the tracked
.gitignore; it only borrows statusline._safe_which to resolve git.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@fdaviddpt

Copy link
Copy Markdown
Contributor Author

Hold lifted. The maintainer ruled that this repo uses the oss-shipped statusline as is, with no statusline tests here.

e172972 removes the three statusline test files (_nondict_manifest_727, _channel_health_which_725, _gh_unlabelled_issue_counts_622). The full suite passed locally on darwin/3.13: 2637 passed, 59 skipped. The CI matrix is what decides.

The #727 guards the 0.42.0 statusline lacks are filed upstream as Digital-Process-Tools/claude-oss#1746.

[AI-generated]

@fdaviddpt
fdaviddpt merged commit 19878e5 into main Sep 25, 2026
16 checks passed
@fdaviddpt
fdaviddpt deleted the doctor/scaffold-owned-resync branch September 25, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Change is invisible to users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant