bcquality/microsoft/knowledge/performance
Jesper Schulz-Wedde 62dabf9a11 Co-locate AL samples next to their knowledge articles
The /samples/ top-level tree is replaced with sibling files in each
knowledge-layer folder. An article and its demonstrations now live
side-by-side:

  microsoft/knowledge/<domain>/<slug>.md
  microsoft/knowledge/<domain>/<slug>.good.al
  microsoft/knowledge/<domain>/<slug>.bad.al

Rationale:
- Proximity. An article and its paired samples are one unit; the
  filesystem now reflects that.
- Layer ownership. Samples inherit layer precedence for free -- a
  /custom/ fork can override an article and its samples atomically,
  which the shared /samples/ tree previously made awkward.
- Trivial migration path. Action-skill source globs
  (*/knowledge/<domain>/**/*.md) are unchanged; sample discovery is a
  sibling-filename lookup.

Changes:
- git mv of all 65 sample files from samples/<domain>/<slug>/{bad,good}.al
  to microsoft/knowledge/<domain>/<slug>.{bad,good}.al (history preserved).
- Update See-sample references in all 37 articles that ship samples.
- skills/read.md: replace the no-code-blocks bullet with a pointer to a
  new Sample files section that fully specifies the sibling convention,
  the kinds (good/bad + forward-compatible), multi-technology rules,
  demonstration-only status, and layer-precedence behaviour.
- skills/write.md: update the samples pointer to match.
- README.md: annotate the knowledge tree with the sample sibling shape.
- samples/README.md deleted; content lifted into skills/read.md.
- Both generators (C:\temp\gen_performance_knowledge.py,
  C:\temp\gen_security_knowledge.py) updated to emit at the new paths
  and to stop writing samples/README.md. Re-running them is idempotent
  against the committed layout.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
keep-transaction-scope-short.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
keep-transaction-scope-short.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
keep-transaction-scope-short.md Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-strsubstno-for-message-formatting.bad.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-strsubstno-for-message-formatting.good.al Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00
use-strsubstno-for-message-formatting.md Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +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 Co-locate AL samples next to their knowledge articles 2026-04-17 13:45:33 +02:00