Skip to content

fix(ad): reconcile consolidation and inventory regressions - #13

Closed
FiraSenax wants to merge 20 commits into
soulemike:ad-test-consolidationfrom
FiraSenax:codex/fix-ad-consolidation-on-main
Closed

FiraSenax wants to merge 20 commits into
soulemike:ad-test-consolidationfrom
FiraSenax:codex/fix-ad-consolidation-on-main

Conversation

@FiraSenax

@FiraSenax FiraSenax commented Nov 17, 2026 •

Copy link
Copy Markdown

Description

Reconciles the AD consolidation branch with current upstream main (2d659e85) so the author can absorb these repairs into maester365/maester#2734.

Retains its 180 consolidated AD check IDs and documents all 90 existing replacements in the upgrade guide. The crosswalk was checked against the deleted IDs and the native-replacement registry. Existing check authorship and the consolidation's assessment model are preserved.

Changes

  • Resolve all eleven conflicted paths, retaining the consolidated checks and current MaximumInactiveDays, MaximumValidationAgeDays and MaximumPasswordAgeDays parameters.
  • Preserve current DISA framework validation while accommodating the consolidated catalog size.
  • Render multiple optional-feature scope DNs with a readable ; separator.
  • Preserve typed OU modification dates instead of parsing their invariant string representation using the host culture.
  • Backport the LDAP DER byte-array normalization already used by feat(ad): verify NTAuth CA certificate paths against published roots maester365/maester#2812 into the shared certificate inventory. Single and multi-valued projections work for all four inventory roles; mixed or malformed input still errors. The default inventory output shape is preserved.
  • Regenerate the test-builder data through its generator.

Validation

  • 1,857 focused cases passed, including the complete ScriptAnalyzer file, native metadata/lint, parameter conventions, changed-check regressions, framework integration and builder-data validation.
  • 25 certificate-inventory cases passed. The expanded suite has 12 failures before the projection fix and none after it.
  • The scope separator regression fails before the fix. The 45-case site/OU suite has six failures before the date fix and none after it, covering German and US English cultures and all three state representations.
  • Module build and built-output validation passed, including a fresh build of this exact repair in a clean temporary checkout. All 186 tests found under Product=ad had valid metadata.
  • Golden fixtures were regenerated; the merged selection fixture already matched. The full integration run's 13 Golden cases passed.
  • An initial complete integration run covered 212 files / 8,748 cases with eight failures. The three OU-date failures and builder-data drift were corrected and passed focused reruns. The remaining failures were the existing missing BOM, the host colour expectation, workspace-sensitive agent-doc generation and the catalog-build rejection fixture. BOM/colour failures reproduce on unchanged main; both workspace-sensitive checks pass isolated against this exact repair. No entirely green full-suite run is claimed.

Remaining upstream review

This remains a draft repair contribution. maester365#2734's live-AD validation and the maintainer decision on AD-FOR-03's assessment model versus maester365#2699 remain outstanding. No new live-AD validation or approval of the complete consolidation is claimed.

maester365#2812 carries the same repair ancestry and still follows maester365#2734 in merge order.

