Skip to content

scalable distributed syncing#401

Open
Aditya8369 wants to merge 1 commit into
Memact:mainfrom
Aditya8369:389
Open

scalable distributed syncing#401
Aditya8369 wants to merge 1 commit into
Memact:mainfrom
Aditya8369:389

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Implemented a scalable, deterministic “Distributed Schema Compilers & Tooling Sync” subsystem (local, in-memory prototype) with:

New module: src/schema-sync/*

artifact-model.mjs: stable hashing + artifact_id + manifest/artifact constructors
compiler-contract.mjs: compileSchema() -> { manifest, artifact }
sync-protocol.mjs: sync message shapes (announce/push/pull/ack)
permission-enforcer.mjs: redact sensitive sections based on existing src/registry.mjs sensitive-field rules
reconciliation-store.mjs: idempotent applyMessage() + artifact/manifest storage
cap-envelope.mjs: lightweight CAP-like request/packet helpers
index.mjs: exports
Demo script: scripts/schema-sync-demo.mjs

Simulates two nodes, compiles the fitness-challenges schema, pushes to Node A, and applies to Node B with redaction of sensitive metadata.
Tests: test/schema-sync/artifact-sync.test.mjs
Deterministic artifact_id
Idempotent message application
Permission-based redaction behavior
Validation

node --test passes (7 tests).
node scripts/schema-sync-demo.mjs shows Node B storing the artifact with redaction applied.
Note

The referenced docs (docs/distributed-schema-compilers-sync-architecture.md, docs/oauth-flow-schema-compilers-contract.md) and consent source files were not present in the accessible workspace during implementation; the subsystem was built using the existing CAP v1 concepts and current category sensitive-field/permission patterns.

closes #389

@adikulkarni006 adikulkarni006 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Approved. No major blockers. LGTM."

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.

[Hard] Build scalable distributed syncing for Schema Compilers & Tooling

2 participants