bcquality/microsoft/knowledge/performance
Jesper Schulz-Wedde e570d6113f Extract 55 knowledge articles from BC review-agent prompt
Adds 55 articles (plus 76 code samples) spanning four new domains and
two existing domains, extracted from the internal Business Central
review-agent prompt. Content was filtered against BCQuality's
remedial-knowledge premise: each article encodes BC-specific behaviour,
a CodeCop rule, a platform API semantic, or an anti-false-positive
guideline that a capable LLM would otherwise get wrong.

New domains:
- privacy (11 articles): DataClassification inheritance semantics, the
  StrSubstNo-defeats-Error-telemetry-classification pitfall, Privacy
  Notice consent for outgoing requests, anti-false-positives for pages
  and in-memory data.
- upgrade (11 articles): upgrade-codeunit structure, upgrade-tag
  lifecycle and registration, protected DB reads, DataTransfer for
  large datasets, InitValue semantics, enum-ordinal preservation,
  obsolete-workflow, first-install detection.
- ui (9 articles): caption capitalization by phrase type, tooltip voice,
  teaching-tip vs tooltip, tour-tip conventions, character limits,
  banned terms, ampersand handling, title punctuation.
- style (11 articles): label-suffix convention, API page naming,
  temporary-variable prefix, label properties (Comment/Locked), named
  invocations, FieldCaption in user messages, OptionCaption pairing,
  Error-parameter passing, `this` keyword, required parentheses, file
  naming.

Gaps in existing domains:
- performance (11 articles): production-scale table catalog (no row
  counts, per internal-data concern), anti-false-positive for bounded
  tables, guard-before-Get ordering, redundant-Get-in-OnAfterGetRecord,
  LockTable in read-only helpers, combined ModifyAll passes, writes in
  OnAfterGetRecord, SetLoadFields heuristics, temporary-table
  regressions, FlowField source-table widening, MaintainSQLIndex
  disabling SIFT.
- security (2 articles): environment-specific hardcoded GUIDs,
  ValidateTableRelation=false on user input.

Intentionally excluded: specific production P95 row-count numbers
(aggregated internal telemetry); rewritten as categorical guidance on
which tables to treat as production-scale without publishing sizes.

All articles use `bc-version: [all]` (applies to every BC version, per
the new schema sentinel). Validator passes with 0 errors / 0 warnings.
2026-04-23 16:43:42 +02:00
..
add-sift-keys-for-flowfields.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
add-sift-keys-for-flowfields.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
avoid-calcfields-in-loops.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-calcfields-in-loops.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-calcfields-in-loops.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
avoid-commit-inside-loops.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-commit-inside-loops.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
avoid-findfirst-with-next.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-findfirst-with-next.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
avoid-user-interaction-in-transactions.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-user-interaction-in-transactions.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
avoid-user-interaction-in-transactions.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
combine-multiple-modifyall-calls.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
combine-multiple-modifyall-calls.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
combine-multiple-modifyall-calls.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-flag-performance-on-bounded-tables.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-modify-records-in-onaftergetrecord.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-modify-records-in-onaftergetrecord.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-modify-records-in-onaftergetrecord.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-re-get-rec-inside-onaftergetrecord.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-re-get-rec-inside-onaftergetrecord.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-re-get-rec-inside-onaftergetrecord.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
do-not-retarget-flowfield-calcformula-to-larger-tables.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
filter-before-find.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
filter-before-find.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
filter-before-find.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
guard-before-get-not-after.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
guard-before-get-not-after.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
guard-before-get-not-after.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
keep-event-subscribers-lightweight.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
keep-event-subscribers-lightweight.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
keep-sourcetabletemporary-on-api-and-background-pages.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
maintainsqlindex-false-disables-sift.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
only-fetch-records-you-use.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
only-fetch-records-you-use.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
only-fetch-records-you-use.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
prefer-direct-record-over-recordref.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
prefer-direct-record-over-recordref.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
prefer-direct-record-over-recordref.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
prefer-get-for-primary-key-lookups.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
prefer-get-for-primary-key-lookups.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
prefer-get-for-primary-key-lookups.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
set-current-key-to-match-filters.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
set-current-key-to-match-filters.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
skip-setloadfields-on-narrow-tables-and-short-loops.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
split-read-only-and-write-paths-to-avoid-locktable.bad.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
split-read-only-and-write-paths-to-avoid-locktable.good.al Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
split-read-only-and-write-paths-to-avoid-locktable.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
treat-ledger-entry-tables-as-production-scale.md Extract 55 knowledge articles from BC review-agent prompt 2026-04-23 16:43:42 +02:00
use-addloadfields-in-report-layouts.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-addloadfields-in-report-layouts.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
use-calcsums-for-flowfield-totals.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-calcsums-for-flowfield-totals.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-calcsums-for-flowfield-totals.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
use-findset-readonly-by-default.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-findset-readonly-by-default.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-findset-readonly-by-default.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
use-findset-with-next.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-findset-with-next.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-findset-with-next.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
use-insert-false-when-skipping-triggers.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-insert-false-when-skipping-triggers.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
use-isempty-for-existence-checks.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-isempty-for-existence-checks.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-isempty-for-existence-checks.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
use-setloadfields-for-partial-records.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-setloadfields-for-partial-records.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-setloadfields-for-partial-records.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
use-single-instance-codeunits-for-caching.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-single-instance-codeunits-for-caching.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00
use-temporary-tables-for-intermediate-data.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-temporary-tables-for-intermediate-data.md Add [all] sentinel to bc-version; apply to version-agnostic knowledge 2026-04-23 16:00:03 +02:00