Repository navigation
t27os: GODMODE v1 supervised executor, spec layer (Refs #12945) - #13224
Merged
Merged
Conversation
One task end to end as pure t27 decisions: task.t27 -> isolated worktree -> supervised PTY -> allowlisted command -> validated report. T27 OS owns the contract, policy, journal, validation and recovery; the executor is a host that feeds observations to the walk and journals what it returns. - godmode_contract.t27: the 31-field task contract, gm_validate with stable codes GM-E001..GM-E028, the GODMODE-001 reference task. - godmode_policy.t27: worktree path policy (builtin forbidden .git, .env, .claude, .trinity/seals, .dsh, .lmstudio), post-run porcelain check, approval deny_dangerous, command and script allowlist. - godmode_journal.t27: 13 JSONL events with ordering rules, redacted rows, replay with torn-tail detection, checkpoint and resume decision. - godmode_run.t27: PTY supervisor state machine (timeout, stop, cancel, grace kill), failure classes, bounded retry (cap 3, retryable classes only, repeated failure stops), the five gates, final status, report row, CLI verb table and doctor. - godmode_001.t27: the end-to-end walk and acceptance tests A-E. Spec only: the tri godmode CLI glue, the t27b PTY host and the worktree and append_line externs are GAPs (gm_doctor_ready is false). Tests were not run on the Mac (no-heavy rule); parse, typecheck, check-calls and dupe_scan are clean. Nothing merges automatically. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
…ed exit cast) (Refs #12945) godmode_journal and godmode_run imported sync::schema::bytes_equal, whose import closure drags in a module var (op_arena_len) that is not appended, so the generated Zig had an undeclared identifier. Switch to std::mem::bytes_eq (no module state). gm_report_row cast an i32 exit code with @as(u64, ...), which Zig rejects; use @intcast on the non-negative value instead. godmode_001 imported that function and failed for the same reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
PR DashboardGenerated at: 2026-11-07 06:50:37 UTC
Summary
Seal Status
|
…2945) The t27b ratchet at bb1c7ef still had godmode_journal REFBLOCKED: "spec.zig:1047:10: use of undeclared identifier 'op_arena_len'". use_resolve::identifiers() strips only // comments, so the ; prose line "events are append-only" read as a reference to `append`. The resolver found it in sync/schema.t27 (reached through share.t27's use of bytes_equal) and spliced it; that body uses the module var op_arena_len, which is never spliced. Fix, journal only: reword the prose line, and rename the cp_of test helper parameter `step` to `cur` so share.t27's pub fn step is not spliced in the same way. No behaviour change; typecheck OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
PR DashboardGenerated at: 2026-11-07 07:07:08 UTC
Summary
Seal Status
|
This was referenced Nov 7, 2026
gHashTag
marked this pull request as ready for review
November 7, 2026 10:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #12945
What
The spec layer of T27OS GODMODE v1, a minimal supervised executor with one green path:
task.t27 -> isolated worktree -> supervised PTY -> allowlisted command -> validated report.T27OS owns the contract, process policy, journal, validation and recovery; the executor is replaceable.
specs/t27os/godmode_contract.t27GM-OK/GM-ENNNspecs/t27os/godmode_policy.t27deny_dangerousapproval defaultspecs/t27os/godmode_journal.t27specs/t27os/godmode_run.t27specs/t27os/godmode_001.t27Retries: at most 3, only for retryable classes (exit_nonzero, test_failed, timeout, transient); a repeated identical failure stops.
Completion gates: test, artifact, policy, journal, rollback.
Verified
t27c parse/typecheck/linton all 5 files: 0 errors (3 inherited warnings: wide-arity fns, one U32/usize return).t27c check-calls --specs-dir specs: no godmode findings.tools/dupe_scan.py: clean. ASCII: clean.Not verified
Gaps (out of this PR)
gm_doctor_ready()is false with 5 gaps: thetri godmode run|status|stop|report|doctorCLI glue (needs owner-approved-foreign), the PTY host (t27b externs,make t27os), and host externs for append_line,git worktree addand worktreegit status.Excluded from v1 by design: swarm, child agents, recursive spawn, provider fallback, auto repair, auto merge, cron, skill rewriting, arbitrary shell, any DSH / LM Studio / NVIDIA change. No version tag: VERSION stays 0.2.0, 0.3.0 is proposed only.
Draft, no auto-merge. Merge is the owner's decision.
🤖 Generated with Claude Code