Skip to content

bead input load fails to find existing files in bead box without clear error messaging #53

@korenmiklos

Description

@korenmiklos

Summary: bead input load reports that it cannot find beads that are confirmed to exist in the bead box, with no indication that indexing might be the issue or fallback to alternative search methods.

Steps to Reproduce:

  1. Have a bead box (cat2) containing multiple zip files including:
    • bloom-et-al-2012_20250829T101546412743+0200.zip
    • ceo-panel_20241125T153535400212+0100.zip
    • merleg-LTS-2023_20240913T134437850009+0200.zip
  2. Navigate to a workspace that expects these inputs (ceo-value-writing)
  3. Run bead input load

Content of .bead-meta/bead:

{
    "inputs": {
        "bloom-et-al-2012": {
            "content_id": "4fb3d38666111413207369aa9ee9136d24ebf6b49b0cae08d9a701b0531b83a6a1eb120a7e12866d40224a95c99b892bcfa47c20d33d5ffbd53e954a8ca43089",
            "freeze_time": "20250829T101546412743+0200",
            "kind": "f45b97d11ff8b08bc718d4bd9adeff8b-67dd96f4-58a5-4a86-a321-2e6ed6330bee"
        },
        "ceo-panel": {
            "content_id": "4a789e2d4066c3b24cdc8233b49fca68f0609ed3ebe36caf66f2ac30e024faa5bedcf8cfc2fff346fd8118ae67f394ff264f93171aafbbd2e9f5459d6530a261",
            "freeze_time": "20241125T153535400212+0100",
            "kind": "8f68500668824a7b8b9486f034a6aded-e7db5a61-97b7-4d28-8e22-3ed70eade94b"
        },
        "merleg-LTS-2023": {
            "content_id": "80c0aac26a582bab8ddcffce75902c68d5902ceee6f1aed41a407095cf1657caeee89ad265bde77875deb6ff7fdeaf40123fa40ad21645c9b0303aee1784c748",
            "freeze_time": "20240913T134437850009+0200",
            "kind": "dd1549031b41346f51108b1e8345cb30-e1a8ffea-2d02-4d4e-93d8-5dbc50684081"
        }
    },
    "kind": "33f3ac6552c548b0eda3df08a8c6a5b9-2bf4a0e7-1a08-44f0-9351-633f5591fd3b"
}

Expected Behavior:

  • All available input files should be loaded from the bead box
  • If files cannot be found due to indexing issues, there should be a clear error message explaining this
  • The tool should attempt fallback mechanisms (e.g., filename-based search) when index lookup fails

Actual Behavior:

  • Command reports: "WARNING: Could not find bead for input "bloom-et-al-2012" - not loaded!"
  • Same warning for ceo-panel and merleg-LTS-2023
  • No indication that this might be an indexing problem
  • Files are confirmed to exist in the bead box via ls commands

Additional Context:

  • After running bead box index --box cat2, the same files load successfully
  • This suggests the issue is related to index state, but this is not communicated to the user
  • The error message is misleading as it suggests the files don't exist rather than aren't indexed

Environment:

  • Bead version: 0.9.1.dev1 (after upgrade from 0.9.0.dev1)
  • Platform: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions