Skip to content

refactor: remove chain/wallet stack; add Pix payments and acct_ identity - #428

Open
lipetconecta-ux wants to merge 3 commits into
Conway-Research:mainfrom
lipetconecta-ux:main
Open

lipetconecta-ux wants to merge 3 commits into
Conway-Research:mainfrom
lipetconecta-ux:main

Conversation

@lipetconecta-ux

Copy link
Copy Markdown

Summary

  • Replace wallet/x402/SIWS identity with Ed25519 acct_ accounts (~/.automaton/account.json)
  • Add BRL/Pix pipeline: integer centavos money, BR Code, QR, webhook, mock + Mercado Pago providers
  • Conway registry registration signing; CLI send/fund rewritten against account ids
  • Scrub chain references from code, tests, and docs (legacy DB migrations and injection-defense vocabulary kept)

Verification

  • tsc --noEmit root + CLI: clean
  • vitest run: 63 files / 1682 tests passed
  • pnpm build: clean
  • pnpm test:coverage: statements 70.05%, branches 76.26%, functions 80.76%

Replace wallet/x402/SIWS identity with Ed25519 acct_ accounts at ~/.automaton/account.json. Add BRL/Pix pipeline (money, BR Code, QR, webhook, mock + Mercado Pago providers) with registration signing for the Conway registry. Rewrite CLI send/fund against account ids, scrub chain references from code, tests, and docs, and keep legacy DB migrations plus injection-defense attack vocabulary. Full gate green: tsc root+CLI, 1682 vitest tests, build, coverage.
vitest 2.1.9 has no --grep CLI flag (CACError: Unknown option), so the CI security-tests step and the test:security/test:financial scripts always failed. -t is the supported equivalent. Use double quotes so Windows cmd does not split the alternation on |.
New src/web/server.ts serves a self-contained dashboard on 127.0.0.1: GET / (page), GET /api/status, GET /api/turns?limit=1..50, POST /api/chat (validated, queued into the inbox followed by a wake event). Wired as --web / --run --web / --port N / WEB_PORT; a first --web run without config creates a local default so the site works out of the box. Adds 9 HTTP round-trip tests and documents the dashboard in README, DOCUMENTATION and ARCHITECTURE.
@NosytLabs

Copy link
Copy Markdown

Not merged yet — this is the product pivot (drop the chain/wallet stack, add Pix payments and acct_ identity) and it needs a deliberate port, not a mechanical merge.

What was verified: 1691 tests, 0 failures on the branch in isolation (CI Node version).

Why it is not merged:

  • Dependencies. This branch changes package.json (22 lines) and pnpm-lock.yaml (1149 lines) — it removes the chain/wallet dependency set on purpose. Main has since moved to better-sqlite3 13 / vitest 5 / pnpm-only. Taking this branch's dependency files wholesale would undo main's dependency refresh, so the lockfile has to be regenerated from the merged package.json instead of copied.
  • Code. 139 source files, and the same local-mode overlap as feat: add bounded safe local test mode #425: src/index.ts, src/agent/loop.ts, src/conway/inference.ts and src/inference/router.ts all differ from main's current local-mode implementation.

If the Pix/acct_ direction is the intended future, the clean order is: decide the local-mode design first (#425), then port #428 onto the result and regenerate the lockfile.

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.

3 participants