Repository navigation
generallegal 0.2.0: agent signup, four platforms - #127
Open
Alexgodoroja wants to merge 2 commits into
Open
Alexgodoroja wants to merge 2 commits into
Alexgodoroja wants to merge 2 commits into
Conversation
added 2 commits
October 5, 2026 21:50
General Legal now exposes programmatic agent signup (POST /api/v1/signup -> /signup/complete) and key recovery. The adapter drives it end to end: the issued key is cached in $APP/secrets.json, redacted from the reply, and read per request, so contract review works without the portal or a restart. - new methods: signup_terms, signup, signup_resend, signup_complete, key_recover, key_recover_complete, set_key - calls that need a key soft-fail with a needs_signup hint instead of a 401 - grant: fs.write $APP/secrets.json - bundles for linux/amd64, linux/arm64, darwin/arm64, darwin/amd64 (0.1.0 shipped linux/amd64 only) - product demo and next-steps graph moved to the signup flow
Agent signup replaces the portal-key steps; seven new methods; changelog, grants, four-platform sizes and the product demo match the 0.2.0 submission.
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.
Updates
io.pilot.generallegalfrom 0.1.0 to 0.2.0.Why
General Legal now exposes programmatic agent signup and key recovery (documented in their OpenAPI at
api.general.legal/api/v1/openapi.json):POST /api/v1/signup: company, contact email, US billing address. Emails a six-digit code.POST /api/v1/signup/complete: code plusengagement_letter_accepted: true. Returns one API key, shown once.GET /api/v1/terms/agent-signup,POST /api/v1/signup/resend,POST /api/v1/api-key-recovery[/complete]Under 0.1.0, contract review needed a human to sign up in the portal, copy a key into
secrets.jsonand restart the app. That step is gone.0.1.0 also shipped linux/amd64 only. Its catalogue entry has no
bundlesmap and nometadata_url, so the app never spawns on macOS or arm64, and the metadata API returnsapp_not_foundfor it.What changes
signup_terms,signup,signup_resend,signup_completekey_recover,key_recover_completeset_keypublicroutes or local.signup_completeandkey_recover_completeusehttp.save_key. The key is cached in$APP/secrets.json, redacted from the reply and read per request, so there is no restart.set_keyoverwrites it with a portal key.needs_signuphint instead of a raw 401. Formation methods are unchanged and still need no account.fs.write $APP/secrets.json. Network grants are unchanged (api.general.legal,incorp-mcp.general.legal).ed25519:Tl5OtWqZ…I3lE=) for linux/amd64, linux/arm64, darwin/arm64 and darwin/amd64, with abundlesmap insubmission.json. publish-on-merge therefore releases all four and writes a full catalogue entry.metadata.jsonis regenerated (signup flow, vendor name, changelog). The product demo and next-steps graph now walk the signup flow (28 edges).Verification
pilot-app verifypasses on all four bundles.pilot-app verify-updatepasses (same key, 0.2.0 ≥ 0.1.0).demo-scoreis 83.go vet ./...andgo test ./...pass.signup_termsreturns the engagement letter URL.signupandsignup_completereach General Legal's own validation without a key.formation_optionsworks.set_keywritessecrets.jsonwith mode 0600, and the next call sends the key without a restart.signup→signup_complete→ key saved and redacted →deals_listsendsBearer <minted key>.Not covered
requireKey, sodocument_uploadwith no key returns a raw 401.set_keyurl:adds anet.dialgrant for a host the adapter never dials.