# Áp dụng thủ công vào .gitlab-ci.yml của repo AK-Docs (mục 5.1.2 Memory-Architecture-v1.0.md).
# Chạy trên mọi MR có label `memory`, TRƯỚC khi PM approve.
memory-lint:
  stage: lint
  rules:
    - if: '$CI_MERGE_REQUEST_LABELS =~ /memory/'
  script:
    - node scripts/ci/memory-lint.js  # validate frontmatter đủ trường, ≤150 từ, 1 fact/file,
                                       # id không trùng, id khớp đường dẫn file, quét secret/PII
                                       # (script CI thực tế nằm trong repo AK-Docs, không phải kit)
