Repository navigation
sminos: a retired machine's sessions read gone (1.34.0, board #171) - #460
Merged
Merged
Conversation
…10 carries (1.34.0) A remote row is its writer's last published state, so a deleted VM's sessions kept reading idle or busy in list --org a day after the VM was gone. The org's directory now marks a retired machine (MAWS #475: RL10's machines[] entry retired: true and its machine project retired: true; the hub already retires a revoked machine's project), and sminos reads it: - machine_retired(name): the directory's machines entry or machine project says retired, by name lower-cased. A remote member on such a machine reads gone, so list, find, chart, tui and --json fold it behind +N hidden and --all or --state gone shows it. An offline machine keeps its published word, and a directory without the field changes nothing. - machines prints retired for it. - On a machine cut over to RL10, which carries no presence (the endpoint sends online: false for every machine and seen only as of its last restatement), machines prints this machine for itself and, for another, its newest event: the frame's seen or the newest event the logs here hold from its writers, whichever is later ("last event 3m ago", else "no event yet"). The directory's age line there says the endpoint restates it only when the org changes or the daemon reconnects, rather than blaming the stream, and a missing directory names the endpoint, not the hub. DX2 is unchanged. test_org_retired.py covers both on the hub and cut over (board #171). Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Closes board #171.
sminos list --orgstops showing a retired machine's sessions as live. A deleted devcloud VM's sessions used to keep their last published state indefinitely: dc-acceptance-bd31's three MAWS sessions still readidlea day after the VM was deleted.Changes (all in
sminos/skills/sminos/scripts/sminos.py):gone.org_directory()builds the set of machines the org directory marks retired. A machine is in it if itsmachines[]entry hasretired: true(the RL10 frame's field since MAWS PR sminos 1.40.4: list --subagents shows the live and the just ended, and keeps ended states #475). It is also in it if its machine project hasretired: true, the DX2 hub's mark for a revoked machine.goneand keeps its published age.list,find,chartandtuifold it into+N hidden.--alland--state goneshow it, and--jsoncarries the state.@allandsay --machinedon't count it. Direct tag resolution still reaches it.sminos machinesprintsretiredfor such a machine.sminos_rl10.cut_over()asdaemon statusdoes:machinesno longer claimsonline, which RL1 doesn't carry. This machine readsthis machine. Another machine readslast event <age> ago, taken as the later of the frame'sseenand the newest event the local logs hold from its writers, orno event yet.Sminos goes 1.33.0 → 1.34.0.
SKILL.md'sgonerow, the usage text and one sentence inscripts/CLAUDE.mdfollow.What it needs from MAWS: the endpoint sends the field from MAWS master
91ca5d02e(PR #475) on, so each machine showsgonerows once its MAWS build passes that point. Until then nothing changes.Validation
ci-gate 453c5643is GREEN on all five gates,sminos,sminos-suites,sminos-mods,mods-typesandrepo-checks: https://github.com/SSFSKIM/doperpowers/actions/runs/41980361917sminos/tests/test_org_retired.py(new, 9 tests, in the suites part) covers both an enrolled and a cut-over machine. Red first: 7 of the 9 fail on the base scripts. The two that pass are the no-field cases, which must change nothing.Residue
whoon a session of a retired machine showsgonebut still suggests "resume it on ". This is a one-condition fix inwho_lines, left out of scope.Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)