feat(validate): add passport preflight checks for Checkpoints 1 & 2 (EXPLAINABILITY.md and DUTIES.md) - #104
Open
naman-swami wants to merge 1 commit into
Conversation
…XPLAINABILITY.md and DUTIES.md)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces GitAgent Passport preflight validation (
--passport/-p) to theopengap validateCLI command, enabling developers to locally verify Checkpoint 1 (Separation of Duties) and Checkpoint 2 (Explainability & Decision Transparency) compliance before submitting agents to the GitAgent Passport verification engine.Problem
Previously,
opengap validatecheckedagent.yaml,SOUL.md, tool contracts, skills, and--compliance, but did not validateEXPLAINABILITY.mdorDUTIES.md. Developers would pass local CLI validation, but fail Checkpoint 1 or Checkpoint 2 on the passport platform due to missing required explainability sections (Decision reasoning, Data sources, Known limitations) or conflicting Maker-Checker assignments.Solution & Changes
validateExplainabilityMd(dir):EXPLAINABILITY.mdexists and is structured with markdown headings.decision,reasoning, orhow it decides)data source,input, ordata used)limitation,constraint, orknown issue)validateDutiesMd(dir):DUTIES.mdandAGENTS.mdfor role definitions.validatePassport(dir):-p, --passportflag toopengap validate.src/commands/validate-passport.test.tscovering all positive and negative edge cases (100% pass rate).Testing
npm testpasses all 61 tests across 14 test suites cleanly.opengap validate --passport.