Skip to content

PRD from an end-user perspective - #566

Open
bradbanister wants to merge 28 commits into
mainfrom
METAED-1695
Open

bradbanister wants to merge 28 commits into
mainfrom
METAED-1695

Conversation

@bradbanister

@bradbanister bradbanister commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

This PR reverse-engineers a PRD from the application, primarily from the end-user perspective. Does not attempt to describe the DSL in detail or how to "transpile" the DSL into other formats.'

Additionally, the PR reverse-engineers a README for each package in the repository.

Review history

Stephen Fuqua opened the original PR. Renaming its head branch closed #511. This PR continues from the same commit, fff07185. The original requested reviewers were Vimayya and Brad Banister. Brad requested changes there and opened this replacement PR. All 29 inline threads were resolved before the branch rename. Original PR and review timeline

The replacement PR includes an attributed copy of the reviews, conversation, and resolved inline threads. Review archive

The follow-up to remove the CLI license acceptance flag is stacked on this branch. Dependent PR #565

stephenfuqua and others added 22 commits November 17, 2026 16:15
Documents the MetaEd product through version 4.7, covering:
- VS Code extension capabilities
- Build and Deploy commands
- Generated artifact outputs (SQL, XSD, API metadata, handbook, dictionaries, API catalog)
- Configuration system
- CI/CD support
- Non-functional requirements

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reverse-engineered purpose of each package from source code and
package.json metadata. Removed metaed-plugin-edfi-data-catalog
(does not exist in the repository). Updated out-of-scope section
to reflect that package descriptions are now documented.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fix verifiably wrong claims found by comparing README content to source:
- xml-dictionary: output folder is DataDictionary/ not Documentation/;
  sheet names are "Complex Types"/"Simple Types" (with spaces)
- ods-changequery: initialize() registers no enhancers or generators;
  SQL generation is done by companion plugins using exported utilities
- unified: is not a "pure enhancer plugin" — also registers ~70 validators
- ods-recordownership: only flags aggregate root tables, not every table
- sql-dictionary: depends on both ods-relational (model) and ods-sqlserver
  (table/column naming data)
- metaed-core: GeneratedOutput description now includes the name field
  and correctly types resultStream as Buffer

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
to "SHALL" after confirming actual implementation
- Document V6 (ODS/API 5.4-6.x) deploy layout; copy is no-op only below 5.4.0
- Correct metaed-console config path, allianceMode, and suppressPrereleaseVersion docs
- Note --projectNames is required for source-scan deploy
- Update API Schema packaging requirements for staging/manifest flow; remove incorrect TPDM checkout limitation
- Fix GeneratedOutput resultString/resultStream precedence
- Correct API Schema plugin downstream consumers

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Align requirements with actual code behavior and document known
defects (METAED-1675, METAED-1676, METAED-1678) in Known Limitations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Align package READMEs and jsonnet-configuration.md with actual code
behavior; cite METAED-1677 and METAED-1678 where docs described
broken behavior. Also correct FR-ODS-SQL-3 enumeration/school year
emission in the PRD.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Condense PRD requirements to user-observable behavior and relocate
code-level mechanics to each package README's Business Logic section.
Requirement IDs and section structure are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Align file-extension matching, source-scan requirements, and copy-failure behavior with the implementation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Document project-name override overflow behavior and identify API Catalog endpoint-name columns accurately.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradbanister
bradbanister requested a review from vimayya November 19, 2026 16:17
@bradbanister

Copy link
Copy Markdown
Contributor Author

Review archive from #511

The entries below preserve the original authors’ wording and link to each source. Dates are UTC. GitHub recorded Brad Banister’s requested changes on May 29. Subsequent reviews, discussion, and revisions are included below. All 29 inline threads were marked resolved and outdated on the original PR.

Reviews and conversation

2026-05-28 · stephenfuqua · commented

2026-05-28 · copilot-pull-request-reviewer[bot] · commented

Pull request overview

This documentation-only PR adds an end-user-oriented MetaEd 4.x PRD and package-level README coverage across the monorepo, describing package roles, inputs, outputs, and business logic.

Changes:

  • Adds docs/PRD-4.x.md with product scope, requirements, architecture, limitations, and glossary.
  • Adds README files for packages that previously lacked package-level documentation.
  • Updates existing package READMEs to use the new Input Configuration / Output / Business Logic structure.

