* Improve partner onboarding and documentation navigation Lead with a complete plugin quick start and add task-oriented usage, troubleshooting, customization, and contribution guides. Preserve the broader plugin framing, correct conflicting contract guidance, support Agents folder reviews, and align repository validation. Convert existing sample references to clickable links without changing knowledge rules. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * Complete partner contribution and knowledge consumption guides Explain direct reading, supplied skills, and custom-agent consumption. Add a first-contribution walkthrough and concrete integration bootstrap, and clarify SetLoadFields guidance with authoritative sources and explicit review heuristics. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
4.7 KiB
Build a lightweight standalone review runner
BCQuality provides review knowledge, routing, execution instructions, and structured output contracts. It intentionally does not choose models, schedule agents, retry failures, or collect usage telemetry. A standalone runner can add those host-specific capabilities without copying Business Central rules out of BCQuality.
Use the built-in standalone plugin when the host's default execution is sufficient. Build a runner when you need explicit control over cost, latency, concurrency, or integration with another review surface.
Start with the minimal integration example to connect your agent to the content before adding runner-specific behavior.
Keep BCQuality current
For plugin installation, use the quick start. For version identifiers, forks, and reproducible snapshots, see updates and versions.
A runner that reads BCQuality from a checkout should pin a commit or release and upgrade it deliberately. Do not copy knowledge files or action-skill prose into the runner; doing so creates a second, drifting quality policy.
Review a complete app folder
For a committed app, generated fixture, or source tree that has no meaningful
diff, supply the app's root directory as folder-path. The review scope is
every relevant file below that directory, including app.json and AL source.
The folder does not need to be a Git repository.
The app-review example uses this input through the standalone adapter. Because a folder is a current-state snapshot, the review must not invent a previous app version when evaluating comparison-only rules. Entry can return more than one top-level skill; preserve all reports, including separately dispatched Community reviews, rather than assuming the Microsoft coordinator is the only result.
Minimal runner flow
- Give the agent the review input and a task context containing the user's actual goal, available input types, and any known BC applicability dimensions.
- Invoke
skills/entry.md. Entry prepares the knowledge index and returns the action skills to run. Do not reproduce its routing logic. - Execute every dispatched action skill with the exact input subset in its
dispatch record. Read
skills/read.mdandskills/do.mdon demand. - When an action skill declares
sub-skills, execute every relevant leaf as a discrete invocation. Leaves are independent and may be scheduled serially or concurrently. - Collect each complete findings-report into
sub-resultsin the declaredsub-skillsorder, not completion order. Run the super-skill self-review only after all leaves have finished. - Apply the DO composition, failure, deduplication, reference-integrity, and outcome rules. Return strict JSON before rendering it for people or another system.
The runner must never inspect the diff to skip a review domain. A leaf decides
its own task-level applicability and reports not-applicable or
no-knowledge.
Runner-owned choices
Keep these settings and behaviors outside BCQuality:
- coordinator and leaf models;
- serial or concurrent scheduling and maximum concurrency;
- retries, timeouts, and rate-limit handling;
- token, cost, duration, and actual-concurrency telemetry;
- conversion of the findings report into Markdown, annotations, or PR comments.
Model selection and requested concurrency are deployment choices, not review rules. Evaluate them against representative applications before making them a default. Report actual usage and concurrency only when the host exposes native evidence; do not infer them from the requested profile.
Failure and output checklist
A compatible runner:
- invokes every worklisted leaf exactly once unless a documented retry replaces a failed attempt;
- keeps leaf contexts isolated and passes only the inputs they declare;
- preserves every leaf report, including failed reports, in
sub-results; - excludes unreliable findings from failed leaves and returns
partialwhen only part of the review is reliable; - orders
sub-resultsby the declared worklist and orders rendered findings deterministically; - calculates top-level severity counts from deduplicated top-level findings, not by summing leaf counts;
- preserves knowledge paths verbatim and verifies references before publishing;
- records the BCQuality commit or release used for the run.
A CI integration, custom agent, or small host-native plugin can implement this runner contract. These remain optional consumers: BCQuality's knowledge and skills stay independent of their orchestration choices.