merill and others added 20 commits November 10, 2026 07:36
…checks (maester365#2739)

Add a DISA suite (tests/disa, IDs DISA.V-xxxxxx named after the STIG rule) with three
framework catalogues: disa-stig-entra-id (V1R2), disa-stig-intune-mdm (V1R2) and
disa-stig-intune-desktop (V1R1). Each lists every rule of its STIG with Category (CAT I-III),
RuleId, StigId and the NIST SP 800-53 Rev. 5 controls of its CCIs as Related.

Checks:
- New (Preview): DISA.V-273867 idle session timeout in minutes, DISA.V-270204 inactive
  accounts for all users, DISA.V-270209 DoD sign-in banner, DISA.V-270239 maximum password
  lifetime, DISA.V-270255 PIM activation alert recipients on every assigned role.
- Shims: 14 rules run CIS 5.2.2.2, 5.2.3.2, 5.2.3.8, CISA MS.AAD.4.1, 7.4, MT.1096, MT.1100 or
  one of the new checks, with DISA's values.
- Six Intune Desktop rules (acknowledged banner, ISSO account alerts) have no check.

Parameters for the shims: CIS 5.2.3.8 MinimumLockoutDurationSeconds (default 0, CIS unchanged),
CISA MS.AAD.4.1 RequiredLogCategory (default CISA's list), MT.1096 RequiredPolicyType (default any).

Shared Entra helpers in internal/services/entra: Get-MtActivityBasedTimeout (CIS 1.3.2),
Get-MtUserLastSignIn (ASD ISM-1648), Get-MtDomainPasswordValidity (CIS 1.3.1) and
Get-MtRoleActivationNotificationRecipient (CISA 7.8/7.9).

Register the suite and the DISA. prefix in the schema, pack tags, layout, lint, source and
framework unit tests, the report labels, the website generators, sidebar and home page, and the
docs. Regenerate the test builder data and the 2.x golden selection fixture.

Refs maester365#2738


Entire-Checkpoint: 01M6YVDH5BDHSCP1YTPFF5BXZF

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The ID table had 4873197-ffec-4dfc-9816-db65f34c7cb9, with seven hex characters in its first block, so a Trellix connector was shown by its raw ID. A Trellix Mobile Security connector created in the Intune admin center gets 74873197-ffec-4dfc-9816-db65f34c7cb9.
…e sponsor page (maester365#2776)

The maintainers' sponsor cards now come first. The organisations block drops
the sentence about the review rubric and replaces the Discord invoicing link
with an email link to sponsor@maester.cloud.


Entire-Checkpoint: 01M72426V0Y487ESE0RTG59B7R

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…mns (maester365#2777)

* feat(report,website): sort test lists by column and choose their columns

The report's test tables and the website's test catalog sort by any column
(ascending, descending, then back to the usual order; tests without a value
stay last) and offer extra columns: feature, area, user impact, effort,
resource type, ATT&CK, controls, source and duration. The choice of columns
is remembered in the reader's browser. The catalog keeps its sort in the URL.

Closes maester365#2750

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M7254FYYB120YKZNN8SSJWFP

* fix(report,website): address lint and review findings on sortable columns

Wrap void calls in arrow bodies in the report's test table (Codacy), declare
LEVELS before the catalog's sort table, and remove the catalog's document
click listener when the list leaves the page (CodeRabbit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M726PBG16A2DCER7CD2XEG7J

* fix(report): read the column checkbox from currentTarget

Codacy's xss/no-mixed-html rule read the HTMLInputElement cast as HTML passed
to a function. React already types currentTarget, so the cast goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M726T7S8G9X18S9P67B4E6DK

* fix(report,website): ignore a sort by a column that is hidden

Sorting by a column and then hiding it left the rows in that order with no
header to show it or undo it. The report's tables, its Copy as Markdown and
the catalog list now fall back to the usual order until the column is shown
again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M727R92CA1RDH6BA3378VF8Z

* fix(report,website): order groups by a sort on their column; keep the URL on column changes

When a list is grouped by the column it is sorted by, the groups now follow
the sort (tests without a value last) instead of the failure count, in the
report and the catalog. Adding or removing a catalog column redraws the list
without rewriting the URL, so its fragment and other parameters stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M728FGQVW5AR65P0JE2C8NMZ

* fix(report): follow the sort only for Maester's own groupings

A pack can group by a field of its own whose name matches a column (id), and
its groups would then have followed an unrelated sort. Only the built-in
groupings now take the sort's order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M728ZT18EKRFQY5AXR1KKDSQ

* fix(report): copy All tests rows in the order the table shows them

Grouped, the table shows each group's rows together while Copy as Markdown
copied one sorted list. Both now take their order from groupRows, which the
sheet's previous/next order uses too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M729GFAF4N2VCM5ENF9CHS64

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…reDevOps has no organization (maester365#2748)

* fix: keep an existing ADOPS session when Connect-Maester has no organization

Connect-Maester -Service AzureDevOps called Disconnect-ADOPS as soon as the
ADOPS module was found, before the organization was resolved. With no
-AzureDevOpsOrganization and no AzureDevOpsOrganization setting, a session the
user had created with Connect-ADOPS was destroyed and the summary said Skipped.

When no organization resolves, Connect-Maester now lets Test-MtConnection
verify the persisted ADOPS session. A working session is kept and reported as
Connected with its organization and a warning; without one, the result is
Skipped as before, and Disconnect-ADOPS is not called. Disconnect-ADOPS runs
only immediately before Connect-ADOPS, so a failed sign-in still cannot revive
the previous organization. An invalid config file is reported as Failed and
leaves the session alone.

Fixes maester365#2747

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PQkVogEABtdRidavpS1gH3

* fix: clear ADOPS session before token acquisition

Refs maester365#2747.

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Combines maester365#2759, maester365#2760, maester365#2761, maester365#2762, maester365#2763, maester365#2764, maester365#2765, maester365#2766 and maester365#2767.

GitHub Actions:
- github/codeql-action/init and /analyze 4.39.1 -> 4.39.3
- actions/setup-dotnet 6.0.0 -> 6.1.0
- peter-evans/create-pull-request 8.1.1 -> 8.1.2

report:
- lucide-react 1.66.0 -> 1.70.0
- preact 11.1.1 -> 11.2.0, @tailwindcss/postcss 4.3.3 -> 4.3.5, vite 8.3.5 -> 8.3.6

website:
- astro 7.4.4 -> 7.4.7, @astrojs/starlight 0.42.8 -> 0.42.10,
  @astrojs/markdown-remark 7.3.5 -> 7.3.6, @astrojs/react 7.1.2 -> 7.1.4
- @iconify-json/devicon 1.2.77, @iconify-json/vscode-icons 1.2.96
- @hyperframes/core 0.8.231 -> 0.9.19, gsap 3.15.1, mermaid 12.3.0, playwright 1.65.0
- @hyperframes/player 0.8.231 -> 0.9.29, so the player and the runtime the
  site copies from core are on the same version (Dependabot moved core only)


Entire-Checkpoint: 01M72JV2XZ0SFEYJHGYD4DGQ6Z

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: merill <1288081+merill@users.noreply.github.com>
…aester (maester365#2678)

* Docs: getting started, choosing a baseline, and making the case for Maester

Three new pages in the Get started section:

- Getting started: first run, reading the report, triage by severity,
  configuration, then monitoring, alerts and custom tests.
- Choosing a baseline: what each suite is built from (Maester, CIS, CISA,
  ASD Essential Eight, EIDSCA, ORCA, AD) and which requirements it serves,
  kept neutral between frameworks, with how to save the choice in Selection
  and record exceptions in TestSettings.
- Making the case for Maester: examples of what goes unnoticed without
  continuous monitoring, each linked to the test that catches it, and
  templates for general executives, a CISO and an IT Security Adviser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Docs: address review feedback on getting started, baselines and making the case

- Getting started: use <InstallCommand /> (page is now .mdx), link Installation for the
  optional Exchange, Teams and SharePoint modules and -SharePointClientId, report a missing
  permission as Skipped, add Not run to the results table, and move the disabled-test
  example out of the starter configuration.
- Choosing a baseline: CIS titles no longer carry (L1)/(L2); explain that -Suite and
  -TestId must both match, so tests from other suites need a separate run.
- Making the case: correct -Privileged (ReportSettings.ReadWrite.All, MT.1076 toggles
  report obfuscation), disclose the SharePoint full-control permission, affected objects
  collected by default, -RedactUserIdentity AllOutputs and its limits, both telemetry
  events, and that MT.1199 is long-running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Docs: address CodeRabbit's second review

- Choosing a baseline: some CIS checks report Investigate; a configured Selection.Suite
  still applies when -Suite is left out, so name the other suite explicitly.
- Making the case: list ChannelMessage.Send for Teams via Graph and Exchange.ManageAsApp
  for unattended Exchange runs; describe redaction as pseudonymisation (unsalted hash).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Docs: make Installation a reference and point Get started links to the new page

- Installation is now the install reference: requirements, install, update
  and pin a version, the module, connection and permissions each service
  needs, and Pester. The first-run walkthrough lives in Getting started.
- The Azure DevOps insecure-API flag and minimum role move to the
  Connect-Maester Azure DevOps section.
- The header Get started button, the homepage button and the 404 page
  point to Getting started.
- Links to removed or never-existing Installation anchors now point to
  pages that have the content.
- Making the case: the support answer names Maester Cloud for
  organisations that need a vendor, and the ITSA template links to
  version pinning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M72KQ8CFJEJ76HFR1P45ZPD0

* Docs: recommend the Zero Trust Assessment in Getting started for a comprehensive check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M72KZQWDXEZP3G871KMVXR5E

* Docs: drop the connect-to-all-services block from Getting started

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M72M1SY349CB81DK4ZK11NP6

* Docs: make the first run in Getting started a choice between a quick and a comprehensive check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M72M9496YAXS42KHES03RM1V

* Docs: add DISA STIGs to the baseline guide; run the Zero Trust pack with Selection.Pack

- Choosing a baseline: a DISA STIGs row in the suite table and a DoD row
  in the requirements table. Getting started and Making the case name
  DISA STIG with the other suites.
- Zero Trust Assessment pack: to run it on every run, use Selection.Pack.
  Selection.TestId ["ZTA"] limits the run to the assessment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M72NEG2XXSZJ619APXXFS8YS

* fix(website): show the site menu in the docs sidebar only on phones

The menu at the foot of the sidebar used md:sl-hidden to hide on wide
screens, but its own unlayered display: grid beat Starlight's layered
utility class, so it showed on every screen. It is now hidden by default
and shown under 50rem, like the topic tabs above it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M72NWGR32801M8NKQWCCF3JJ

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Sam Erde <20478745+SamErde@users.noreply.github.com>
Co-authored-by: Merill Fernando <merill@merill.net>
* fix(entra): escape Markdown in agent check results

* test(entra): drop the Markdown capture parameter from the Agent ID tests

The capture only served a renderer check outside the repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M73GAEKXR7XGF02CNA7498VS

---------

Co-authored-by: Merill Fernando <merill@merill.net>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ameter names (maester365#2758)

* feat(engine): bind test parameters to shared settings and enforce parameter names

A test parameter can name a GlobalSettings entry with
[MaesterParameter(Setting = '...')]. The engine binds it when the test's
TestSettings row and -Parameter do not set it, records Source = 'Setting',
and checks the parameter against the settings registry (type, kind). Tests
no longer read shared values with Get-MtSetting, so Get-MtTest and the
results show them and a TestSettings row can override them.

- Register ParkedDomains, DefenderEndpointPolicyFiltering and
  DefenderEndpointComplianceLogic; bind EmergencyAccessAccounts (object[])
  on its seven tests and pass it to the emergency access helpers.
- Bind the 24 Defender for Endpoint tests; MT.1195's allow list becomes a
  plain parameter (GsaQuickAccessSignInFrequencyAllowedPolicies is gone).
- Rename parameters to one convention before 3.0 ships: Maximum/Minimum,
  plain unit suffix, plural lists, names that say what is measured.
- TestParameterNames.Tests.ps1 enforces the mechanical rules; the
  attribute review judges new or renamed parameter names against the
  rubric's new "Parameter names" section and the names already in use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M71GFMY0A48XMS8FQFCTXYDM

* feat(engine): check GlobalSettings once, let packs declare settings, record setting reads

Hardens setting-bound parameters after a design review.

- The settings registry carries AllowedValues and, for a list of objects, the
  properties of an item. Test-MtGlobalSetting checks GlobalSettings against it
  once before a run: a wrong value stops the run with one message, and a key
  without a dot that is not registered is reported as a likely typo.
- A pack declares its Namespace.Key settings under Settings in maester-pack.json.
  They are layered into the registry while the pack runs, so the config is
  checked against them and Get-MtSetting returns their defaults. The Zero Trust
  Assessment pack declares its twelve.
- Get-MtSetting records each read on the result of the native test that is
  running (SettingsRead).
- A sensitive setting is redacted in the recorded parameters and config.
- XspmExternalDataUris is registered.
- Unit tests: a built-in test never calls Get-MtSetting, a helper never reads a
  setting that tests bind, the module and shipped packs read only declared
  settings, a bound parameter has its setting's default and allowed values, and
  a shim declares and passes on the bound parameters of the test it calls.
- ASD.ISM-1649 now passes EmergencyAccessAccounts to CIS.M365.5.3.1; it ran that
  check without the tenant's emergency access accounts.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73HCTTNHQ21MB4450N6VA3M

* docs: close the gaps a trial run of the test skill found; fix a missing byte order mark

A fresh agent built a new check from the repository's guidance alone. It bound
the setting correctly, and reported what the guidance did not tell it.

- Test-MtGlobalSetting.ps1 had no byte order mark, which failed FileEncoding.Tests
  in CI. The local run missed it because that test only sees files git tracks.
- Skill and AGENTS.md: a new built-in test regenerates the golden selection
  fixture; git add new files before the unit tests; what New-MtTest leaves for a
  built-in check; how to skip when a setting is not filled in.
- writing-tests: the custom test section showed Get-MtSetting as the way to read
  EmergencyAccessAccounts, which contradicted the rest of the page.
- upgrading-from-2x: the GlobalSettings check, Namespace.Key names, and settings
  as parameters.
- emergency-access-accounts: lists all eight tests that use the setting.
- MaesterSettings.psd1: the EmergencyAccessAccounts description no longer says
  Conditional Access only.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73NCNJ85A2FQS63E3V6XYPK

* feat(website): add parameters and shared settings to the test builder and New-MtTest

- Test builder: a "What can an administrator change?" step. It offers the
  settings a test can bind and writes the bound parameter, takes other
  parameters with their type, default, range, allowed values and kind, checks
  each name against the parameter naming rules as it is typed, says when a name
  is already used by built-in tests, and shows the maester-config.json an
  administrator would write.
- New-MtTest -Setting writes a parameter bound to each registered setting, with
  the registry's type, default and allowed values.
- The builder's data file now carries the settings registry, the parameter
  kinds and the parameter names in use.
- A setting that a connect command or data helper reads is marked
  Role = 'Connection' in the registry, so neither tool offers it to a test.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73PAVCNHAQ1QTZXZPK350SD

* feat(website): show the test builder one step at a time, with the steps in the sidebar

The form was one page of about eight screens. It is now nine steps, listed in
the sidebar (above the form on a phone) with the number of things to fix in
each. The address keeps the step, and a problem listed with the code opens the
step of its field.

Severity, user impact, implementation cost and lifecycle are one row of choices
that shows only the selected value's description. Tenant types, clouds and
platforms are a step of their own.

Each field's help panel now says how the engine uses the value and what happens
when the field is left empty.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73XKWS8ZA24K26D9T5CN4EF

* feat(website): level icons on the rating choices; licences and permissions get a step each

Severity, user impact and implementation cost show a bar icon on each choice,
coloured by level, with a circled i for Info. Services, licences and
permissions are three steps instead of one.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73XX8XPCQCRAAZ8P82P3BWB

* feat(website): label and icon the tenant types in the test builder

External reads External (Consumer) and shows Microsoft's External ID icon;
Workforce shows the Entra ID icon. The attribute value is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73Y1REBYPSPRZTNF4753GRK

* feat(website): flags on the cloud choices in the test builder

Each national cloud shows its country's flag and the worldwide cloud a globe.
The flags are drawn as SVG because flag emoji do not render on Windows.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73Y37XY3Y48ZQ2Q7A56QQ7D

* feat(website): explain shared settings in the test builder and add icons throughout

The Parameters step says what a parameter and a shared setting are, and its
help panel has a guide to adding a new shared setting, for a Maester test and
for a custom test.

Each field label and step has an icon (the report's icon where the report shows
that attribute), the lifecycle choices have one each, and the Commercial cloud
shows a coloured globe.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73Y7EMCK631RR4Q6WQ4YFES

* feat(website): coloured platform icons in the test builder; reword the step intro

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73Y98BYDQWZCRDHW4HVRXBG

* feat(website): service icons in the test builder; name the step Service connections

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73YCJGVBMVVPNR7X5AK0A99

* feat(website): fold the test builder's sidebar to a strip of step icons

The button at the top of the sidebar, already on the test catalog, folds it to
a strip. On the test builder the strip keeps the steps as icons, coloured by
their state, and the choice is remembered separately from the catalog's.

The service names no longer carry (opt-in), which wrapped; the help panel says
which service is opt-in.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73YH6B5HC55W7A80CDMNVW6

* feat(website): load an existing test into the test builder; wrap long code lines

The first step has a picker: type an ID or part of a title and the test's
attributes and parameters fill the form. The list is fetched on first use from
/data/builder-tests.json, a slim copy of the catalog. The catalog export adds
TenantType, Cloud, Platform, Exclusive and Parameters for it.

Long lines in the generated code wrap instead of scrolling sideways.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73YNRFHD9XK3JVT5HG82FY7

* feat(website): icon on the Licence explorer button; icon-only sidebar toggle on the test builder

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73YYBY1KKWRGE5WQGQHCN08

* feat(website): icon-only sidebar toggle on the test catalog too

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73Z0J63XKAS5S5XP46WK2AV

* feat(website): write a test with AI: a prompt tab in the test builder and a docs page

The test builder has an AI prompt tab. It turns the values picked in the form,
and a sentence on what the test should verify, into a prompt for an AI coding
assistant: the guides to read, the files to create and how to check them. A
test for Maester points at the repository's agents and skills; a custom test
points at the published guides.

docs/writing-tests/with-ai.md explains the flow for both, what to tell the
assistant and how to check what it writes.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73ZCMDGSFF50ASTYQZYSWRE

* feat(website): the AI prompt is its own item in the test builder's step list

It was a tab beside the generated files. It now sits below the numbered steps
as Write it with AI and opens in the form column, with room for the
description and the prompt.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M741AFNR9PTAN9WQ1D5ZEHRV

* fix(website): pick the builder's test fields without dynamic property access

Codacy flagged test[key] as an object injection sink. The key came from a fixed
list, but filtering the entries by a set says the same without the lookup.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M742RDPJ72BF9DMYTYSDXN4G

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…e Exchange email checks (maester365#2787)

* feat(cisa)!: take parked domains from the ParkedDomains setting in the Exchange email checks

CISA.MS.EXO.2.2 and CISA.MS.EXO.3.1 no longer read Exchange's
SendingFromDomainDisabled to decide which accepted domains are parked.

- MS.EXO.2.2 (SPF) takes a ParkedDomains parameter bound to the shared
  setting. A listed domain must publish a policy that fails all senders
  (-all or ~all, as MS.EXO.2.2v3 allows); every other accepted domain gets
  the sending-domain check, including one that cannot send.
- MS.EXO.3.1 (DKIM) checks every accepted domain except the coexistence
  domain. SCuBA gives no separate rule for a domain that never sends, so
  the skip for parked domains is removed rather than moved to the setting.
- MS.EXO.4.2, 4.3 and Test-MtCisaDmarcReport already check every domain;
  the commented-out inference is replaced by a comment that says so.

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M73H4Z79A9A32WNWWS1A4B92

* chore(website): list the ParkedDomains parameter in the test builder data

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 01M74513ATGD00B8M71K7WEFPQ

---------

Co-authored-by: Claude <noreply@anthropic.com>
… ToString() (maester365#2780)

Invoke-Maester records the command that produced a run, and that string is stored
in the result file and shown in the report. Every bound parameter that was not a
switch, array or string went through string interpolation, which calls the
object's own ToString(). A type supplied by the caller decides what that returns,
so -Config with an object whose ToString() reports its contents put those contents
in the recorded command:

    class Leaky { [string] $Secret = 'p@ssw0rd-123'; [string] ToString() { "Config(ApiKey=$($this.Secret))" } }
    Invoke-Maester -Config Config(ApiKey=p@ssw0rd-123)

The array branch had the same exposure: -join calls ToString() on every element.

Rendering now lives in ConvertTo-MtCommandParameterValue, one function per file
next to ConvertFrom-MtJsonArray. Strings stay quoted and value types are written
as they are, so nothing readable is lost; any other object is recorded as its type
name in angle brackets. Invoke-Maester's loop drops from four branches to two.

Raised by @SamErde while reviewing maester365#2635, where -Config made it reachable. The
defect is older than that PR and is on main, which is why this is separate.

Verified with the repo's runner on its pinned Pester: 8 of 8 for the new tests,
and the full suite at 8,516 passing. Removing the protection fails exactly the two
cases that assert the type name instead of the content, so the tests discriminate.
…o the enquiry form (maester365#2791)

Packs docs: the page now opens with what a pack is, then public packs
and private packs. The pack pages move into the Guides sidebar as a
"Maester Packs" group, in place of a hidden section of their own. The
private pack example sets the token only for the install (issue 2790).

Sponsors: Increment is listed first, and the sponsor card, the sponsor
page and the home page's company card link to the enquiry form at
packs.maester.cloud/sponsor. The sponsor page has less space at the top
and its sponsor card lines up with the first row of cards.

Tables: a long code value wraps inside its cell instead of pushing the
other columns out of view.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ariable (maester365#2792)

Install-MtPack, Update-MtPack and Restore-MtPack take -Token (SecureString).
Without it, Invoke-MtPackGitHubRequest uses the first sign-in that can read
the repository: the Connect-MtGitHub session (github.com only), gh auth token,
then GH_TOKEN and GITHUB_TOKEN. No token is stored, and it is sent to
api.github.com only.

Refs maester365#2790

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…what telemetry sends (maester365#2793)

Two pull requests that both edited the Private packs section left it on
the page twice, the first copy still describing the token in an
environment variable as the only way. The stale copy is removed.

The page said nothing about a private pack is sent to Maester. A run's
telemetry never names it, but its totals do count the pack's tests, so
the sentence now says that.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…examples (maester365#2801)

* docs: add Invoke-Maester and report guides, and reorder the Invoke-Maester examples

- Invoke-Maester help: lead the examples with -TestId, -Product and
  -ExcludeProduct, drop the tag examples, add -Feature, -NonInteractive,
  -OutputMode and -PassThru examples, and describe preview tests as new
  tests that are out for feedback.
- New page "Running Invoke-Maester" at the top of "Choose what to run":
  choosing tests, custom tests, Maester Packs with the Zero Trust
  Assessment, where results go, running unattended, and how the console
  output mode is detected.
- New "The Maester report" group under Results: a tour of each section of
  the report and a page for the Zero Trust views, with captures of the demo
  report in light and dark.
- Configuration overview: say that GlobalSettings is checked before the
  run, that sensitive settings are redacted, and how custom tests and packs
  name their settings.
- capture-demo-report.mjs: capture the extra views, optionally only the
  named ones, click before a capture, and use an installed Chrome.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* chore(website): leave the explainer copy loop of the capture script as it was

Codacy flagged the line as new because the loop was changed to the named
views. Copying every dark capture that the explainer uses is harmless when
only some views are captured, so the line goes back to what main has.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

This pull request changes files that a website explainer describes:

  • What happens in a run (website/public/explainers/run/) describes powershell/internal/engine/Invoke-MtNativePlan.ps1, powershell/internal/engine/Read-MtNativeTest.ps1, powershell/internal/engine/Resolve-MtNativePlan.ps1, powershell/internal/engine/Test-MtGlobalSetting.ps1, powershell/internal/engine/completion/Get-MtArgumentCompleterTable.ps1, powershell/public/run/Invoke-Maester.ps1
  • Why a check didn't run (website/public/explainers/gates/) describes powershell/internal/engine/Resolve-MtNativePlan.ps1
  • How Maester works (website/public/explainers/how-it-works/) describes powershell/public/connect/Connect-Maester.ps1, powershell/public/run/Invoke-Maester.ps1, report/src/components/report/ReportContext.tsx, report/src/components/report/lists.tsx, report/src/components/report/ui.tsx, report/src/lib/model.ts, report/src/pages/report/FrameworkPage.tsx, report/src/pages/report/TestsPage.tsx, report/src/styles/report.css

If the change alters what the explainer shows (a gate, a reason code, a command, a count), update its composition and its chapters in website/src/data/explainers.json. If it doesn't, no action is needed.

@soulemike

Copy link
Copy Markdown
Owner

@FiraSenax thanks for this, I am splitting the original PR into more modular focused PRs for easier review. I will try and incorporate this in those and flag you as a contributor, but please keep an eye out and help review!

@soulemike soulemike closed this Nov 21, 2026
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.

7 participants