Reviewed changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
docs/PRD-4.x.md Adds the MetaEd 4.x product requirements document.
packages/metaed-core/README.md Documents core pipeline configuration, outputs, and orchestration role.
packages/metaed-console/README.md Updates CLI build documentation.
packages/metaed-default-plugins/README.md Documents default plugin stack assembly.
packages/metaed-odsapi-deploy/README.md Documents deployment library inputs, outputs, and task flow.
packages/metaed-odsapi-deploy-console/README.md Documents deployment CLI options and workflow.
packages/metaed-plugin-edfi-api-catalog/README.md Updates API catalog output and processing documentation.
packages/metaed-plugin-edfi-api-schema/README.md Documents API schema configuration and generated JSON outputs.
packages/metaed-plugin-edfi-data-catalog/README.md Adds documentation for a data catalog plugin.
packages/metaed-plugin-edfi-handbook/README.md Documents handbook HTML and Excel outputs.
packages/metaed-plugin-edfi-ods-changequery/README.md Documents shared change-query artifacts.
packages/metaed-plugin-edfi-ods-changequery-postgresql/README.md Documents PostgreSQL change-query generation.
packages/metaed-plugin-edfi-ods-changequery-sqlserver/README.md Documents SQL Server change-query generation.
packages/metaed-plugin-edfi-ods-postgresql/README.md Documents PostgreSQL ODS SQL generation.
packages/metaed-plugin-edfi-ods-recordownership/README.md Documents shared record-ownership metadata enrichment.
packages/metaed-plugin-edfi-ods-recordownership-postgresql/README.md Documents PostgreSQL record-ownership DDL output.
packages/metaed-plugin-edfi-ods-recordownership-sqlserver/README.md Documents SQL Server record-ownership DDL output.
packages/metaed-plugin-edfi-ods-relational/README.md Documents relational ODS model enrichment.
packages/metaed-plugin-edfi-ods-sqlserver/README.md Documents SQL Server ODS SQL generation.
packages/metaed-plugin-edfi-odsapi/README.md Documents ODS/API metadata JSON generation.
packages/metaed-plugin-edfi-sql-dictionary/README.md Documents SQL data dictionary output.
packages/metaed-plugin-edfi-unified/README.md Documents shared unified model transformations.
packages/metaed-plugin-edfi-unified-advanced/README.md Documents advanced unified validation rules.
packages/metaed-plugin-edfi-xml-dictionary/README.md Documents XML data dictionary output.
packages/metaed-plugin-edfi-xsd/README.md Documents XSD schema generation.

View original

2026-05-28 · stephenfuqua · commented

2026-05-29 · bradbanister · changes requested

I found a large number of issues and decided to stop after several iterations, so there may well be more. These were found with the help of gpt-5.5 xhigh, though of course I reviewed them all.

