Skip to content

docs: define SION reusable workflows and skip the upstream tree in checks - #5

Merged
thisisjun786 merged 1 commit into
devfrom
docs/upstream-workflows
Oct 1, 2026
Merged

thisisjun786 merged 1 commit into
devfrom
docs/upstream-workflows

Conversation

@thisisjun786

@thisisjun786 thisisjun786 commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Summary

Settles how SION checks, runs and follows the upstream ClawSweeper tree under upstream/.

  • Checks skip the upstream tree. The selection whitespace check (git diff --check / git show --check) excludes upstream/ with a pathspec, and the docs check skips Markdown under upstream/. Upstream c73bf38 holds 12 hits for git diff --check against an empty tree: 3 trailing-whitespace lines in a recorded proof transcript and 9 intentional conflict markers in a repair test. Without the exclusion, the PR that brings in the tree could not pass foundation. A -whitespace attribute alone would not help, because Git reports conflict markers regardless of it. Upstream's own pnpm run check (including check:docs and format:check) covers the tree. The CI policy, the workflow step and the docs check script now say the same thing.
  • Reusable workflows (sion.md, Source layout and the new "Running upstream code"). SION's reusable workflows are SION's own files in the root .github/workflows/, and each one names the upstream workflows it follows. Upstream's composite actions treat $GITHUB_WORKSPACE as ClawSweeper's code root: local ./.github/actions/<name> paths, scripts/ copied from the workspace, the deployment revision from git -C "$GITHUB_WORKSPACE" rev-parse HEAD, and target and state checkouts as direct children. A workflow cannot override GITHUB_WORKSPACE, so a SION reusable workflow checks out the pinned release and runs git read-tree --reset -u HEAD:upstream. That places the upstream/ tree at the workspace root, with HEAD still the release commit.
  • Following upstream. Upstream workflow changes land under upstream/.github/workflows/ without conflicts and reach no SION workflow on their own. The sync PR reviews them and updates the corresponding SION reusable workflows in the same PR. The "Costs" section names this as the second place where following upstream takes recurring work.
  • Mailbox refusals. SION answers a refused mailbox envelope with a refused result file in outbox/. The file names the input and carries the error. Outbox result paths follow LINA's schema and fixtures.

Verification

  • node .github/scripts/check-docs.mjs: OK (14 documents).
  • node --test .github/scripts/*.test.mjs: 29 pass. The new docs-check test fails against the previous script and passes with the change.
  • actionlint v1.7.12, with the pinned checksum verified: no findings.
  • git diff --cached --check -- . ':(exclude)upstream/': clean.
  • Against a scratch repository holding upstream c73bf38 under upstream/: the full git diff --check reports 12 hits, the excluded form reports none, and a whitespace error at the root is still caught.
  • git read-tree --reset -u HEAD:upstream was tried in a scratch checkout. The work tree became the subtree, and git rev-parse HEAD stayed at the tagged commit.
  • Anchors sion.md#source-layout and ci.md#upstream-tree are unchanged.

Compatibility and recovery

The CI step only narrows the paths it checks. No upstream/ tree exists yet, so current results do not change.

🤖 Generated with Claude Code


Devin Review

…ecks

- The whitespace check in selection and the docs check skip paths under
  upstream/, so upstream's files stay as upstream ships them.
- SION's reusable workflows are SION's own files. Before a job runs
  upstream code, they place the pinned release's upstream/ tree at the
  workspace root, where upstream's composite actions expect it.
- An upstream sync brings upstream workflow changes into the SION
  reusable workflows that follow them, in the same pull request.
- A refused mailbox input gets a refused result file in outbox/, at the
  path LINA's schema defines.

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

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-01T18:50:24.025844Z 6ca0c91 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@thisisjun786
thisisjun786 merged commit 756f63d into dev Oct 1, 2026
7 of 11 checks passed
@thisisjun786
thisisjun786 deleted the docs/upstream-workflows branch October 1, 2026 18:51
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