Skip to content

Report inactive Codex workflow before initialization (T36) - #306

Merged
erickb336 merged 1 commit into
mainfrom
codex/t36-fresh-workflow-status
Oct 24, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/t36-fresh-workflow-status

Conversation

@erickb336

@erickb336 erickb336 commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Closes #305
Sage task T36

A new Codex project can ask for Sage status before it has a logbook. Previously that read failed with ENOENT. It now reports Sage off, autopilot off, an unverified publisher, and no publications without creating files.

The change applies only to status when storage is absent. Mutating actions still require initialization. Invalid paths, dangling links and malformed existing state still fail. Core rules, native permissions and publication checks are unchanged.

Validation at 521ddba9a6af1355af77507922fcab59650cf1f6:

  • npm run build: built 336 files; exit 0.
  • npm run check: all checks pass; exit 0.
  • node --test packages/sage-codex/runtime/workflow.test.mjs: 9 tests passed, 0 failed.
  • npm test: 1,981 passed, 0 failed/cancelled/skipped; actual exit 0.
  • Two independent final-head code/security/QA cycles: clean. No findings.

A detached origin/main checkout at 5d2064989061adc8d56389dc617d7e7799d57b6f ran the new tests. The fresh-status regression failed at its expected successful CLI exit assertion: actual 1, expected 0, with ENOENT for absent storage. The invalid-storage preservation control passed on main; it is not a regression failure. All tests put fake process commands first on PATH.

The parent also checked the new helper against the actual disposable project that exposed the defect. Status exited 0 and no logbook was created. A fresh real-model session discovered the installed Sage skill before this fix; its status call exposed the original defect. The reviewed candidate is installed locally through the standard installer with an invocation-only local marketplace. All 213 package files match; settings and hooks are unchanged. The fresh real-model sage help check exited 0 and showed the correct off state and commands. That model did not call the status helper; a separate direct call to the installed helper in the same project/session exited 0 with no logbook created. CI passed 1,981/1,981. The installed guarded publisher merged this PR at c639a964a0dd484fd3d7521467b394c46119f7c3. The configured Git marketplace and standard installer now provide that release; all 213 files match, settings/hooks remain unchanged, and a fresh released status call creates no logbook. This PR does not complete the separate native controller guarantees tracked in #88.

@erickb336
erickb336 marked this pull request as ready for review October 24, 2026 11:28
@erickb336
erickb336 merged commit c639a96 into main Oct 24, 2026
1 check passed
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.

Codex: report inactive workflow before project initialization (T36)

1 participant