feat(core): integrate @metaharness/avo as a metaharness dependency + metaharness avo subcommand - #226
Open
ruvnet wants to merge 1 commit into
Open
feat(core): integrate @metaharness/avo as a metaharness dependency + metaharness avo subcommand#226ruvnet wants to merge 1 commit into
metaharness avo subcommand#226ruvnet wants to merge 1 commit into
Conversation
β¦`metaharness avo` subcommand
Wires the governed autonomous variation runtime (ADR-251) and its flywheel-gate receipt contract
(ADR-271) into the core CLI, matching the existing subcommand-delegation pattern (flywheel/redblue/
turn-credit β `<pkg>/cli` dispatch).
- @metaharness/avo@0.1.4: adds `src/cli.ts` (dispatch(cmd,args)->{lines,code}) + a `./cli` export.
Subcommands: `trusted-key` (print the SPKI-DER key to register in FLYWHEEL_TRUSTED_PUBLIC_KEYS_JSON),
`gate-build` (build+sign the 5 gate receipts from an AvoRunSummary, offline), `gate-submit`
(POST them to /v1/flywheel/gate for a governed verdict). Uses avo's real flywheelGate API.
- metaharness@0.4.8: adds `@metaharness/avo@^0.1.4` to dependencies + a `case 'avo'` router entry +
a help line. The GovernedVariationOperator stays a library import β the gateway is never a runtime dep.
Verified end-to-end through the built core bin: `metaharness avo gate-build <summary>` produces the
5 signed receipts + a promote decision; avo tests 10/10; core tsc clean. Both published to npm.
Co-Authored-By: claude-flow <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01BENsRDh3LVeZWMMeY1JncW
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.
Integrates
@metaharness/avo(the governed autonomous variation runtime, ADR-251, + its ADR-271 flywheel-gate receipt contract) into the coremetaharnessCLI β matching the existing subcommand-delegation pattern (flywheel/redblue/turn-creditβ<pkg>/clidispatch).Changes
@metaharness/avo@0.1.4β newsrc/cli.tsexposingdispatch(cmd, args) -> { lines, code }(the same contract the other package CLIs use) + a./cliexport. Subcommands:trusted-key [--signer priv.pem] [--out priv.pem]β print the base64 SPKI-DER key to register in the gatewayFLYWHEEL_TRUSTED_PUBLIC_KEYS_JSONallowlist.gate-build <run-summary.json> [--signer priv.pem]β build + sign the five gate receipts from anAvoRunSummary(offline, no network).gate-submit <run-summary.json> --base-url URL [--api-key-env ENV] [--signer priv.pem]β submit toPOST /v1/flywheel/gatefor a governed verdict.flywheelGateAPI (receiptsToGateInput/submitToFlywheelGate/gateTrustedKey).metaharness@0.4.8β adds@metaharness/avo@^0.1.4todependencies, acase 'avo'in the subcommand router, and a help line.Non-goal (kept)
The
GovernedVariationOperatorstays a library import; the completions gateway is never a runtime dependency of the core (ADR-271's boundary).Verification
metaharness avo gate-build <summary>β 5 signed receipts + apromote:truereplay decision;metaharness avo trusted-keyβ a real SPKI-DER key.@metaharness/avotests: 10/10. Coretsc: clean.@metaharness/avo@0.1.4,metaharness@0.4.8) β this PR lands the source somainmatches the registry and CI validates the wiring.π€ Generated with claude-flow