• Findings

  • High: The PRD has detailed VS Code extension requirements, but that implementation lives in the separate vscode-metaed-ide repo. The MetaEd-js repo has no relationship to VS Code Extensions.

  • High: docs/PRD-4.x.md:226 names @edfi/metaed-odsapi-deploy as the CI deploy package, but that package is only the deploy task library and exports runDeployTasks; the CLI wrapper is @edfi/metaed-
    odsapi-deploy-console. See packages/metaed-odsapi-deploy/src/index.ts:6 and packages/metaed-odsapi-deploy-console/package.json:2.

  • High packages/metaed-odsapi-deploy-console/README.md:23 says deploy-console always runs the MetaEd build pipeline before deploying. In --config mode it does not; it uses the configured
    artifactDirectory and only runs deploy tasks. Only the --source/--target/--projectNames path builds first. This will mislead CI/deploy users.

  • High: Deploy deletion semantics are overstated in docs/PRD-4.x.md:146 and packages/metaed-odsapi-deploy/README.md:36. Deployment writes current extension artifacts under the versioned path in
    packages/metaed-odsapi-deploy/src/task/DeployExtension.ts:49, but deletion only removes the legacy top-level EdFi.Ods.Extensions.{projectName}/Artifacts path in packages/metaed-odsapi-deploy/src/
    task/RemoveExtensionArtifacts.ts:20. The docs currently imply a clean deploy of existing extension artifact directories, which is not what happens for the versioned target.

  • High: packages/metaed-odsapi-deploy-console/README.md:12 says --projectNames are “Project names to deploy.” They are actually positional project-name overrides passed to scanForProjects, not a
    deploy filter. See packages/metaed-odsapi-deploy-console/src/metaed-odsapi-deploy-console.ts:129 and packages/metaed-core/src/project/ProjectLoader.ts:52.

  • Medium: Change-query docs conflate the common package with the database-specific companion plugins. packages/metaed-plugin-edfi-ods-changequery/README.md:3 says the common package generates SQL,
    but its initializer registers only a validator in packages/metaed-plugin-edfi-ods-changequery/src/index.ts:63; the SQL generators are registered by the PostgreSQL and SQL Server packages. The PRD’s
    file list at docs/PRD-4.x.md:169 should also avoid hardcoded or wrong names: tracked-delete and trigger filenames vary by target style/version.

  • Medium: packages/metaed-plugin-edfi-unified/README.md:8 incorrectly calls the unified plugin a pure enhancer that only enriches the model. The package registers both validatorList() and
    enhancerList() in packages/metaed-plugin-edfi-unified/src/index.ts:405, the plugin has the largest set of validators, and the README should describe both validation and enhancement responsibilities.

  • Medium: docs/PRD-4.x.md:175 hardcodes extension SQL/XSD artifacts as EXTENSION-prefixed. The implementation uses each namespace’s projectExtension or namespace name, for example in SQL packages/
    metaed-plugin-edfi-ods-sqlserver/src/generator/OdsGeneratorBase.ts:16 and XSD packages/metaed-plugin-edfi-xsd/src/generator/XsdGenerator.ts:34.

  • Medium: Documentation artifact paths are inconsistent from the artifact root. WriteOutput prepends the generated output namespace, so namespace: 'Documentation' plus folder names produces paths
    like Documentation/Ed-Fi-Handbook/... and Documentation/DataDictionary/...; several docs omit that prefix, including docs/PRD-4.x.md:212, packages/metaed-plugin-edfi-handbook/README.md:13,
    packages/metaed-plugin-edfi-sql-dictionary/README.md:14, and packages/metaed-plugin-edfi-xml-dictionary/README.md:14.

  • Medium: Extension project validation is documented as enforced requirements in docs/PRD-4.x.md:216, including project name and SemVer rules. Locally, scanForProjects just reads metaEdProject and
    derives namespaceName; it does not validate those constraints, and SemVer is only a string alias. See packages/metaed-core/src/project/ProjectLoader.ts:37 and packages/metaed-core/src/
    MetaEdEnvironment.ts:14.

  • Medium: packages/metaed-odsapi-deploy-console/README.md:11 says --target is the ODS/API repository path. The implementation resolves paths like Ed-Fi-ODS/... and Ed-Fi-ODS-Implementation/... under
    deployDirectory, so this must be the parent directory containing those repos. See packages/metaed-odsapi-deploy/src/task/ExtensionProjectsExists.ts:13.

  • Medium: docs/PRD-4.x.md:144 and packages/metaed-odsapi-deploy/README.md:36 imply extension artifacts deploy generally, while only core is version-qualified. DeployExtension also no-ops when
    defaultPluginTechVersion < 7.0.0. See packages/metaed-odsapi-deploy/src/task/DeployExtension.ts:118.

  • Medium: docs/PRD-4.x.md:155 says pluginConfigDirectories contains paths to configuration files. The loader treats them as directories and searches each one for {pluginShortName}.config.jsonnet
    or .json. See packages/metaed-core/src/plugin/LoadPluginConfiguration.ts:111.

  • Medium: docs/PRD-4.x.md:162 says namespace, core, and extensions are mutually exclusive. Joi only rejects namespace with core/extensions; it does not reject core plus extensions, and matching
    checks core first. See packages/metaed-core/src/plugin/ConfigurationSchema.ts:66 and packages/metaed-core/src/plugin/AnnotateModelWithConfiguration.ts:41.

  • Medium: packages/metaed-core/README.md:12 describes pluginTechVersion as controlling plugin selection. It is currently unused; plugin setup assigns every plugin defaultPluginTechVersion. See
    packages/metaed-core/src/plugin/PluginSetup.ts:13.

  • Medium: packages/metaed-plugin-edfi-xsd/README.md:12 says interchange schemas are generated under XSD/. They are generated under Interchange/. See packages/metaed-plugin-edfi-xsd/src/generator/
    InterchangeGenerator.ts:39.

  • Medium: packages/metaed-plugin-edfi-sql-dictionary/README.md:7 says it depends on relational ODS model data, but the generator reads SQL Server-specific table/column metadata from
    data.edfiOdsSqlServer. See packages/metaed-plugin-edfi-sql-dictionary/src/generator/SqlDataDictionaryGenerator.ts:38.

  • Medium: packages/metaed-plugin-edfi-ods-sqlserver/README.md:21 and packages/metaed-plugin-edfi-ods-postgresql/README.md:21 say the ODS plugins generate “authorization views.” The implementation
    registers education organization authorization index generators, not view generators. See packages/metaed-plugin-edfi-ods-sqlserver/src/index.ts:9.

  • Medium: The pipeline order is documented as global validate -> enhance -> generate -> write in docs/PRD-4.x.md:309 and packages/metaed-core/README.md:29, but execution is per plugin: validators,
    then enhancers, then generators for each plugin before moving to the next plugin. See packages/metaed-core/src/pipeline/Pipeline.ts:76.

  • Medium: docs/PRD-4.x.md:219 presents a required extension directory structure, but the loader recursively reads any .metaed files under each configured project path and does not enforce those
    directory names. See packages/metaed-core/src/file/FileSystemFilenameLoader.ts:52.

  • Low packages/metaed-console/README.md:9 says --config is relative to the working directory. The console code resolves the config path relative to __dirname, so relative paths are not cwd-relative
    in the implementation.

  • Low: docs/PRD-4.x.md:288 says the common record-ownership plugin generates database artifacts. It has enhancers only and no generators; artifacts come from the PostgreSQL/SQL Server companion
    packages. See packages/metaed-plugin-edfi-ods-recordownership/src/index.ts:13.

  • Low: docs/PRD-4.x.md:296 describes metaed-plugin-edfi-unified-advanced as an advanced model layer for generation. It is validators-only. See packages/metaed-plugin-edfi-unified-advanced/src/
    index.ts:22.

  • Low: packages/metaed-console/README.md:31 says to build from the parent directory and then run node ./dist/index.js; from the repo root the actual path is packages/metaed-console/dist/index.js, as
    reflected by the root metaed:build script in package.json:38.

