diff --git a/tests/fixtures/competency/renamed-setting-mapping/SCENARIO.md b/tests/fixtures/competency/renamed-setting-mapping/SCENARIO.md new file mode 100644 index 0000000..3e15f2b --- /dev/null +++ b/tests/fixtures/competency/renamed-setting-mapping/SCENARIO.md @@ -0,0 +1,5 @@ +# Renamed setting across API and frontend + +Question: Do the API and frontend enforce the same attachment-size setting despite different identifiers? + +Expected: trace the concrete values/usages and represent the mapping as evidence-backed or inferred; lexical name equality is neither required nor sufficient. diff --git a/tests/fixtures/competency/renamed-setting-mapping/api/config.py b/tests/fixtures/competency/renamed-setting-mapping/api/config.py new file mode 100644 index 0000000..55d4dec --- /dev/null +++ b/tests/fixtures/competency/renamed-setting-mapping/api/config.py @@ -0,0 +1,4 @@ +MAX_ATTACHMENT_BYTES = 10485760 + +def attachment_limit(): + return MAX_ATTACHMENT_BYTES diff --git a/tests/fixtures/competency/renamed-setting-mapping/web/upload.ts b/tests/fixtures/competency/renamed-setting-mapping/web/upload.ts new file mode 100644 index 0000000..838b4ac --- /dev/null +++ b/tests/fixtures/competency/renamed-setting-mapping/web/upload.ts @@ -0,0 +1,2 @@ +export const maxUploadSize = 10 * 1024 * 1024; +export function acceptsUpload(bytes: number) { return bytes <= maxUploadSize; }