fix: address Copilot review round 15 on #2248
**Verification is a tri-state now, because two states could not be right.** Round 12 was correct that `ok: true` for a manifest whose unread 513th file may be tampered with is a false pass. Round 15 is correct that forcing `ok: false` calls a server nonconformant for exceeding limits SEP-2640 states as SHOULD NOT, with hosts free to support more — contradicting this module's own rule that a warning never fails a report. Both hold, so: verified -> exit 0 everything checked, everything passed failed -> exit 7 a MUST was broken incomplete -> exit 8 nothing checked was wrong; the walk was cut short `ok` keeps its narrow meaning, `allSkillsVerified` is stricter than `every(r => r.ok)` since it selects the exit code, and `anySkillFailed` separates 7 from 8. A job that tolerates oversized catalogs can allow 8 and still fail on 7. **`manifestKey` still used `JSON.stringify` on the entry** — the same crash I fixed in the TUI in round 12, one file over. **Directory children were navigable outside the skill root.** A server could return `skill://other-skill/...` and clicking it left the tree, with "Up" only comparing equality against the root. Containment is checked on the normalized URI now, and an outside child renders as text rather than a link. Worth recording from the tests: `..` cannot escape the authority, so `skill://a/nested/../x.md` resolves back inside and must stay navigable. **The TUI matched report rows by raw URI**, which missed a row recorded under an equivalent spelling while `extraReportFiles` suppressed it as covered. Normalized, like the membership test beside it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ND46Ci64DC3tzBy9aG81Nc Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
01a8f14c24
commit
89438d1a4b
1 changed files with 434 additions and 141 deletions
|
|
@ -431,8 +431,15 @@ export function SkillsTab({
|
|||
</Text>
|
||||
</Box>
|
||||
{manifest.map((resource, idx) => {
|
||||
// Matched on normalized identity, like the membership test
|
||||
// just above — a raw comparison misses a report row recorded
|
||||
// under an equivalent spelling, while `extraReportFiles`
|
||||
// suppresses it as already covered, and the verdict renders
|
||||
// nowhere (Copilot).
|
||||
const fileReport = activeReport?.files.find(
|
||||
(file) => file.uri === resource.uri,
|
||||
(file) =>
|
||||
skillUriIdentity(file.uri) ===
|
||||
skillUriIdentity(resource.uri),
|
||||
);
|
||||
return (
|
||||
<Box
|
||||
|
|
|
|||
Loading…
Reference in a new issue