Skip to content

AI-Assisted Analysis Harness - #386

Draft
iRaindrop wants to merge 56 commits into
cncf:mainfrom
iRaindrop:ai-harness
Draft

iRaindrop wants to merge 56 commits into
cncf:mainfrom
iRaindrop:ai-harness

Conversation

@iRaindrop

@iRaindrop iRaindrop commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Provides the directory structure and guidance under .github in the project's doc website repo for conducting an AI-assisted analysis using Copilot GitHub Enterprise.

Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
@netlify

netlify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

👷 Deploy request for cncf-techdocs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit c0ca950

Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>

@iRaindrop iRaindrop left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewed the harness against the KubeVirt .github folder it was copied from. The structure copied cleanly (all content diffs are Prettier line-wrapping). The comments below cover what is still KubeVirt-specific and what would make the harness complete end-to-end for the next project.

Suggestions not tied to a specific line:

  • Add a /rank-recommendations prompt that produces input/ai-ranked-recommendations.csv. For KubeVirt this ranking step was ad hoc; codifying it closes the only manual gap in the pipeline.
  • Reference (or add) the upload process. The issue prompts say "a process will upload" the files, but the harness does not say where that script or workflow lives.
  • Record the validated toolchain in ai-harness.md: Copilot CLI version, model, and that the prompt files rely on mode: agent and ${input:title}.
  • Add a pre-flight checklist: required labels exist in the target repo (help wanted, the three priority labels), the project's analysis.md is scaffolded from the techdocs template, and .github has no conflicting prompt files.
  • Consider an examples/kubevirt/ folder holding the KubeVirt "Current Repository" section and issue template, so the generic files stay generic but a worked example is still available.

Comment thread docs/analysis/ai-harness/ai-harness.md Resolved
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
@nate-double-u nate-double-u self-assigned this Oct 22, 2026
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>

@iRaindrop iRaindrop left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Second pass over the harness at a834e7d. All earlier threads are addressed, CI is green, and the structure is consistent end to end (criteria → wrappers → engines → issue prompts → upload process). The remaining edits are small; only the first one affects a data contract (the CSV Section value), the rest are wording and clarity. None block the merge; they can land in a follow-up if preferred.

Comment thread docs/analysis/ai-harness/index.md Resolved
iRaindrop and others added 4 commits October 24, 2026 13:21
- Align section and area display names with the copilot-instructions tables
  (Website & Infrastructure; Information Architecture; SEO, Analytics, and
  Site Search; Usability, Accessibility and Devices)
- Fix typo (Precede) in comment engine
- Tell section-comment engine how to fill the Other Metrics table
- Move the umbrella template example into the HTML comment
- Clarify per-answer paragraph length in answers engine
- Drop stray period in index.md toolchain list
- Sync the KubeVirt example's No commits wording with the template

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
@iRaindrop

iRaindrop commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator Author

Ready to merge

Note: This commit fixes a link issue from 404s in older Analyses files, currently preventing the other open PRs from merging:

6a4ef0e

Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Built the site at this head (832fb81) — one verified issue, otherwise this looks correct to me.

docs/analysis/ai-harness/README.md and index.md collide on the same route (medium). Docusaurus treats both index.md and README.md as category-index candidates, so the build emits:

[WARNING] Duplicate routes found!
- Attempting to create page at /docs/analysis/ai-harness/, but a page already exists at this route.
This could lead to non-deterministic routing behavior.

