Commit graph

13 commits

Author SHA1 Message Date
Claude
59d8ad388e
ax(ueps): rename mac to messageAuthCode (AX principle 1)
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 07:46:09 +01:00
Claude
93ca88e2e3
ax(ueps): rename w→writer in writeTLV parameter
Single-letter w is not in the AX exception list (only i, _, t, c are
permitted). Replace with the full predictable name writer per AX principle 1.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:40:53 +01:00
Claude
9ca9c93b9b
ax(ueps): replace prose comment with usage example on writeTLV (AX principle 2)
Some checks failed
Security Scan / security (push) Successful in 34s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:38:07 +01:00
Claude
38b22f96a0
ax(ueps): rename tsBuf to threatScoreBytes (AX principle 1)
Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 07:32:57 +01:00
Claude
9949942ff5
ax(ueps): replace ParsedPacket field-list comment with usage example
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 07:31:38 +01:00
Claude
c13f2ac715
ax(ueps): replace prose struct comment on UEPSHeader with usage example
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
UEPSHeader's type-level comment restated the name in prose; replaced with
a concrete struct-literal example (AX principle 2). Field inline comments
updated from vague labels to descriptive value-context notes.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 07:29:30 +01:00
Claude
49ac6d455a
ax(ueps): replace prose comments with usage examples (AX principle 2)
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
NewBuilder, MarshalAndSign, ReadAndVerify, PacketBuilder, and ParsedPacket
comments now show concrete call-site examples with real values instead of
restating what the type signatures already convey.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 07:27:25 +01:00
Claude
b41c63b10f
ax(ueps): rename TagCurrentLay/TagTargetLay to TagCurrentLayer/TagTargetLayer
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Abbreviated constant names violated AX Principle 1 (Predictable Names Over
Short Names). The struct fields already used CurrentLayer/TargetLayer — the
constants now match, eliminating the inconsistency.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 07:26:00 +01:00
google-labs-jules[bot]
8881dd324b feat: Create error handling and logging audit
This commit introduces a new audit document, `AUDIT-ERROR-HANDLING.md`, which provides a comprehensive review of the project's error handling and logging practices.

The audit covers:
-   **Error Handling:** Analyzes the inconsistency between the well-structured API error responses and the simpler, unstructured error handling at the application's entry points.
-   **Logging:** Details the existing custom logger, its lack of JSON output, and its inconsistent use across the codebase.
-   **Recommendations:** Provides actionable steps for improvement, including adopting structured JSON logging, centralizing logger configuration, and standardizing on the global logger.

This commit also includes fixes for pre-existing build errors to allow the CI to pass:
-   Adds a missing package declaration and imports in `pkg/node/dispatcher.go` and comments out calls to undefined methods.
-   Adds a missing import in `pkg/node/peer.go` and resolves an unused variable error.
-   Removes an unused import in `pkg/ueps/packet.go`.

Co-authored-by: Snider <631881+Snider@users.noreply.github.com>
2026-02-02 01:29:57 +00:00
google-labs-jules[bot]
da7e31e741 feat: Create error handling and logging audit
This commit introduces a new audit document, `AUDIT-ERROR-HANDLING.md`, which provides a comprehensive review of the project's error handling and logging practices.

The audit covers:
-   **Error Handling:** Analyzes the inconsistency between the well-structured API error responses and the simpler, unstructured error handling at the application's entry points.
-   **Logging:** Details the existing custom logger, its lack of JSON output, and its inconsistent use across the codebase.
-   **Recommendations:** Provides actionable steps for improvement, including adopting structured JSON logging, centralizing logger configuration, and standardizing on the global logger.

Co-authored-by: Snider <631881+Snider@users.noreply.github.com>
2026-02-02 01:18:15 +00:00
google-labs-jules[bot]
f91f251afc feat: Create error handling and logging audit
This commit introduces a new audit document, `AUDIT-ERROR-HANDLING.md`, which provides a comprehensive review of the project's error handling and logging practices.

The audit covers:
-   **Error Handling:** Analyzes the inconsistency between the well-structured API error responses and the simpler, unstructured error handling at the application's entry points.
-   **Logging:** Details the existing custom logger, its lack of JSON output, and its inconsistent use across the codebase.
-   **Recommendations:** Provides actionable steps for improvement, including adopting structured JSON logging, centralizing logger configuration, and standardizing on the global logger.

Additionally, this commit includes minor, unrelated fixes to address pre-existing build failures:
-   Adds a missing package declaration and imports in `pkg/node/dispatcher.go`.
-   Removes an unused import in `pkg/ueps/packet.go`.

Co-authored-by: Snider <631881+Snider@users.noreply.github.com>
2026-02-02 01:14:25 +00:00
775c35c772
Implement ReadAndVerify function for UEPS frames 2026-01-03 16:01:58 +00:00
6ffcb353c0
Implement UEPS packet structure and signing 2026-01-03 15:59:33 +00:00