Improve ACLED auth diagnostics and tests #14

Merged
MrSphay merged 3 commits from codex/issue-3-acled-diagnostics-auth-tests into codex/production-intelligence-terminal 2026-05-17 15:48:06 +00:00
Owner

Refs #3. This intentionally does not claim exclusive closure because a remote branch codex/issue-3-acled-diagnostics already exists from another worker.

Changes:

  • classify ACLED failures as no_credentials, auth_failed, access_denied, or api_failed
  • support ACLED_USER / ACLED_USERNAME as aliases for ACLED_EMAIL
  • make ACLED auth/data flow injectable for mocked regression tests
  • stop debug output from printing bearer token/cookie details
  • update ACLED source docs and README credential notes

Verification:

  • node --check apis/sources/acled.mjs
  • node --test test/acled-source.test.mjs
  • npm run test:unit
  • node apis/sources/acled.mjs without credentials
  • git diff --check

Merge note: I avoided package.json changes to reduce conflicts with PR #9. The ACLED test is direct-run until the test manifest is consolidated.

Refs #3. This intentionally does not claim exclusive closure because a remote branch codex/issue-3-acled-diagnostics already exists from another worker. Changes: - classify ACLED failures as no_credentials, auth_failed, access_denied, or api_failed - support ACLED_USER / ACLED_USERNAME as aliases for ACLED_EMAIL - make ACLED auth/data flow injectable for mocked regression tests - stop debug output from printing bearer token/cookie details - update ACLED source docs and README credential notes Verification: - node --check apis/sources/acled.mjs - node --test test/acled-source.test.mjs - npm run test:unit - node apis/sources/acled.mjs without credentials - git diff --check Merge note: I avoided package.json changes to reduce conflicts with PR #9. The ACLED test is direct-run until the test manifest is consolidated.
MrSphay added 1 commit 2026-05-17 12:06:01 +00:00
fix: improve acled auth diagnostics
All checks were successful
Codex Template Compliance / template-compliance (pull_request) Successful in 5s
Build / test-and-image (pull_request) Successful in 49s
bb139799d7
MrSphay added 1 commit 2026-05-17 14:45:26 +00:00
Merge branch 'codex/production-intelligence-terminal' into codex/issue-3-acled-diagnostics-auth-tests
All checks were successful
Codex Template Compliance / template-compliance (pull_request) Successful in 5s
Build / test-and-image (pull_request) Successful in 50s
43a5b642e4
MrSphay added 1 commit 2026-05-17 15:46:17 +00:00
Merge branch 'codex/production-intelligence-terminal' into codex/issue-3-acled-diagnostics-auth-tests
All checks were successful
Codex Template Compliance / template-compliance (pull_request) Successful in 5s
Build / test-and-image (pull_request) Successful in 48s
833b7dedd7
MrSphay merged commit 7a562bc8cf into codex/production-intelligence-terminal 2026-05-17 15:48:06 +00:00
MrSphay deleted branch codex/issue-3-acled-diagnostics-auth-tests 2026-05-17 15:48:07 +00:00
Sign in to join this conversation.