Skip to content

feat: Align open-banking with @hasna/contracts - #4

Merged
andrei-hasna merged 2 commits into
mainfrom
factory/d4aabb41-3361-45b7-87da-1c0e11f8-eae1cf82
Jul 29, 2026
Merged

feat: Align open-banking with @hasna/contracts#4
andrei-hasna merged 2 commits into
mainfrom
factory/d4aabb41-3361-45b7-87da-1c0e11f8-eae1cf82

Conversation

@andrei-hasna

@andrei-hasna andrei-hasna commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Objective

Align open-banking with @hasna/contracts

Run the @hasna/contracts conformance check for this repo and fix every violation until it passes — ensure a valid hasna.contract.json, published_artifact_gate satisfied (artifact-scan wired into prepack), storage waiver where applicable, and all required metadata/scripts present. Keep changes minimal and conformant. Open a PR; do not merge.

Verification

  • policy source: base 8f87ed8 (immutable commit — agent-proof)
  • ⚠️ GATE-INTEGRITY: agent touched verify-bearing config — REVIEW (scripts.artifact-scan, scripts.contracts:check, scripts.prepack)
  • containment: env — allowlist env, non-login shell, run-scoped HOME (registry auth seeded for install)
  • install: pass
  • typecheck: pass
  • lint: pass
  • build: pass
  • test: pass
  • doctor (ci): ok — 11 checks passed (1 advisory)

Run run_6f82f44a69ec · backend codewith · task d4aabb41-3361-45b7-87da-1c0e11f85d70
🏭 Generated by @hasnaxyz/factory


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Align open-banking with @hasna/contracts

Run the @hasna/contracts conformance check for this repo and fix every violation until it passes — ensure a valid hasna.contract.json, published_artifact_gate satisfied (artifact-scan wired into prepack), storage waiver where applicable, and all required metadata/scripts present. Keep changes minimal and conformant. Open a PR; do not merge.

X-Factory-Run: run_6f82f44a69ec
X-Factory-Task: d4aabb41-3361-45b7-87da-1c0e11f85d70
The manifest added in this branch was not a hasna.service_contract.v1
document, so `contracts repo-conformance .` failed at manifest_valid and the
branch never moved the gate from fail to pass.

- Rewrite hasna.contract.json in the real v1 shape: schema, lowercase dashed
  name, class, contractVersion, kitVersion, description, bins, hosting, and
  serviceSurfaces for the SDK, CLI, and MCP entrypoints. The invented
  top-level `waivers` array becomes metadata.conformance.waivedStorageEngines,
  the documented key. `$schema` points at the kit's own schema file, which
  resolves after install, instead of a raw.githubusercontent URL that 404s.
- Declare metadata.release.artifactScan.script so published_artifact_gate can
  find the scan, and pin the kit in every script that runs it, as the gate
  requires for reproducibility.
- artifact-scan now packs a tarball and scans it, so the scan runs in
  packed_artifact mode rather than against the source tree.
- contracts:check called a `check` subcommand the kit does not expose and
  exited 1 every time; it now calls repo-conformance.
- CI runs both gates on pull_request, so a regression in the manifest turns
  the build red instead of passing unnoticed.

`contracts repo-conformance .` exits 0 with every check pass or skip.
@andrei-hasna
andrei-hasna merged commit 3029a5a into main Jul 29, 2026
2 checks passed
@andrei-hasna
andrei-hasna deleted the factory/d4aabb41-3361-45b7-87da-1c0e11f8-eae1cf82 branch July 29, 2026 16:38
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.

1 participant