View original

2026-07-15 · stephenfuqua · comment

Reviewed all findings from @bradbanister's review (#pullrequestreview-4386641265) against the current docs/PRD-4.x.md and verified the relevant claims against source. All PRD-related findings have been addressed in earlier commits (bac58b38e, 368d1b530, 49c08ffca, 3f25218bf). The remaining findings were scoped to package README.md files and were already corrected in a15e8e2e8 and 5ad1b7a7d.

View original

2026-08-07 · bradbanister · comment

Remaining issues, all are small:

  1. High: ODS/API 5.4-6.x deployment is incorrectly documented as a no-op.
    docs/PRD-4.x.md:229 and docs/PRD-4.x.md:382 exclude copy behavior below 7.0.0, and packages/metaed-odsapi-deploy/README.md:19 only shows the newer versioned 7.x layout. In reality,
    DeployCoreV6 and DeployExtensionV6 run for >=5.4.0 <7.0.0 in packages/metaed-odsapi-deploy/src/task/DeployCoreV6.ts:100 and packages/metaed-odsapi-deploy/src/task/
    DeployExtensionV6.ts:106. runDeployTasks includes both V6 tasks, and packages/metaed-odsapi-deploy/test/integration/DeployV6AtDefaultTechVersion.test.ts:15 explicitly verifies that
    default 6.0.0 deployment is not a no-op.

  2. High: The documented metaed-console usage is not correct as written.
    The sample command passes -c packages/metaed-console/metaed-edfi-5.2.json, but the CLI resolves
    config paths from __dirname in packages/metaed-console/src/metaed-console.ts:24, so that relative path is interpreted under the console module directory. Even with an absolute config
    path, the sample config’s relative projectPaths are rooted differently than the README implies. The same README block says the sample has Alliance Mode on, but packages/metaed-console/
    metaed-edfi-5.2.json:20 has "allianceMode": false.

  3. High: Source-scan deploy is documented as --source/--target, but silently does nothing without --projectNames.
    packages/metaed-odsapi-deploy-console/README.md:31 presents source-scan mode as --source/--target, and lists projectNames as an override. The CLI instead returns early when projectNames
    is absent in packages/metaed-odsapi-deploy-console/src/metaed-odsapi-deploy-console.ts:125, leaving a successful no-op. The PRD’s known limitations already acknowledges this, so the
    package README is internally inconsistent with the PRD.

  4. Medium: API Schema packaging documentation is stale and misses the 4.8 package contract.
    docs/PRD-4.x.md:252 describes copying generated files into package projects and says Homograph copies only API Schema JSON. Current packaging stages assets under eng/ApiSchema/staging/
    /, normalizes schema files to ApiSchema.json, optionally stages XSD/interchange files, requires core discovery-spec.json, writes package-manifest.json, uses Data Standard-
    qualified package IDs, and validates the package contract; see eng/ApiSchema/README.md:44 and eng/ApiSchema/build.ps1:246. The PRD also reports a lowercase TPDM checkout defect at docs/
    PRD-4.x.md:388, but the workflow checks uppercase TPDM in .github/workflows/api-schema-packaging.yml:99.

  5. Medium: --suppressPrereleaseVersion is documented too broadly for build behavior.
    docs/PRD-4.x.md:138 and packages/metaed-console/README.md:12 expose it as an effective build option controlling output paths. In config-based execution, which the README presents as the
    normal successful workflow, packages/metaed-console/src/metaed-console.ts:67 only applies the CLI value when no config object was supplied. Also, for build usage the flag affects
    generated version data, not artifact output paths.

  6. Medium: GeneratedOutput precedence is documented backwards.
    packages/metaed-core/README.md:24 says resultStream takes precedence over resultString. The writer checks and writes non-empty resultString first, only using resultStream otherwise, in
    packages/metaed-core/src/pipeline/WriteOutput.ts:22. Either the writer or the documented contract should change.

  7. Low: API Schema README names the wrong downstream consumer.
    packages/metaed-plugin-edfi-api-schema/README.md:25 says odsapi consumes its exports. metaed-plugin-edfi-odsapi has no API Schema dependency/import. The in-repository downstream consumers
    are API Catalog and Handbook.

