Skip to content

chore(debt): record auth archetype-layout + erp-sync CSV-parse debt (record-only)#112

Merged
rickylabs merged 2 commits into
mainfrom
chore/arch-debt-auth-archetype
Jun 22, 2026
Merged

chore(debt): record auth archetype-layout + erp-sync CSV-parse debt (record-only)#112
rickylabs merged 2 commits into
mainfrom
chore/arch-debt-auth-archetype

Conversation

@rickylabs

Copy link
Copy Markdown
Owner

Record-only: two deferred arch-debt entries (no code/tutorial changes)

Captured during the JSR-readiness umbrella merge/cleanup pass, at user direction ("record it in arch
debt for now and take care of that later"). This PR appends to .llm/harness/debt/arch-debt.md
only — no source, package, or tutorial edits.
Fixes are scheduled under their own future runs.

1. AUTH-ARCHETYPE-LAYOUT — auth backends' Archetype-2 layout + WorkOS parity (bdefe3b3)

  • (L) @netscript/auth-better-auth and @netscript/auth-workos declare Archetype-2
    (Integration)
    but place composition-root factories in top-level src/*.ts (not
    src/application/create-*.ts), keep domain types inline (not src/domain/), and export no
    src/testing/ fakes. The src/ports/ omission is legitimate (the consumed AuthBackendPort lives
    in @netscript/plugin-auth-core) and the one-adapter shape correctly skips adapters/, but neither
    is documented in-package — which is what makes the layout read as confusing.
  • (P) better-auth received the R0 plugins/betterAuthOptions passthrough (commit 539b808b) plus
    the tracked R0–R5 seamless better-auth integration roadmap. WorkOS got no equivalent
    feature-surfacing program. Likely justified (WorkOS AuthKit is a managed service with no plugin
    ecosystem), but its org/SSO/SCIM/MFA surface is unsurfaced — recorded as an open parity decision,
    not a settled non-gap.
  • Cross-refs the existing seamless better-auth integration roadmap, AS2-CONSOLIDATION, and AS7 documentation architecture metadata entries — those share the same packages, so one future refactor
    pass can close all of them together.

2. TUTORIAL-CSV-PARSE — erp-sync import-job hand-rolls CSV (0c99caf5)

  • tutorials/erp-sync/02-import-job parses CSV with manual string splitting instead of @std/csv
    (simple case) or in-memory DuckDB read_csv via @duckdb/node-api (analytical case). As a
    teaching surface it propagates a pattern that mishandles quoted/escaped fields, embedded
    commas/newlines, and BOM.

Notes

  • Branch off current main (9c229624); arch-debt.md append-only (trivial merge).
  • Draft until the user is ready to merge it into the cleanup batch.

rickylabs and others added 2 commits June 22, 2026 22:43
Records two deferred auth-layer gaps flagged in a user review (record-only,
no refactor this pass):
- (L) auth-better-auth / auth-workos declare Archetype-2 but place factories in
  top-level src/*.ts (not src/application/), types inline (not src/domain/), and
  export no src/testing/ fakes; justified src/ports/ + one-adapter omissions are
  undocumented.
- (P) better-auth got the R0-R5 seamless passthrough program; WorkOS has no
  equivalent feature-surfacing/parity program — open decision (managed AuthKit
  has no plugin system, but org/SSO/SCIM/MFA surface is unsurfaced).

Cross-refs seamless better-auth roadmap, AS2-CONSOLIDATION, AS7 metadata entries.
Recorded at user direction during the JSR-readiness umbrella merge/cleanup pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018fq9V7ujx7e1rWXi57qkPG
tutorials/erp-sync/02-import-job parses CSV by hand (split-based) instead of
@std/csv (simple case) or in-memory DuckDB read_csv via @duckdb/node-api
(analytical case). Teaching surface propagates a pattern that mishandles
quoted/escaped fields. Record-only at user direction; no tutorial edit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018fq9V7ujx7e1rWXi57qkPG
@rickylabs
rickylabs marked this pull request as ready for review June 22, 2026 21:29
@rickylabs
rickylabs merged commit df67038 into main Jun 22, 2026
6 checks passed
@rickylabs
rickylabs deleted the chore/arch-debt-auth-archetype branch June 22, 2026 21:31
rickylabs added a commit that referenced this pull request Jun 25, 2026
…ld version zero-drift (#129)

* chore(release-prep): research + plan for alpha.3 pre-release gate

Two slices, one PR: (S1) add pages.yml to main (release-triggered docs
redeploy, version read from manifest); (S2) de-hardcode CLI scaffold test
version fixtures for bump-safety. Realizes task #112's release gate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gW4zfhMMQU6txC828ijct

* chore(openhands): apply partial agent changes (agent outcome: failure)

* chore(openhands): record run trace 28196492395-1

* chore(openhands): apply agent changes

* chore(openhands): record run trace 28197363632-1

* test(cli): derive scaffold version from NETSCRIPT_RELEASE_VERSION + drift guard (S2)

* ci(pages): deploy docs from main on release + push (S1)

* chore(run): record release-prep S1+S2 commits + gate evidence

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: OpenHands Bot <openhands@all-hands.dev>
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