Fission-AI/OpenSpec · error
Some ' ' remotes are not non-empty strings; the ids are…
Error message
Some '${fieldName}' remotes are not non-empty strings; the ids are kept without a clone source What it means
Warning from parseDeclarationList: some entries carry a 'remote' that is not a non-empty string. The ids are kept (deduplicated as usual) but without a clone source, so any clone step will need the remote supplied later.
Solutions
- Set each entry's remote to a non-empty clone URL string
- Remove the invalid remote so the id is clearly source-less
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/core/project-config.ts:239 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25).
Data as JSON: /api/errors/23dd6b8507edd6a4.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/project-config.ts:239
if (!declaration) {
droppedEntries = true;
continue;
}
const existing = byId.get(declaration.id);
if (!existing) {
byId.set(declaration.id, declaration);
} else if (existing.remote === undefined && declaration.remote !== undefined) {
existing.remote = declaration.remote;
}
}
if (droppedEntries) {
console.warn(`Some '${fieldName}' entries are invalid, ignoring them`);
}
if (droppedRemotes) {
console.warn(
`Some '${fieldName}' remotes are not non-empty strings; the ids are kept without a clone source`
);
}
return byId.size > 0 ? [...byId.values()] : undefined;
}
export const MAX_CONTEXT_SIZE = 50 * 1024; // 50KB hard limit, shared with the references index
/**
* Read and parse openspec/config.yaml from project root.
* Uses resilient parsing - validates each field independently using Zod safeParse.
* Returns null if file doesn't exist.
* Returns partial config if some fields are invalid (with warnings).
*
* Performance note (Jan 2025):
* Benchmarks showed direct file reads are fast enough without caching:
* - Typical config (1KB): ~0.5ms per read
* - Large config (50KB): ~1.6ms per readView on GitHub (pinned to 6926ccb18a)