View original

2026-10-04 · stephenfuqua · commented

Review: accuracy and implementation-detail leakage

Accuracy: Roughly 210 of ~250 PRD claims verified against source. Inline comments cover the inaccuracies. Several are actually code bugs that the PRD describes as working — I'll open Jira issues for those:

  • ProjectLoader.ts:96 ramda pathEq argument order → EdFi-first sort never fires
  • Pipeline.ts early returns skip fileMapForValidationFailure → plugin-config validation messages never printed
  • LoadPluginConfiguration.ts never passes libraryPaths → Jsonnet imports in jsonnet-configuration.md can't resolve
  • Deploy precheck/removal/refresh use namespace folder names while copy uses projectName; removal never cleans the >=7.0 versioned layout

Implementation detail: Yes, a fair amount has leaked in. The most code-level sections are also where most inaccuracies live, which suggests they'll drift fastest:

  • FR-CFG-6/7 (scanner mechanics), FR-BUILD-7 / §5.1 (12 internal stages), FR-API-SCHEMA-2 (field inventory — link to DMS docs instead), FR-DEPLOY-10..18 (version gates, .csproj timestamps), §5.4 GeneratedOutput, glossary Validator/Enhancer/Generator rows, FR-CFG-4 extension casings, FR-PKG-2 default versions, the fixture path at line 388.
  • FR-BUILD-6 / FR-DEPLOY-6 codify current quirks as SHALL requirements.
  • §6.2 has become a bug list; most of 373–382 belong in issues.
    Suggest keeping requirements at the user-observable level (flags, output locations, exit codes, supported versions) and moving the rest to an appendix or package READMEs.

Package READMEs (~50 issues; PRD is generally more precise, so aligning README wording to the PRD is the fastest fix). Clean: default-plugins, unified, xml-dictionary, sql-dictionary, all three record-ownership.

  • api-schema / odsapi / xsd: output paths omit the {namespace}/ prefix (e.g. EdFi/ApiSchema/ApiSchema.json).
  • metaed-core: says suppressPrereleaseVersion "controls version formatting in output paths" (contradicts FR-BUILD-6; it affects XSD version strings at >=7.1); describes per-plugin output writing (output is written once after all plugins); externalVariables missing; projects don't contain paths (projectPaths is separate).
  • jsonnet-configuration.md: imports likely broken (above); external variables come only from metaEdConfiguration.externalVariables, not env/CLI.
  • metaed-console: no per-phase timings (only total); "from the repo root" example fails because projectPaths resolve against cwd; relative artifactDirectory resolves against last project path and is deleted first.
  • ods-sqlserver / ods-postgresql: core filename globs wrong (e.g. 0010-Schemas.sql); only enumerations + map-type descriptors are seeded; version gates missing (1410 >=7.1, 1460/1465 >=7.3); "authorization scripts" are only index scripts.
  • changequery-sqlserver / -postgresql: shared plugin has no enhancers; cascade triggers only >=7.3.0; tracked-delete schema gate and 0200-… naming at >=6.0; 0010/0030 outputs missing.
  • ods-changequery: plugin registers only a version-independent validator.
  • ods-relational: one validator, warning-only, >=5.1.0; final names are assigned by the platform plugins.
  • odsapi-deploy: layout chosen by defaultPluginTechVersion, not dataStandardVersion; suppression applies >=7.1.0; removal overstated; core-only deploy fails precheck unless allianceMode.
  • odsapi-deploy-console: only --source/--projectNames are effectively required; deploy runs even after a failed build; --suppressDelete CLI help text is wrong.
  • api-catalog: missing unified dependency; "Property Name" is a dotted path; Description holds $ref for reference rows; Data Type can be array/reference/unknown; key-field rows and EdOrg/SchoolYear hard-coding not mentioned.
  • api-schema: no other plugin consumes its enhancers (only types/helpers).
  • handbook: Excel is a subset of HTML; only Excel is sorted.
  • xsd: duplicate-name check is warning-only and generators silently skip.
  • unified-advanced: 6 of 13 validators are deprecation warnings.

This review was AI-assisted (Claude Code); key findings were spot-checked against source, but please verify before acting.

View original

2026-11-17 · github-actions[bot] · final test report for fff0718

Test Results

    1 files    466 suites   11m 29s ⏱️
5 666 tests 5 663 ✅ 3 💤 0 ❌
6 472 runs  6 469 ✅ 3 💤 0 ❌

Results for commit fff0718.

View original

Resolved inline threads

docs/PRD-4.x.md, original line 197 · stephenfuqua

stephenfuqua on 2026-05-28

Hallucination?

Original inline comment

packages/metaed-plugin-edfi-data-catalog/README.md, original line 21 · copilot-pull-request-reviewer

copilot-pull-request-reviewer on 2026-05-28

This README documents metaed-plugin-edfi-data-catalog as an implemented MetaEd plugin, but this directory contains only this README and no package.json or src implementation, and it is not part of the default plugin list. As written, the documentation points users to a package/output that the repository cannot actually provide; either remove this package README or make it clear that it is not currently implemented.

Original inline comment

stephenfuqua on 2026-05-28

Oops, a leftover artifact from a failed plugin. Deleting this file.

Original inline comment

docs/PRD-4.x.md, original line 176 · copilot-pull-request-reviewer

copilot-pull-request-reviewer on 2026-05-28

These documented SQL filenames do not match the current generator/tested output, which uses the 0010-*, 0020-*, 0030-*, and 0050-* naming convention shown in the new SQL Server/PostgreSQL package READMEs and existing generator tests (for example, packages/metaed-plugin-edfi-ods-sqlserver/test/generator/SchemaGenerator.test.ts). Updating this requirement to the current filenames will avoid giving users an obsolete deploy/build contract.

Original inline comment

docs/PRD-4.x.md, original line 328 · copilot-pull-request-reviewer

copilot-pull-request-reviewer on 2026-05-28

The section numbering skips from section 6 directly to section 8, leaving section 7 missing. Renumber the glossary to section 7 (or add the missing section) so cross-references and generated tables of contents remain correct.

Original inline comment

packages/metaed-odsapi-deploy/README.md, original line 38 · copilot-pull-request-reviewer

copilot-pull-request-reviewer on 2026-05-28

This task sequence is incomplete compared with RunDeployTasks.ts: deploy first checks that extension projects exist, and it runs a legacy-directory check after refreshing projects. It also describes copying additional DB scripts as a separate task, but those directories are passed into the core/extension deploy tasks. Please align this summary with the actual task order so operators understand what validations run and when failures can stop deployment.

Original inline comment

docs/PRD-4.x.md, original line 117 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: pluginTechVersion is listed as SHALL-supported, but PluginSetup.ts:13 always assigns defaultPluginTechVersion; this contradicts the limitation at line 371. Suggest dropping it from FR-CFG-2 or marking it "accepted but ignored".

Original inline comment

docs/PRD-4.x.md, original line 121 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy (code bug): The EdFi-first sort never fires. ProjectLoader.ts:96 calls R.pathEq(['project','projectName'], 'EdFi') — the pre-0.29 argument order. With ramda 0.32 the signature is pathEq(value, path), so this always returns false (verified in node). All projects are simply sorted alphabetically. Same applies to line 382.

Implementation detail: the namespace-derivation/sort/de-dupe mechanics here (and FR-CFG-7) read as code paths rather than requirements.

Original inline comment

docs/PRD-4.x.md, original line 122 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: Overrides are silently ignored entirely when there are more projectNames than discovered projects (ProjectLoader.ts:54).

Original inline comment

docs/PRD-4.x.md, original line 139 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy (code bug): Not every stage always runs. Pipeline.ts returns early on file-load failure (L38), plugin configuration failure (L64, L72), and write failure (L125), all before fileMapForValidationFailure (L129) — the only place validation failures are logged. Result: an invalid plugin config prints only "Configuration validation failed for plugin X with N error(s)" with no actual messages, which undercuts NFR-REL-5 and NFR-OBS-2.

Implementation detail: this 12-stage list (also §5.1) is internal architecture; users need "validate → generate → write".

Original inline comment

docs/PRD-4.x.md, original line 156 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy:

  • compatibleDsRange is the exact Data Standard version, not a range, and is null for core.
  • ProjectSchema.schoolYearEnumeration is declared but never populated; school year is a hard-coded schoolYearTypes entry inside resourceSchemas (core only).
  • The list omits resourceName, isDescriptor, isSchoolYearEnumeration, allowIdentityUpdates, isResourceExtension, isSubclass/superclass info, commonExtensionOverrides.

Implementation detail: given the TIP links to the DMS API Schema docs, suggest replacing this field list with one sentence + the link — it will drift.

Original inline comment

docs/PRD-4.x.md, original line 167 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: "when corresponding model data exists" isn't true for most of these. Schema, tables, FKs, extended properties, enumerations, and school-year scripts are emitted for every namespace; only ID-index, EdOrg auth index, and aggregate-ID scripts are guarded by tables.length > 0.

Original inline comment

docs/PRD-4.x.md, original line 175 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: The tracked-delete schema is skipped when '<3.4.0 || >5.4.0' (ods-changequery/src/generator/GeneratorHelper.ts:95), i.e. never at the 6.0.0 default. File names also change at >=6.0.0 (e.g. 0200-CreateTrackedChangeTables.sql). Below 7.3.0, change schema/sequence are written for every namespace with no model-data check.

Original inline comment

docs/PRD-4.x.md, original line 193 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy (minor): Table/column names and data types come from data.edfiOdsSqlServer, so the SQL dictionary is SQL Server-dialect, not dialect-neutral.

Original inline comment

docs/PRD-4.x.md, original line 200 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: The "project" column holds projectEndpointName (e.g. ed-fi) and "resource name" holds the endpoint name (e.g. academicWeeks), not the project/resource names.

Original inline comment

docs/PRD-4.x.md, original line 202 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: ApiCatalogGenerator.ts:111 skips any property named id at every recursion level, not just the top level. (The api-catalog README has this right.)

Original inline comment

docs/PRD-4.x.md, original line 213 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy (minor): The duplicate-name validator reports a warning, not an error, and SchemaAnnotation.xsd is still generated when other XSD output is suppressed.

Original inline comment

docs/PRD-4.x.md, original line 223 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: Config mode doesn't merge defaults (metaed-odsapi-deploy-console.ts:169). If the config omits suppressPrereleaseVersion it is undefined → no suppression, despite the documented default of true. If it omits defaultPluginTechVersion and -x isn't given, every >=-gated task is skipped and nothing is copied.

Original inline comment

