GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — sync_research_workflow: parseable-but-wrong-shaped manifest/profile JSON crashes with a raw traceback (or a misleading 'missing directory: .agents/skills/r') instead of the tool's clean diagnostic · Issue #2800 · developing-today/code Closed Labels app/research-workflowscripts/research_workflow* + sync_research_workflow toolingeffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item DescriptionSummary
One shape is actively misleading rather than crashing: a string Evidence (main
|
| Case | Result |
|---|---|
control: valid fixture, --check after a --write |
returns cleanly |
| manifest with a JSON syntax error | JSONDecodeError (a ValueError) — caught by main, clean error + exit 1 ✅ |
manifest = [] (top-level array) |
TypeError: list indices must be integers or slices, not str — not caught |
manifest = {"files": ["x"]} |
AttributeError: 'list' object has no attribute 'keys' (:112) — not caught |
manifest = {"files": "abc"} |
AttributeError: 'str' object has no attribute 'keys' — not caught |
source profile = [] |
AttributeError: 'list' object has no attribute 'get' (:46) — not caught |
source profile workflow_docs: 123 |
TypeError: argument should be a str or an os.PathLike… not 'int' (:47) — not caught |
source profile lifecycle_skills: [123] |
TypeError: unsupported operand type(s) for /: 'PosixPath' and 'int' — not caught |
source profile lifecycle_skills: "research-workflow" (string) |
misleading ValueError: missing source directory: .agents/skills/r (iterates the string's characters) |
Relevant code: profiles loaded at scripts/sync_research_workflow.py:44-47; manifest loaded at :96-99 and used as old["files"].get(...) / old["files"].keys() at :109, :112, :122; the catch tuple at :173 omits TypeError and AttributeError.
This script is the guard that keeps the mirrored research-workflow copy honest: it is supposed to refuse bad states with a readable reason ("local edits need reconciliation", "workflow mirror differs"). The manifest and profiles are exactly the files that get hand-edited, truncated by a bad merge, or regenerated by another tool — the moment the guard is most needed is the moment its input is malformed. Today that moment produces a traceback that points at PosixPath arithmetic instead of at the offending file and field, and the string-lifecycle_skills case sends the operator hunting for a directory named r. Sibling tool scripts/research_workflow.py already validates its profile shapes with isinstance checks (profile() at :77-102); the sync tool does not.
files not an object of string digests; workflow_docs not a string; lifecycle_skills not a list of strings) fails with a one-line diagnostic naming the file and the offending field, on stderr, exit 1 — no traceback.lifecycle_skills is rejected as a shape error, never iterated as characters.scripts/tests/test_sync_research_workflow.py still pass.files, non-object profile, and string lifecycle_skills.🤖 Agent note · filed
🤖 Agent note · picked up
🤖 Agent note · done
Merge pull request #3700 from developing-today/queue/4365-2800-sync-r…