Skip to content

devcloud 0.18.1: owned-by leaves unasked an account never in use on this Mac - #595

Merged
SSFSKIM merged 3 commits into
mainfrom
devcloud-owned-by-unused
Nov 22, 2026
Merged

SSFSKIM merged 3 commits into
mainfrom
devcloud-owned-by-unused

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

What and why

devcloud vm owned-by answered "unknown" to every question while the profile held an account whose provider is not usable (not registered, or no passing copy yet). sminos fails closed on "unknown", so on such a Mac no thread could be retired or ended.

The owner's ruling narrows the rule from 615e42c ("owned-by never answers none over a partial listing"): an account whose provider has never passed under this profile holds none of the asking threads' hosts. Only a pass puts a provider into use, nothing in the driver removes a passing copy or its record, and a host's owner is always a thread of the Mac whose driver made it or took it by vm owner (which refuses a thread of another machine). Such an account is now left unasked: named in a new top-level unused list and in one stderr line, and the answer is decided by the rest; none now means every account listed in full or named under unused.

unused is claimed only on confirmed absence of any sign of a pass (provider.never_passed): no providers/.pass/<account>, no <account>.pass.json, and no pass artifact under a name no configured account has (it may be this account's former name). providers/ and .pass are looked at without following links, and any failure to look other than a missing entry keeps the account unknown. A provider test's staging file (.pass/.<account>.new) is not a pass artifact. Every other partial listing stays "unknown" as before: a failed listing, an unreadable credential, a passing copy that cannot be used now. Built-in providers are never this case.

Limits, stated in the README: the question is answered under the asking session's profile (a session using another profile is outside it, as it is outside every answer of this command), and the judgment reads the profile as it stands, so a profile changed by hand so that a used account loses its pass artifacts reads it as unused. The three such hand edits are logged in docs/doperpowers/TECH-DEBT.md with their promotion (a record the driver writes the first time it calls an account).

sminos's reader (x9_reply, unchanged since 1.51.0) reads only the keys it knows and tolerates an extra one; a sminos test pins that (test-only, no sminos version move).

Reply before, with one never-passed account:
{"answer": "unknown", "vms": [], "unknown": [{"account": "<a>", "provider": "<p>", "failed": "account", "reason": "... is not registered ..."}], "listed": [...]}

After:
{"answer": "none", "vms": [], "unknown": [], "listed": [...], "unused": ["<a>"]}, with devcloud vm owned-by: account <a> not asked: its provider never passed under this profile on stderr.

Evidence

  • devcloud/tests/unit/test_driver_owned.py: never passed (registered or not) beside a listable account: none; beside a match: owned; beside a failed listing: unknown for the failed one only; still unknown for a registration gone with a passing copy, a copy without its record, a record without its copy, a renamed account, an orphan record or copy alone, a dangling link, an unlistable .pass; a test's staging file blocks nothing; the stderr line. Each failed before its fix and passes after.
  • sminos/tests/test_threads_owner.py: the reader accepts a reply carrying unused.
  • A live read-only owned-by on the affected Mac answers "none" and names the never-passed account in unused.
  • ci-gate: see the runs linked in the comments.

Review

doperpowers:review-code medium, two readings; their findings fixed in the second and third commits, or logged or dismissed by the coordinator's rulings.

Residue

The hand-edit limit, logged in TECH-DEBT.md. The X9 paragraph of the channels-and-threads spec is updated separately.

Sminos-Session: channel-dev#222553cd (doperpowers on macbook)

…his Mac

An account whose provider has neither a passing copy nor a pass record
here answered "unknown" to every owned-by question, so sminos could
retire or end no thread on that Mac. Only a pass puts a provider into
use, nothing in the driver removes one, and a host's owner is always a
thread of the Mac whose driver made or took it: such an account holds
none of this Mac's threads' hosts. owned-by now names it in a new
`unused` list (sminos's reader, 1.51.0 on, tolerates the key) and on
stderr, and decides the answer from the rest. Every other partial
listing, a passing copy that cannot be used now included, stays unknown.

Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T02:57:00.782632Z 1d51a7e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM

SSFSKIM commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

Review of the first commit: pass artifacts are keyed by account name, so
a renamed account read as never passed; Path.exists() followed links and
read a permission error as absence; the texts said "on this Mac" where
the pass is the profile's. Now no account is unused while any pass
artifact names an account the profile does not configure (it may be a
former name), the providers directory and `.pass` are listed without
following links and any failure to look other than a missing entry
keeps the account unknown, and `none` reads "every account listed in
full or named under `unused`".

Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
…mit logged

`provider test` stages its copy as `.pass/.<account>.new` before the
replace; an interrupted test left one that read as an orphan artifact and
kept every account out of `unused`. It is now left out by that exact
shape. The three hand edits of a profile that read a used account as
never passed are recorded in TECH-DEBT.md, and README says the judgment
reads the profile as it stands.

Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 067e6d4 into main Nov 22, 2026
20 checks 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.

1 participant