Skip to content

diag/identity_health: report cluster_identity_is_directory precisely#4

Merged
ehsan6sha merged 1 commit into
mainfrom
fix/ipfs-cluster-identity-dir-wedge
Jun 18, 2026
Merged

diag/identity_health: report cluster_identity_is_directory precisely#4
ehsan6sha merged 1 commit into
mainfrom
fix/ipfs-cluster-identity-dir-wedge

Conversation

@ehsan6sha

Copy link
Copy Markdown
Member

Problem

When /uniondrive/ipfs-cluster/identity.json is a directory (the Docker bind-mount footgun that wedges ipfs-cluster), diag/identity_health returned the generic missing_cluster_peer_id, which the "not earning" tree could not distinguish from a legitimately-absent identity -> "indeterminate" verdict.

Change

identity_health.py: detect os.path.isdir(CLUSTER_IDENTITY_PATH) and return a distinct cluster_identity_is_directory reason so the tree (functionland/fula-ota not-earning.yaml) can emit a concrete "cluster identity is a folder" verdict + restart_fula recommendation. Adds a unit test (test_identity_health_cluster_identity_is_directory).

pool_member_reason is a free-form string in diag_responses.schema.json, so no schema change is needed. Pairs with the functionland/fula-ota PR (the tree branch is inert until this ships).

🤖 Generated with Claude Code

When /uniondrive/ipfs-cluster/identity.json is a DIRECTORY (the Docker
bind-mount footgun that wedges ipfs-cluster), identity_health previously
returned the generic missing_cluster_peer_id, which the not-earning tree could
not distinguish from a legitimately-absent identity (-> "indeterminate").
Detect os.path.isdir(CLUSTER_IDENTITY_PATH) and return a distinct
cluster_identity_is_directory reason so the tree (fula-ota not-earning.yaml)
can emit a concrete "cluster identity is a folder" verdict + restart_fula
recommendation. Adds a unit test. pool_member_reason is a free-form string in
diag_responses.schema.json, so no schema change is needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ehsan6sha ehsan6sha merged commit 6f75b42 into main Jun 18, 2026
2 checks passed
@ehsan6sha ehsan6sha deleted the fix/ipfs-cluster-identity-dir-wedge branch June 18, 2026 20:49
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