Skip to content

t27os: GODMODE v1 supervised executor, spec layer (Refs #12945) - #13224

Merged
gHashTag merged 3 commits into
masterfrom
t27os-godmode-v1
Nov 7, 2026
Merged

gHashTag merged 3 commits into
masterfrom
t27os-godmode-v1

Conversation

@gHashTag

@gHashTag gHashTag commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

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.

File Tests Scope
specs/t27os/godmode_contract.t27 35 task contract fields, validator, stable diag codes GM-OK / GM-ENNN
specs/t27os/godmode_policy.t27 31 worktree path policy, command allowlist, deny_dangerous approval default
specs/t27os/godmode_journal.t27 43 JSONL journal (13 events), checkpoint, replay, torn-tail detection
specs/t27os/godmode_run.t27 52 PTY supervisor state machine (timeout, stop, cancel, no orphans), retry budget, 5 gates, report row
specs/t27os/godmode_001.t27 29 end-to-end walk; acceptance A-E mapped to named tests

Retries: 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 / lint on 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.
  • lefthook: foreign-budget, own-language, secret-gate (gitleaks) all pass.

Not verified

  • The 190 tests have not been executed (no test runs on the Mac). This draft exists so CI executes them.
  • CI has been red on unrelated checks since the ubuntu-26.04 runner image; read failures against that baseline.

Gaps (out of this PR)

gm_doctor_ready() is false with 5 gaps: the tri godmode run|status|stop|report|doctor CLI glue (needs owner-approved-foreign), the PTY host (t27b externs, make t27os), and host externs for append_line, git worktree add and worktree git 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

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>
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-11-07 06:33:31 UTC

Summary

Status Count
Total Open PRs 39
PRs with Failing Checks 37
PRs with All Checks Green 2
READY 2
FAILING 37
PENDING 0
NO CHECKS YET 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e75b498e5e79 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

…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>
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-11-07 06:50:37 UTC

Summary

Status Count
Total Open PRs 39
PRs with Failing Checks 36
PRs with All Checks Green 3
READY 2
FAILING 36
PENDING 0
NO CHECKS YET 0

These columns do not partition: 2 + 36 + 0 + 0 = 38, and there are 39 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e75b498e5e79 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

…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>
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-11-07 07:07:08 UTC

Summary

Status Count
Total Open PRs 40
PRs with Failing Checks 38
PRs with All Checks Green 2
READY 2
FAILING 38
PENDING 0
NO CHECKS YET 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e75b498e5e79 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

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