Repository navigation
spec(t27os): research card on the orbit page - visible in running T27 OS (see #13055) - #13062
Merged
gHashTag merged 23 commits intoNov 1, 2026
Merged
Conversation
) * feat(t27os): DSH MCP to ACP bridge table and gate, nothing wired (Closes #13028) Pure decision spec: six expected MCP tool names, each mapped to the ACP method verified in the DSH server (session/new, prompt, cancel, list, resume, close; cancel is a notification), and a gate that answers hold (conductor go absent), refuse (issue 0, unknown tool, create out of scope) or map (exactly one ACP session request). Precedence is refuse before hold: a request that can never become valid is refused even while the go is absent. It registers nothing, starts nothing and dispatches nothing. 21 test blocks; they have been run by CI only, not on the Mac. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(t27os): DSH bridge stop levers skip the go, real map check (Closes #13028) Review findings F1-F3 on the DSH MCP to ACP bridge gate. F1: T_CANCEL and T_CLOSE no longer answer R_NO_GO. needs_go(tool) is false for them, so a runaway session can be stopped while the conductor go file is missing. They still need a non-zero issue (issue 0 is refused for every tool) and ignore the scope fact. The header says so and that the owner can overrule it; two new tests pin both halves. F2: the vacuous one_ok test is replaced. map_consistent ties acp_requests(decide(...)) and mapped_method(...) to (decide == D_MAP), and all_combos_consistent checks the 8 combinations of go, issue and scope for each tool. F3: T_LIST stays held without go; one header line says a read also waits for the go. 23 test blocks (was 21); parse and spec-status run locally, the tests are run by CI only, not on the Mac. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…he go file (#13042) * spec(t27os): general conductor tick decision, pure, stays off until the go file (Closes #13029) Pure decision spec in the style of godmode_tick: reads crons::general_conductor::tick_decision, lists five numbered host needs (three GAPs), scores the five duties against GC_MAX_SECONDS_PER_DUTY, returns tick rows as data (STAY_OFF / RUN / SKIP zero the seconds), answers stay off while ENABLED is false or the go file is absent, and treats scaling output as proposal only. 20 tests, 0 vacuous. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * spec(t27os): general conductor tick drops its dec_len twin, fixed worst-case row buffer (Closes #13029) CI duplicate-bodies refused the private dec_len (a third copy of a body in godmode_tick.t27 and t27b/emit_kit.t27). tick_row now checks the buffer against GCT_ROW_MAX (152, the worst-case row) and writes nothing when it is smaller, so no digit counter is needed. One new test, row_max_boundary. Gate on a T27 OS shell-cell pane: 21 tests, 21 pass, 0 vacuous. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…nary trap (Refs #12444) (#13040) * docs(boilerplate): record the alpha ledger's missing run path and the claim-binary trap (Refs #12444) Row E phase 3 reconnaissance, written into the loop skill so the next tick does not re-derive it. - The plain ledger still holds on master 7acdfb1: 1796 duplicate bodies in 688 groups across 2918 specs, the same ledger numbers PR #12579 measured on 2819 specs and 22234 bodies, so 99 specs and 427 bodies arrived in five days without moving the ratchet. - The alpha ledger has not been checked since it was blessed, and cannot be on this Mac: the GATE command in the header of specs/policy/dupe_bodies.t27 is refused by the Bash MAC LOAD hook (cc), and by the Terminal hook three ways (1<<26 reads as a here-document, the identifier r reads as the shell history command, the C function body reads as a glued zsh brace list). The lab the Bash hook recommends no longer exists. - tri loop claim exists only in the repo-built target/release/tri; the cargo binary has no loop subcommand and ~/.local/bin/tri is gone, so an exit 2 from the wrong binary must not be reported as an unattemptable claim. - The gate spec is sealed, so the two command corrections cannot be made in its header by a tick without a seal route; they are in the skill instead. Refs #12444 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * docs(boilerplate): drop the developer home path the scan gate refuses (Refs #12444) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
… recipes (Refs #13036) (#13038) * feat(t27os): Ladder Doctor decision spec: classes, breaker, incident, recipes (Refs #13036) Spec only: refusal classes from status plus rung, a per-rung breaker pinned to keys.t27 CIRCUIT_FAILS and CIRCUIT_COOLDOWN_S, one incident per rung and cause, a closed recipe list, resolution only on a 200 control request, and a fail-closed 503 body line. No dependency on the rung table of #13035. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * feat(t27os): Ladder Doctor SLOW class, per-rung deadline and walk budget (Refs #13036) FR-010: a response not complete within LD_DEADLINE_MS is class SLOW, handled like TRANSIENT for the breaker; a 200 after the deadline counts as a failure, never a success, and a SLOW rung is not repeated inside one turn. FR-011: one walk is bounded by LD_WALK_BUDGET_MS (above one deadline, under 120000); when it is spent the walk ends with the 503 body of FR-007. Tests: 25 in total, 5 new. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * spec(t27os): a SLOW 200 is served and takes a capped strike (Refs #13036) Review of PR 13038: a 200 past the 30000 ms deadline is still an answer. - response_action: a 200 is SERVED however long it took; never dropped, never retried (LD_SLOW_RETRIES = 0). - Capped strike (header law 9): a SLOW 200 adds one strike but never resets the count and never takes it past CIRCUIT_FAILS - 1, so slowness alone cannot open a rung that still answers. A SLOW non-answer (0 or 5xx past the deadline, or a call cut at the walk budget) still counts like TRANSIENT and can open the breaker. - The deadline is a naming threshold, not an abort: call_deadline_ms is replaced by walk_left_ms and within_budget. A 134000 ms answer is past the 100000 ms budget and is cut. - New tests: the measured 40000 / 90000 ms sequence stays closed, and a 200 at 31000 ms is served once with one strike. 27 tests in all. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * spec(t27os): the walk budget stops starting calls, a call ceiling cuts (Refs #13036) Review round 3 of PR 13038. Real data, T27 OS ladder log 2026-11-01: 3 of the last 9 rung-0 answers were 200s taking 150937, 138044 and 225921 ms, and DSH waits at least 209 s. Cutting at the 100000 ms walk budget would have turned them into 503s. - Choice B (header law 10, marked as the owner's to overrule): the budget only stops STARTING calls (may_start_call). The call in flight is waited for up to LD_CALL_CEILING_MS = 240000, which is at least LD_DSH_WAIT_MS = 209000 (the lower bound read from the ladder log line of 2026-11-01). Choice A (cut every call at the budget) is named as the choice not taken. - timed_status(status, took_ms) is the pure function the breaker and the walk use: 0 when the call is cut at the ceiling, else the status. call_spent_ms caps what a call adds to the walk, action_after_call and breaker_record_call are the walk's two uses. within_budget is gone. - A cut 200 is status 0, LC_SLOW, LA_REFUSED, counts like TRANSIENT and can open the breaker; a 200 at exactly the ceiling is served, one ms later it is cut; a 200 past the 30000 ms deadline but inside the ceiling keeps its one capped strike. - Stated cost: a walk can run to 339999 ms, so the literal FR-011 reading (no turn waits 209 s for a refusal) is relaxed; the owner decides. - New tests: both sides of the ceiling, the three logged answers served, the budget-versus-ceiling pins. 29 tests in all. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…lapped the orbit's spans) (#13016) * fix(t27os): key-age packing no longer overflows a u64 at startup (Refs #13015) The window trapped (brk #1, Overflow) about 2 s after launch. The provider-age writer weighted slot 8 with 65536 to the 4th, which is 2^64. One helper, keyage_lane(slot) = 65536^(slot % 4), now serves both key-age loops, with a test that packs all ten providers and reads each back. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * chore(seals): re-save t27os_T27osGlassWindow after the key-age lane fix (Refs #13015) Re-saved with the post-#12824 t27c from a T27 OS shell-cell pane on the owner's word. Tests 93/93. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(t27os): hold the orbit pointer within a million points so squaring a gap cannot overflow (Refs #13015) The window built from the key-age fix still died at launch: the first frame reported a pointer x of 219269006857735, and ov_nearest_gap squared the gap (dx * dx on i64) in Trap mode. orbit_tick and orbit_pick now read the pointer through orb_pt, which holds it within +-1000000 scene points and reads a NaN as 0 (an out-of-range @intFromFloat would be a third trap). The test the_orbit_tick_survives_a_pointer_far_outside_the_stage failed with "integer overflow ... (* on i64)" before the change and passes after it; glass_window: 95 passed, 0 failed. The seal is stale until re-saved. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * seal(t27os): re-save t27os_T27osGlassWindow after the orbit pointer clamp and the master merge (Refs #13015) Re-saved with the post-#12824 t27c from a T27 OS shell-cell pane on the owner's word; glass_window 100/100. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(t27os): move the key-age words above the orbit's spans; the orbit read a packed age as a radius (Refs #13015) The startup trap was a third overflow, and the real one. TPG_KEYAGE (137..139), TPG_KEYAGE2 (140..159), TPG_KEYSTATE (201) and TPG_KEYFLEET (202) sat inside the orbit's HX span (136..167) and HP span (200..231). main writes the packed key ages every frame, so on the next tick orbit_tick read tg[137] (a row of four u16 minute ages, about 2.2e14) as formula 1's radius, and ov_nearest_gap squared the gap to the pointer in i64 and overflowed (Trap mode, brk #1). The earlier orb_pt clamp and the keyage_lane fix stay as guards; neither was the cause of this trap. TPG_N grows from 256 to 288 and the four words move to 256..280. The word-map test now claims them (it never did), with negative controls for the old numbers, and a new test packs 220113431788053 into every key word, ticks the orbit and relayouts it. With the old numbers it fails with `integer overflow (* on i64)` and the word-map test fails too; with the new ones 101 pass, 0 fail. The seal t27os_T27osGlassWindow is stale again until it is re-saved on the owner's word. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * seal(t27os): re-save t27os_T27osGlassWindow after the key-age words moved above the orbit's spans (Refs #13015) Re-saved on the owner's word from a T27 OS shell-cell pane with the post-#12824 t27c; 101/101 tests pass; the diff holds no home path. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * seal(t27os): re-save FrameGate and QueenDash, stale on master since 4c54f77 and 7b38a9c (Refs #13015) coverage and spec-guards fail on the master tip 4037358 on these two seals: the specs changed without a re-save. Saved with the post-#12824 t27c from a T27 OS shell-cell pane, on the owner's word. Tests 13/13 and 8/8, no home path in the diff. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…(Refs #13055) Card lines law/params/conditions/observable/reference/verdict formatted from physics/heat_bench public API; unstable-dt control test pins the stability gate. HeatBench sealed first: a new import resolves against its seal. Standalone test-report splice of cross-module imports is blocked (issue #13055); project-wide build path next.
) Minimal wiring: use t27os::research_card, one plate on the formula-orbit page, card_heading + six card_line rows, measured obs/ref mK via bench dec_digits/dec_char, verdict word from card_verdict. card_title renamed card_heading in the spec: bench::card_title(cu) already occupies the name in this module. t27b test glass_window: 101/101 pass.
install.t27: CHANNEL_PROD_ID ai.t27.os / CHANNEL_DEV_ID ai.t27.os.dev, channel_ok + channel_is_dev (byte-exact compare, #5980 trap), plist_text becomes the production wrapper over plist_text_channel(dev). plist_main reads T27OS_CHANNEL (absent/empty = production, dev = development, any other name exits 2). LaunchServices keeps the two channels as separate applications: reopening the dev bundle activates one instance instead of replacing the installed app (measured: three dev instances vanished under the shared id before this change). install tests 27/27, plist_main 1/1, make t27os build 7750 both channels verified end to end.
… (Refs #13055) Slice 2, data reload only: hot_reload gains RC_OBS_MK / RC_REF_MK keys (same file, same revision gate, no second watcher; a theme-only module leaves the card alone, an out-of-bound entry is refused). research_card separates verdict_of(obs, ref) from the built-in values - data reloads move values, never the rule. glass_window seeds TPG_RC_OBS/REF from the card spec at start, live_load applies the same generation into the slots, the draw reads the slots. Text/layout changes stay executable-code reload (restart boundary). t27b glass_window: 101/101. hot_reload: 13/13, 0 vacuous. research_card verdict-rule tests added.
RC_MAX 1000 -> 1000000000: the FTCS midpoint is ~43000 mK, so the old theme-sized bound refused the card's own real numbers. The bound test now refuses 4000000000 and the doc line names the real magnitude.
…ive data (Refs #13055) glass_window reads its own CFBundleIdentifier at start (NSBundle, the same extern path as CFBundleVersion): a suffix sets TPG_IS_DEV - runtime evidence written by install.t27 plist_text_channel, not a build flag. update_tick is gated on it: a dev build neither replaces its own binary (swap_ready/UP_SWAP unreachable) nor runs check_cmd, whose first act is downloading t27os-live.t27 over the local live file (release.t27:1047). Local hot reload (live_load) is a separate path and still runs. RC bound fixed to the parser's own 9-digit ceiling (999999999): field_num refuses 10 digits, so 1000000000 was undeliverable. t27b: glass_window 101/101, hot_reload 14/14.
…13055) Writers coordinate through the live module itself (one registry): a candidate may name OWNER and OWNED_UNTIL; at the application boundary owner_gate refuses a candidate written by another session while the applied writer's lease holds - a contending writer cannot replace the active valid surface, an expired lease falls through to the revision gate. owner_hash is masked to 56 bits per step (h*33 by shifts and adds): the dialect has no wrapping multiply. Rejections are visible: TPG_RC_LAST carries applied / stale revision / invalid module / fenced foreign writer, drawn as dev diagnostics under the research card on the orbit page (channel, applied generation, owner, updates: disabled). verdict_of tests: the rule moves with the values, not with the build. t27b: glass_window 101/101, hot_reload 16/16.
This was referenced Nov 1, 2026
Slice 3, data path: rc_candidate_ok gates a candidate on a sound module, a strictly newer generation, and interface schema RC_SCHEMA=1; rc_apply_atomic takes both card values together or leaves the last-known-good pair untouched (slice 2 applied per-entry, which could mix generations). artifact_hash binds the exact candidate bytes. glass_window live_load uses the gate + atomic pair. Data path only - no native-code swap claims. t27b: hot_reload 20/20, glass_window 101/101.
F_LIVE_DEV live-dev.t27 for TPG_IS_DEV instances: the release stream owns live.t27 and rewrites it on its minute cadence, which clobbered a dev operator's edits (measured 2026-11-01). Production reads live.t27 unchanged. glass_window 101/101.
…efs #13055) Slice 3 executable-path contract, rules only, no wiring: swap_allowed gates the existing update machine for the dev channel (dev bundle id, same-channel candidate, staged, schema 1); production keeps SWAP_NOT_DEV. restore_key_at pins the eight NSUserDefaults keys main() re-reads at startup, so the re-exec restore set is contract, not folklore. The re-exec changes the PID - state preservation here is the documented restore set, not a same-process guarantee. DevSwap: 3/3.
…efs #13055) Before exec_self after a rebuild, the window validates the swapped-in bundle: NSBundle bundleWithPath on the candidate reads CFBundleIdentifier (must be ai.t27.os.dev, install.t27 channel id) and CFBundleVersion (must parse, parse_build). Refusal keeps the CURRENT binary running, records TPG_RC_LAST=5, and the dev diagnostics render 'swap: candidate refused, current binary kept'. Explicit trigger unchanged: the rebuild itself is the command; the poll only reloads on a real modification. t27b: glass_window 101/101, DevSwap 3/3.
… (Refs #13055) Known-failing repro set, held OUT of the swept specs tree and out of any required-green gate: inputs, commands, tool versions, expected vs observed, status, cause locations. C3 draft criteria corrected per review: invalid input must be refused naming the builtin and the type mismatch; an @intFromFloat hint is optional and explicit - no silent reinterpretation, no lowering of an invalid cast. Publication awaits owner confirmation.
…Refs #13055) execv returning nonzero records TPG_RC_LAST=6 ('exec failed, still on the old binary') and keeps serving; the dev diagnostics line renders it. window_keep gains model-level round-trip checks for the kept state: flags build/read for combinations, key identity for varied values, debounce semantics (missing key settles before a write), restore gate (Option, nothing kept, foreign kept value). Full re-exec observation stays a separate stage. t27b: glass_window 101/101, window_keep 8/8.
…#13055) The rebuild only PREPARES the candidate. Application requires the dev live module to carry APPLY_NOW=1 for APPLY_REV strictly newer than the persisted applied generation (t27os.applied_rev in defaults, written before the exec so one request fires exactly once across the re-exec). On request: NSFileManager stages the candidate bundle beside the app, the STAGED copy is re-validated (dev bundle id + parseable build), and exec binds to the staged path - a later change at the build path cannot replace the artifact being applied. Exec failure records TPG_RC_LAST=6 and keeps serving on the current binary. execv replaces the image: the PID survives, the path becomes the staged bundle - observable proof of which artifact is running. No request: the rebuild changes nothing. hot_reload 21/21, glass_window 101/101.
gHashTag
merged commit Nov 1, 2026
2c396c3
into
lane/research-graph-heat-bench-13045
27 of 36 checks passed
This was referenced Nov 2, 2026
Merged
cursor Bot
pushed a commit
that referenced
this pull request
Nov 9, 2026
…ass_window) (#13121) * spec(numeric): drop the stray closing brace in sha256_round0 Line 63 held a `}` with no opening partner, present since the file's first commit 26d81c7. t27c discarded it at top level, so the corpus ratchet saw sha256_round0.t27 as a new parse-no-discard failure. Before: `t27c parse-complete --show` reports 1 token DISCARDED at 63. After: "nothing discarded"; `t27c check` reports 0 errors, 0 warnings. Minimal repro of the same parser behaviour: any stray top-level `}` after a fn body (3-line module) is discarded the same way. No seal exists for this module; no ledger or threshold is changed. Refs #13055 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * spec(t27os): print the research-card numbers with put_dec, not bench imports 2c396c3 (#13062, reached master through the #13053 merge c78af5f) added `use t27os::bench::dec_digits;` and `use t27os::bench::dec_char;` at glass_window.t27:1495-1496. `bench` lexes as the keyword KwBench, so t27c stops the use path at `t27os::` and discards `: : NAME ;` on each line: 8 tokens, the whole "+8" the corpus ratchet reported (404 vs the 396 pinned). The defect is #11101; #13113 tracks the spec-side remedy. The two imports fed four digit loops. They now call put_dec, which the file already imports from t27os::session_store and which writes the same unpadded decimal digits. Before: `t27c parse-complete --show` 404 tokens across 101 lines. After: 396 across 99, and the sorted set of dropped source lines is identical to the file before #13053 (`diff` rc 0). `t27c check` gives 0 errors and the same 69 warnings as master (texts diffed, rc 0). Not done here: no seal re-save (t27os_T27osGlassWindow spec_hash goes stale, 603968db -> d81bd284), no ledger, baseline or threshold change. t27b tests of this spec were not run. Refs #13113 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Dmitrii Vasilev <gHashTag@users.noreply.github.com>
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.
see #13055. Stacked on #13053 (base = its lane branch):
specs/physics/heat_bench.t27lives there; only the research-card commits are new here.Scope (exact)
Research-graph card wired into the T27 OS window: one plate on the formula-orbit page rendering the heat bench as law / params / conditions / observable / reference / verdict. Card verified visible in the running app; orbit-page renderer for the whole research graph remains future work (#12988 path). Not merged by author.
Visible-result verification (the acceptance evidence)
make t27os->target/t27os/T27OS.appbuild 7749 (window header showsT27 OS 0.2.0 - b7749)openconflicts with the installed/Applications/T27OS.app-- same bundle idai.t27.os, LaunchServices kills one instance; local build patched toai.t27.os.research-cardintarget/only, not committed)screencapturetaken while the app was alive (pid 23738; 3024x1964 PNG)verdict: VERIFIED=card_linerow; second = the computedcard_verdict()word; the measured obs/ref mK pair sits between the observable rows and the verdict word)Receipt
t27c 0.5.2+1941409a6(t27-build/target-m2),t27b 0.1.0, zig 0.16.0t27b test specs/t27os/glass_window.t27: 101 passed, 0 failed;t27c test-report specs/physics/heat_bench.t27: 7/7, 38 runtime asserts, 0 vacuoususe t27os::research_card::*(12 imports) + one plate block inorbit_draw(rc_*locals), reusingplate/tg_txt/dec_digits/dec_char; no new logic outside.t27(both files are specs)Known toolchain gaps recorded (not worked around)
t27c test-reportdoes not splice cross-module imports into a new standalone consumer: t27c test-report does not splice cross-module imports into a new standalone consumer #13055 (control experiment witht27os::dash::pack_colsincluded there). The project-widet27bbuild resolves the same imports.t27balso rejects module-qualified calls to imported fns (research_card::card_title()), same family; resolved by renaming the spec fn tocard_heading(spec is new in this stack).Constraints honored