Carl Niklas Rydberg
9754582ae7
Implement store error IO class, optional config validation, and ops init helper
2025-12-21 23:29:24 +01:00
Carl Niklas Rydberg
a992e89766
Made StoreConfig enforcement pluggable at the amduat_asl_store_t boundary by adding a validate_config hook to store ops. validate_config is now optional, get rejects refs whose hash_id doesn’t match the store config, and put verifies the returned Reference matches the configured hash_id. This uses the StoreConfig at the boundary without forcing every store to implement the hook.
2025-12-21 23:18:12 +01:00
Carl Niklas Rydberg
24ad51ff46
Added AMDUAT_ASL_STORE_ERR_IO and used it in the FS store path so I/O/internal failures no longer surface as integrity errors; updated CLI/error mappings so the new error is visible and gets the IO exit code. This keeps integrity reserved for actual content/hash/collision issues while still preserving existing semantics for not-found/unsupported.
2025-12-21 22:59:31 +01:00
Carl Niklas Rydberg
39712f7b70
Added a central ASL reference-derivation API and wired the filesystem store (plus the PEL stub store) to use it, so all reference creation now goes through the canonical encode+hash path.
2025-12-21 22:22:17 +01:00
Carl Niklas Rydberg
71d2303c3c
Moved EncodingProfileId into ASL core and decoupled the encoder header from STORE, so ASL/1-CORE stands alone as required.
2025-12-21 22:12:09 +01:00
Carl Niklas Rydberg
dd429ed6f1
Implemented immutable ownership helpers for core ASL values and routed internal clone/free paths through them so stored artifacts/references are deep-copied and no longer depend on caller-owned buffers.
2025-12-21 22:09:58 +01:00
Carl Niklas Rydberg
bdbe9cd6fc
Extract shared IO/parse/decode/run utilities
...
add artifact/ref IO, format parse, opreg formatting, PEL decode/run modules
refactor PEL/ASL CLIs and pel_run/seed to use shared helpers
update build to include new sources and headers
2025-12-20 21:03:31 +01:00
Carl Niklas Rydberg
2a0fd994e5
Share ASL store-id validation
2025-12-20 11:21:07 +01:00
Carl Niklas Rydberg
edc81beb9b
Promote ASL IO helpers
2025-12-20 11:19:08 +01:00
Carl Niklas Rydberg
f48b73b75f
Promote ASL ID parsing helpers
2025-12-20 11:16:16 +01:00
Carl Niklas Rydberg
4bc40995b4
Promote ASL reference hex helpers
2025-12-20 11:14:06 +01:00
Carl Niklas Rydberg
c6f9c6a696
Add ASL FS metadata and layout helper
2025-12-20 07:54:23 +01:00
Carl Niklas Rydberg
15b36b1f1d
Implement ASL store FS adapter and ENC/ASL1-CORE registry
2025-12-19 23:16:38 +01:00
Carl Niklas Rydberg
b47b914224
Scaffold C layout and ASL registry model
2025-12-19 19:22:40 +01:00