syedofc
syedofc
**Context.** The spec says uppercase `artifact_hash` input is accepted and silently normalised (`docs/identity-spec.md:98-99`). The schema does normalise it (`forkit/schemas/base.py:82`). However, `verify_passport_id` in `forkit/domain/integrity.py:52-59` passes the raw `artifact_hash` to `compute_id`. Reproduced:...
**Context.** `docs/identity-spec.md` §7 (around lines 181–191) says `"v1.0.0"` and `"latest"` are invalid and the `v` prefix is not accepted. But `validate_version` in `forkit/domain/identity.py:64-75` only counts the dot-separated parts. It accepts...
**Context.** `forkit/cli/main.py:207-218` prints empty "Ancestors" and "Descendants" sections and exits 0 for any ID. Reproduced: `forkit lineage deadbeef` exits 0. `inspect` (`:169-172`) and `hosted-proof` (`:236-239`) already print `Not found: `...
**Context.** The `inspect` argument help says "Full or partial passport ID" (`forkit/cli/main.py:58`, used at `:165-173`). `LocalRegistry.get` only does an exact file lookup (`forkit/registry/local.py:97-101, 126-135`). Reproduced: after `forkit register model examples/register_model.yaml`,...
**Context.** `LineageGraph._dfs` is recursive (`forkit/domain/lineage.py:292-305`) and is used by `ancestors` and `descendants` (`:220-232`), which `forkit lineage` calls. Reproduced: a chain of 3,000 `DERIVED_FROM` model nodes makes `ancestors(leaf)` raise `RecursionError`. `_would_cycle`...
**Context.** `forkit/cli/main.py:215,218` formats `{n.node_type}`. `NodeType` is a `str, Enum` (`forkit/domain/lineage.py:43-45`). On Python 3.12+ (verified on 3.14.4), `f"[{n.node_type}]"` gives `[NodeType.MODEL]`. `LineageNode.__repr__` (`lineage.py:83`) has the same problem, giving ``. `LineageEdge.__repr__` (`:113-115`) already...
**Context.** `LineageGraph.load` (`forkit/domain/lineage.py:256-279`) appends edges straight into `_edges`, `_adj` and `_radj`. It skips the endpoint and cycle checks that `add_edge` enforces (`:141-158`). `LocalRegistry.lineage` loads this file from the registry root...
**Context.** `forkit/cli/main.py:145-160` calls `yaml_file.read_text()`, `yaml.safe_load` and `from_dict` with no error handling. Reproduced: - `forkit register model missing.yaml` shows a Rich-formatted `FileNotFoundError` traceback. - A YAML file with only `name` and...