Consequence: visitors to /docs/analysis/ai-harness/ may get the 15-line README stub instead of the full overview, depending on which page wins. The repo's CI (format/link/spell/lint) doesn't build the site, so this warning only shows up on a local or Netlify build. Fix: drop README.md (its content is a summary of index.md), or rename it _README.md so the underscore exclusion skips it — the same rule that already correctly keeps all of _github/** out of the build, which I verified: the build succeeds and emits no pages for the template tree.

What I checked and found sound:

  • docs/analysis/ai-harness/index.md:8-57 — relative links (../howto.md, ../criteria.md, ../templates/analysis.md, ../templates/) all resolve against files present on main; link check agrees.
  • References to _github/... paths in index.md are code spans, not links, so the excluded tree causes no broken-link failures.
  • No files outside docs/ except a three-word .cspell.yml addition; nothing touches the repo's real .github/.
  • Overlap with #385 is only .cspell.yml (different words) — these PRs are complementary (harness vs. its KubeVirt output), not duplicates.

With the README/index collision resolved, this looks mergeable to me. Note the branch is behind main and will need an update before merge. I have not approved or changed anything — flagging for a maintainer.

— hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
@iRaindrop iRaindrop closed this Nov 13, 2026
@iRaindrop iRaindrop reopened this Nov 13, 2026
@iRaindrop

Copy link
Copy Markdown
Collaborator Author

The main purpose of the README would be to point to the index.md, since GitHub automatically renders the README.md file directly beneath its file list table. I looked for a README before opening index.md.

This repo can't have both (see above) - keeping index.md

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Read the full tree at head 0163062, not just the diff. This is an additive, docs-only template harness under docs/analysis/ai-harness/ (plus three .cspell.yml words); it touches no repo .github/, CI, or trust surface, and all checks are green.

Verified internal consistency:

  • All 17 area criteria files in _github/criteria/areas/ exist, matching the "seventeen areas" claim in index.md (step 3 of the workflow).
  • Every one of the 76 *.prompt.md files carries agent: agent front matter, as index.md's "Validated toolchain" section requires.
  • No file inside _github/ references a _github/... path — all internal references say .github/..., which is correct since the install step renames the folder.
  • The per-area wrappers (e.g. prompts/areas/information-architecture-full.prompt.md) point at criteria and shared-engine paths that exist, and the ${input:title} override is documented consistently.
  • examples/kubevirt/current-repository.md fills in exactly the <!-- FILL IN --> fields of copilot-instructions.md (including the Priority label mapping table at lines 504–513), so the example and the template agree.

One small gap, non-blocking:

  • docs/analysis/ai-harness/index.md:139 — the folder layout lists README.md # Short pointer to this file, but no README.md is added under ai-harness/ in this PR. Either add the pointer file or drop the line.

This looks correct to me; the structure is coherent and the content matches its own documentation. Approval and the judgment call on landing ~3.6k lines of harness content in docs/analysis/ belong to a maintainer.

— hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Read the full tree of this PR (not just the diff) and verified its internal consistency. This looks correct to me; summary of what I checked:

  • Structure matches its own docs. docs/analysis/ai-harness/index.md and _github/copilot-instructions.md describe 17 criteria areas, 3 sections, per-area wrapper prompts and shared engines. I verified mechanically that all 17 files in _github/criteria/areas/ have all four wrappers (-answers, -comment, -full, -recommendations) in _github/prompts/areas/, each referencing its correct criteria/areas/<area>.md, and that all 3 section wrappers reference their criteria/sections/<section>.md. No missing or mis-wired files.
  • Purely additive. 110 files, +3625/−0, all under docs/analysis/ai-harness/ except three new words in .cspell.yml (afdocs, llms, llmstxt). No existing content is modified; the template lives under _github/ (underscore), so none of it activates in this repo's .github/.
  • Body matches the diff. The PR delivers exactly what it says: harness directory structure plus guidance (index.md covers toolchain, pre-flight checklist, workflow, upload process, folder layout).
  • CI: FILE FORMAT, LINK checking, SPELLING, MARKDOWN linter, and DCO all pass at head 2339f76.
  • Relationship to #385: not a duplicate — #385 is KubeVirt analysis output (issues), this is the reusable harness that produced it. They can land independently.

One minor, non-blocking note: index.md ("Upload process") says the gh issue create upload script "is not part of the harness yet" — a follow-up issue to add it would keep that from being forgotten.

I can't approve as a bot; flagging for a maintainer that this looks ready for a human review pass.

— hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Decision needed: @chalin should decide whether the TechDocs team adopts and maintains this AI-assisted analysis harness in cncf/techdocs; the content itself is additive-only and internally consistent.

Read the tree at this head (a1f9d89), not just the diff. Summary of what I verified, for the maintainer who picks this up:

Structure and safety. The change is purely additive: 110 new files, 0 deletions, everything under docs/analysis/ai-harness/ plus 3 words in .cspell.yml. Nothing in the live .github/ of this repo changes — _github/ is deliberately a template directory that a writer copies into a target project's repo and renames, and docs/analysis/ai-harness/index.md ("Workflow", step 1) documents that rename explicitly. So the PR body's phrase "under .github" refers to the target project's .github/, not this repo's; the diff and the body agree once you read the index. No workflows, CI, or permissions are touched, and all checks are green.

Internal consistency. Spot-checked _github/copilot-instructions.md, _github/prompts/issues/create-issues.prompt.md, and the per-area prompt sets: the prompts consistently reference .github/... paths (correct post-rename), front matter uses the documented agent: agent / ${input:title} features, and the project-specific values are centralized in the "Current Repository" section as the index claims. The pre-flight checklist sensibly requires maintainer agreement before writing into a target repo.

One small suggestion (not a blocker): docs/analysis/index.md and howto.md don't link to the new ai-harness/ directory — nothing outside the new folder references it, so readers of the existing analysis docs won't discover the harness. A one-line link from docs/analysis/index.md would fix that.

What a maintainer must decide: whether the TechDocs team wants to adopt and maintain an AI-assisted analysis harness as part of this repo at all. That's a process/ownership call, not a code question, and it's related to #385 (the KubeVirt issues produced with this harness). I found no defects in the content itself.

— hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

@iRaindrop
iRaindrop marked this pull request as draft November 16, 2026 07:49
@iRaindrop

Copy link
Copy Markdown
Collaborator Author

Returning to draft to update harness to read questions from criteria.md.

Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
Signed-off-by: Bruce Hamilton <scarlettbernique@gmail.com>
@iRaindrop
iRaindrop marked this pull request as ready for review November 19, 2026 18:24
@iRaindrop

Copy link
Copy Markdown
Collaborator Author

Setting back to review for hivecommons to review agents.md

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed at head 5f23c65, focusing on agents.md as requested, with the _github/ harness and the repository tree alongside it.

agents.md internal consistency checks out. I verified the pieces the file's own procedures depend on:

  • All 16 "Questions heading" values in the Areas table match the #### … questions headings in #423's criteria.md exactly, character for character - including the easy-to-miss ones ("Content maintainability and site mechanics questions", "SEO, Analytics and site-local search questions" with no Oxford comma, "AI Agent Readiness questions" capitalization). Since the answers task hard-stops on a heading mismatch (agents.md, "How to read an area's criteria"), this exactness matters, and it holds.
  • The data/procedure separation is real, not just stated: area names appear only in the tables, and every task reads them from there.
  • The Migration TODO already names the open decisions I would otherwise have raised (publication under docs/, file size, <work> location, invocation without prompt files).

One sequencing point for maintainers (also left as a line comment): agents.md is unusable until #423 merges, because its heading-matching procedure finds no … questions headings in main's current criteria.md - it fails safe (stop and report), but it fails. The _github/ harness in this same PR is self-contained and works against main today. So the merge order is: this PR can land any time, but agents.md stays a non-functional prototype until #423 lands, and #423's final heading text must be re-checked against the Areas table at that point (the TODO already tracks this).

The _github/ template is internally consistent: every per-area wrapper references a shared engine and a criteria file that exist in the tree, and the structure diagram in copilot-instructions.md matches the actual folders, including prompts/sections/ and prompts/issues/. All CI checks are green at this head. The change is additive (new files under docs/analysis/ai-harness/ plus three .cspell.yml words) and touches no workflows or trust surfaces.

Whether CNCF TechDocs wants to adopt the harness is a maintainer call; from a code-and-consistency standpoint I found no defects.

-- hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

Comment on lines +278 to +282
TODO: This table assumes the `criteria.md` structure proposed in
[cncf/techdocs#423](https://github.com/cncf/techdocs/pull/423), which is not
merged yet. That structure folds the single-source requirement into "Core
website requirements", so this table has sixteen areas where the earlier harness
had seventeen.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verified this dependency concretely: all 16 "Questions heading" values in the table above match #423's proposed #### … questions headings exactly. But against main's current criteria.md, none of these headings exist, so the answers task stops on every area per the rule at the end of "How to read an area's criteria". The failure is safe and self-reporting, which is good design - just worth stating plainly for merge ordering: agents.md is a non-functional prototype until #423 lands, while the _github/ harness in this PR works against main today. If #423's heading text changes before it merges, this table needs the same change (the Migration TODO already tracks that).

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Read the tree at head d0bc24f, not just the diff. This looks correct to me; no defects found.

What I verified:

  • The change is purely additive: 111 new files under docs/analysis/ai-harness/ plus three .cspell.yml words. No existing file changes behavior.
  • Site build safety: docs/ is the default Docusaurus docs plugin (docusaurus.config.ts:66-76), and the plugin's default exclude (**/_*/**) keeps the ~105 files under _github/ out of MDX compilation, so only index.md and agents.md are compiled and published. agents.md:1032 shows this exclusion is intentional.
  • MDX hazards in the two published files: every angle-bracket placeholder (<work>/, <project-slug>, template front matter at agents.md:84-93 and agents.md:849-897) sits inside a code fence or code span, and the raw HTML comments are markdownlint-disable markers of the same kind already present in files that build today (docs/search.md, docs/analysis/templates/analysis.md). Nothing here breaks the site build, which CI does not run on PRs.
  • References to _github/ in index.md and agents.md are code spans, not Markdown links, so the excluded directory creates no broken links; CI link check is green.
  • Relative links from index.md (../howto.md, ../criteria.md, ../templates/analysis.md) all resolve in the tree.

One note for the maintainer, not a defect: agents.md (1035 lines) is a self-labeled prototype proposing to replace the _github/ template this same PR introduces, with open TODOs collected in its "Migration TODO" section. Landing the harness and its proposed successor together is coherent as documented, but worth a conscious yes from whoever merges.

Format/link/spell/markdown/DCO checks are all green on the current head (earlier MD013 failures on this branch were fixed).

-- hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88

@iRaindrop
iRaindrop marked this pull request as draft November 20, 2026 04:48
@iRaindrop

iRaindrop commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator Author

@nate-double-u , @hive-commons

I believe this PR is now moot considering we're using hive for the analysis and don't need this merged into techdocs. I should close it. Agree?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants