Skip to content

fix(publish): emit assessment-requirement ids in the publish manifest - #308

Merged
eddie-knight merged 3 commits into
privateerproj:mainfrom
eddie-knight:fix/embedded-requirement-ids
Sep 21, 2026
Merged

eddie-knight merged 3 commits into
privateerproj:mainfrom
eddie-knight:fix/embedded-requirement-ids

Conversation

@eddie-knight

@eddie-knight eddie-knight commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🤖 requirement_ids in the evaluates linkage is assessment-requirement ids per
grc-store-protocol/pluginspec, the same id space evaluation steps are keyed
by. PublishManifest emitted control ids instead. Re-publishing a plugin
writes a different evaluates record to the hub; a catalog whose controls
carry no assessment requirements now fails publish.

Mobilize logs a suite's Evaluate error rather than returning it, and the
suite's zero Result is NotRun, so a suite that failed before assessing
anything let the whole run exit TestPass. Set Result to Unknown when it is
still unset after a failed Evaluate, so the run exits TestFail and the
suite's result in YAML/JSON/Gemara output reads Unknown.

Signed-off-by: Eddie Knight <knight@linux.com>
requirement_ids in the evaluates linkage is assessment-requirement ids per
grc-store-protocol/pluginspec, the same id space evaluation steps are keyed
by. PublishManifest emitted control ids instead. Re-publishing a plugin
writes a different evaluates record to the hub; a catalog whose controls
carry no assessment requirements now fails publish.

Signed-off-by: Eddie Knight <knight@linux.com>
@eddie-knight
eddie-knight requested a review from a team September 17, 2026 21:13
@eddie-knight
eddie-knight enabled auto-merge (squash) September 17, 2026 21:13
@github-actions github-actions Bot added the fix label Sep 17, 2026
auto-merge was automatically disabled September 18, 2026 03:04

Pull request was closed

@eddie-knight eddie-knight reopened this Sep 21, 2026
@eddie-knight
eddie-knight merged commit 193c248 into privateerproj:main Sep 21, 2026
5 checks passed
vinayada1 added a commit to vinayada1/privateer-sdk that referenced this pull request Sep 22, 2026
Resolves three collisions with upstream privateerproj#307 and privateerproj#308:

- evaluation_orchestrator_test.go imports: keep both viper (this
  branch's environment-hint tests) and shared (upstream's exit-code
  assertion).
- evaluation_orchestrator_test.go tail: both sides appended tests;
  keep both.
- publish_manifest_test.go: keep this branch's "} else if" guard for
  the post-Fatal dereference (staticcheck SA5011) while adopting
  upstream's new assessment-requirement id format (P-1 -> P-1.T01).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: fe4dbc48-1baa-405c-b781-cf27283a95a4
Signed-off-by: vinayada1 <vinayada1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants