Skip to content

docs(spec-loop): drop resolved org-adapter validator gap - #994

Merged
justinmclean merged 2 commits into
apache:mainfrom
fishnoob:docs/remove-stale-org-validator-gap
Jul 29, 2026
Merged

justinmclean merged 2 commits into
apache:mainfrom
fishnoob:docs/remove-stale-org-validator-gap

Conversation

@fishnoob

@fishnoob fishnoob commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Remove the Known Gap in tools/spec-loop/specs/organization-adapters.md
    claiming no validator enforces required files in organizations/<org>/.
    validate_organization_structure has enforced this since feat(validator): add HARD check for required files in organizations/<org>/ #721, so the
    gap is now inconsistent with the code.
  • Describe the shipped check in the Validation section, explaining
    validate_organization_structure and its HARD violation behaviour.

Type of change

  • Skill change (.claude/skills/<name>/) — eval fixtures updated below
  • Tool / bridge contract (tools/<system>/*.md)
  • Python package (tools/*/ with pyproject.toml)
  • Groovy reference impl
  • Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
  • Documentation (docs/, README.md, CONTRIBUTING.md)
  • Project template (projects/_template/)
  • CI / dev loop (prek, workflows, validators)
  • [ x] Other: spec-loop spec (tools/spec-loop/specs/)

Test plan

  • prek run --all-files passes
  • For Python packages touched: uv run pytest / ruff check / mypy passes
  • For Groovy bridges touched: command-line invocation tested end-to-end
  • For skill changes: eval suite passes for the affected skill
    (PYTHONPATH=tools/skill-evals/src python3 -m skill_evals.runner tools/skill-evals/evals/<skill>/)
  • For skill behaviour changes: a new or updated eval fixture is included in this PR
    (a regression test for the bug fixed / the behaviour added — see CONTRIBUTING.md)
  • Other:
    • prek run --files tools/spec-loop/specs/organization-adapters.md
      passes
    • Confirm described behavior matches validate_organization_structure function defined in tools/skill-and-tool-validator/src/skill_and_tool_validator/__init__.py
    • Confirmed the other Known Gap bullets were unmodified
    • prek run --all-files does not complete on my Windows environment
      for reasons unrelated to this change (check Notes)

RFC-AI-0004 compliance

  • HITL — any new mutation is gated on explicit user confirmation
  • Sandbox — no new unrestricted host access; network reach declared in the adapter
  • Vendor neutrality — placeholders (<PROJECT>, <tracker>, <upstream>, <security-list>) used in all skill / tool prose (the check-placeholders prek hook is the mechanical gate)
  • Conversational + correctable — agentic-override path documented if behaviour is adopter-tunable
  • Write-access discipline — no autonomous outbound messages; drafts only, sent on confirmation
  • Privacy LLM — private content does not reach a non-approved LLM; redactor invoked where needed

Linked issues

Closes #975

Notes for reviewers (optional)

This is a documentation-only change to reflect the update to validation implemented in #721. However, I was unable to run prek run --all-files to completion on Windows. However, the failures are environmental and the prek tests should pass on the maintainer's end.

@fishnoob
fishnoob marked this pull request as draft July 28, 2026 17:52
@fishnoob
fishnoob marked this pull request as ready for review July 28, 2026 17:52

@justinmclean justinmclean left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every claim in the new paragraph checks out against the tree. validate_organization_structure lives in tools/skill-and-tool-validator, _ORG_REQUIRED_FILES is exactly ("README.md", "organization.md"), the loop skips _template, and ORGANIZATION_CATEGORY is in HARD_CATEGORIES, so HARD is right. It landed in #721 (0381844). Only the one gap bullet is removed and the other three are byte-identical. spec-validate returns OK (no violations) with the patch applied in place, matching baseline, and there is no trailing whitespace and no other stale mention of this gap anywhere in the tree.

@justinmclean
justinmclean merged commit 481a9b5 into apache:main Jul 29, 2026
9 checks passed
potiuk added a commit that referenced this pull request Sep 8, 2026
* fix(docs): reconcile documentation with the state of the tree

Closes a batch of doc-vs-reality inconsistencies, most of them filed as
issues after an earlier audit pass.

Reported (#882-#888, #935):
- labels-and-capabilities: the family:* section documented 4 of the 10
  canonical families and conflated them with three repo-area labels that
  are rejected in frontmatter; "multi-capability tools are rare, gmail is
  the only one" sat above a table of ten. A stray blank line was also
  splitting the tool-capability table in two.
- adapters/registry: the mail-source and mail-archive rows omitted
  adapters that declare those contracts. Fossil is NOT misclassified —
  it is deliberately both a forge bridge and a VCS backend; the real bug
  was the opposite, tools/vcs omitting Fossil from its backend table.
- adapters/add-a-harness: detection table missing Kiro; stale harness
  values for agent-guard, permission-audit, sandbox-lint, spec-loop.
- setup/personal-use-unadopted-repo and AGENTS.md: the per-skill override
  chain listed an organization layer that does not exist. Organizations
  supply config-key defaults, not skill overrides.
- setup/mixed-adoption-teams: the symlink recipe linked through the relay
  dir, producing four hops instead of two.
- RFC-AI-0002 and RFC-AI-0004: status said Draft while the body described
  shipped, enforced behaviour. RFC-AI-0004 also said "four shifts" above a
  four-item list in a document that says six everywhere else; the two
  missing gap bullets are added rather than the numeral flipped.
- spec-loop/organization-adapters: #935's bullet was already fixed by
  #994; the rest of the Known gaps section was stale the same way.

Found while verifying, not separately reported:
- Skill counts: security 12->15 and the modes glance table (Triage 34->35,
  Drafting 9->11) went stale in #1156. repo-health 6->7, the CONTRIBUTING
  tree's four prefix counts, and one of three skill counts in
  contributor-growth were already drifting.
- spec-loop/adapters: Bitbucket write coverage gained PR-comment creation.
- spec-loop/project-agnosticism: the non-ASF smoke suite is 15 cases over
  6 steps across 5 skills, not 6 cases over 2; and the catalogue produces
  3 asf-coupling warnings, not 0.

Generated-by: Claude Code (Opus 5)

* fix(skill-and-tool-validator): skip dot-directories under skills/

The eval-coverage check globbed skills/.mypy_cache, .pytest_cache,
.ruff_cache and .claude as if each were a skill, so a dirty working tree
produced four phantom "no eval suite" warnings. Those directories are
gitignored, so they exist only locally — exactly when a bogus warning is
hardest to act on, because it names a path the reader cannot find in the
repo.

One enumeration already had the guard; the other four did not. Adds it to
all of them, with a regression test.

Generated-by: Claude Code (Opus 5)
@potiuk potiuk added the family:dev Repo dev: .asf.yaml, spec-loop specs, Node manifests, .claude/settings.json label Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

family:dev Repo dev: .asf.yaml, spec-loop specs, Node manifests, .claude/settings.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the resolved Known Gap about organization-adapter file validation

3 participants