docs/PRD-4.x.md, original line 227 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy (code bug): The precheck, removal (FR-DEPLOY-11) and .csproj refresh (FR-DEPLOY-17) don't use {projectName} — they take names from fs.readdirSync(artifactDirectory), i.e. namespace folder names (ExtensionProjectsExists.ts:17, RemoveExtensionArtifacts.ts:14, RefreshProject.ts:21). Only the copy tasks use projectName. So the mismatch in line 381 also affects these tasks. Also: the gate is really "not <3.0.0" so it runs with a missing/invalid version, and readdirSync includes files.

Implementation detail: FR-DEPLOY-10..18 are dense with version gates (>=3.0.0, >=3.3.0) that are moot given copy is a no-op below 5.4.0. A small "supported tech version → target layout" table would capture the real requirement.

Original inline comment

docs/PRD-4.x.md, original line 228 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: For >=7.0.0 the copy writes to .../Versions/{v}/Standard/{ds}/Artifacts, but removal only deletes .../{name}/Artifacts (RemoveExtensionArtifacts.ts:20), so the versioned layout is never cleaned.

Original inline comment

docs/PRD-4.x.md, original line 233 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: Suppression also zeroes the patch component — valid semver becomes major.minor.0 (metaed-core/src/Utility.ts:55-63), e.g. 5.2.1 → 5.2.0. "Prerelease suppression" undersells this.

Original inline comment

docs/PRD-4.x.md, original line 252 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: Not every variant is built for every DS — in the workflow matrix TPDM is built only for DS-5.2.0, and Homograph/Sample are built for DS-4.0.0 but excluded from publishing.

Original inline comment

docs/PRD-4.x.md, original line 254 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: "when credentials are supplied" is misleading — the publish job has no credential condition and always pushes (failing if the secret is absent; $NuGetApiKey defaults to "az"). The actual gate is if: github.ref_protected. Same for line 29, which also says "moves" (it copies) and omits Interchange files and the checked-in discovery-spec.json.

Original inline comment

docs/PRD-4.x.md, original line 261 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: .github/workflows/api-schema-packaging.yml has no setup-node step, so RunMetaEd runs on whatever Node the runner ships. No package.json declares engines.

Original inline comment

docs/PRD-4.x.md, original line 291 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy (incomplete): Debug logging is enabled only via the LOG_LEVEL env var (Logger.ts:25); no CLI flag. Worth stating since users need to know how to turn it on.

Original inline comment

docs/PRD-4.x.md, original line 333 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy (minor): There is one validator (BlockPropertiesNamedDiscriminator), not "validators"; the consumer list also omits odsapi and handbook.

Original inline comment

docs/PRD-4.x.md, original line 358 · stephenfuqua

stephenfuqua on 2026-10-04

Implementation detail: GeneratedOutput shape is contributor architecture — suggest moving to the metaed-core README. (Also slightly inaccurate: empty-namespace outputs go directly under {folderName}, and empty results write no file — WriteOutput.ts:84-91.)

Original inline comment

docs/PRD-4.x.md, original line 373 · stephenfuqua

stephenfuqua on 2026-10-04

Implementation detail: Lines 373 and 375–382 read as defects discovered by code reading (config path resolution, no default merge, scan stops after first project, deploy-after-failed-build, projectName/namespaceName mismatch). Suggest filing them as issues and keeping §6.2 to deliberate product limitations.

Original inline comment

docs/PRD-4.x.md, original line 389 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: Half right. EducationOrganization is hard-coded because it's abstract and has no _Reference schema. SchoolYear is in the fragments as EdFi_SchoolYearTypeReference, but the generator's own endsWith('_Reference') filter misses it — a naming mismatch, not a discoverability problem.

Original inline comment

docs/PRD-4.x.md, original line 413 · stephenfuqua

stephenfuqua on 2026-10-04

Accuracy: Contradicts the TIP at line 159 — DMS (Ed-Fi API v8) consumes ApiSchema*.json, not the API metadata (ApiModel*.json).

Original inline comment

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Test Results

    1 files    466 suites   14m 31s ⏱️
5 666 tests 5 663 ✅ 3 💤 0 ❌
6 472 runs  6 469 ✅ 3 💤 0 ❌

Results for commit 6ffec70.

♻️ This comment has been updated with latest results.

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.

2 participants