Add identity cache ingestion correctness proposal #3300

Open
mfreeman451 wants to merge 0 commits from spec/identity-cache-ingestion-correctness into staging
Owner

Summary

  • Adds an OpenSpec proposal for auditing identity cache correctness across ingestion and mutation paths.
  • Defines expected outcomes, risks of doing the work, risks of not doing it, and a caller-audit go/no-go checkpoint.
  • Makes DeviceLookup cache use opt-in by default so ingestion/write-adjacent paths do not trust stale IP cache entries.
  • Marks active lookup call sites explicit, adds device/IP-alias lifecycle cache invalidation, and adds stale-cache regression coverage.

Validation

  • openspec validate refactor-identity-cache-ingestion-correctness --strict
  • MIX_ENV=test mix compile --warnings-as-errors
  • MIX_ENV=test mix test test/serviceradar/identity/identity_cache_test.exs
  • srql-fixtures scratch DB: MIX_ENV=test mix ecto.migrate && mix test test/serviceradar/identity/device_lookup_alias_test.exs
## Summary - Adds an OpenSpec proposal for auditing identity cache correctness across ingestion and mutation paths. - Defines expected outcomes, risks of doing the work, risks of not doing it, and a caller-audit go/no-go checkpoint. - Makes `DeviceLookup` cache use opt-in by default so ingestion/write-adjacent paths do not trust stale IP cache entries. - Marks active lookup call sites explicit, adds device/IP-alias lifecycle cache invalidation, and adds stale-cache regression coverage. ## Validation - openspec validate refactor-identity-cache-ingestion-correctness --strict - MIX_ENV=test mix compile --warnings-as-errors - MIX_ENV=test mix test test/serviceradar/identity/identity_cache_test.exs - srql-fixtures scratch DB: MIX_ENV=test mix ecto.migrate && mix test test/serviceradar/identity/device_lookup_alias_test.exs
Add identity cache ingestion correctness proposal
Some checks failed
lint / lint (push) Has been cancelled
Golang Tests / test-go (push) Has been cancelled
64e756f2c2
Clarify identity cache proposal tradeoffs
Some checks failed
Secret Scan / gitleaks (pull_request) Successful in 25s
Golang Tests / test-go (push) Successful in 1m7s
lint / lint (push) Successful in 1m23s
lint / lint (pull_request) Successful in 1m20s
CI / build (pull_request) Has been cancelled
4660e934c2
Make identity cache opt-in for ingestion lookups
Some checks failed
Secret Scan / gitleaks (pull_request) Successful in 34s
lint / lint (pull_request) Successful in 1m12s
lint / lint (push) Successful in 1m13s
Golang Tests / test-go (push) Successful in 1m14s
CI / build (pull_request) Has been cancelled
537ad70a3d
Invalidate identity cache for IP alias changes
Some checks failed
Secret Scan / gitleaks (pull_request) Successful in 35s
lint / lint (pull_request) Successful in 1m3s
lint / lint (push) Successful in 1m6s
Golang Tests / test-go (push) Successful in 1m13s
CI / build (pull_request) Failing after 27m40s
34c5f37f51
Some checks failed
Secret Scan / gitleaks (pull_request) Successful in 35s
lint / lint (pull_request) Successful in 1m3s
lint / lint (push) Successful in 1m6s
Golang Tests / test-go (push) Successful in 1m13s
CI / build (pull_request) Failing after 27m40s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin spec/identity-cache-ingestion-correctness:spec/identity-cache-ingestion-correctness
git switch spec/identity-cache-ingestion-correctness

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch staging
git merge --no-ff spec/identity-cache-ingestion-correctness
git switch spec/identity-cache-ingestion-correctness
git rebase staging
git switch staging
git merge --ff-only spec/identity-cache-ingestion-correctness
git switch spec/identity-cache-ingestion-correctness
git rebase staging
git switch staging
git merge --no-ff spec/identity-cache-ingestion-correctness
git switch staging
git merge --squash spec/identity-cache-ingestion-correctness
git switch staging
git merge --ff-only spec/identity-cache-ingestion-correctness
git switch staging
git merge spec/identity-cache-ingestion-correctness
git push origin staging
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carverauto/serviceradar!3300
No description provided.