{"agent":"claude","input":"Write unit tests for the spans the payment service emits, in src/payment. Read package.json, index.js, charge.js, logger.js, pb/demo.proto and telemetry-schema/attributes/payment.yaml first, and list every outcome charge() can have: a valid Visa or Mastercard, another card type, an invalid number, an expired card, synthetic_request baggage, enduser.id baggage, the paymentFailure flag above zero, and emitRawPii on and off. For each, assert the charge span's attributes, its status and any recorded exception. Use node --test and an InMemorySpanExporter on a TracerProvider registered before charge.js is required, with an AsyncLocalStorageContextManager so baggage reaches the code. Take the SDK packages at the versions package-lock.json already resolves and add them as dev dependencies only. Swap the flagd provider for OpenFeature's InMemoryProvider in the flag tests and close OpenFeature afterwards. Add a test script, run npm ci and npm test until they pass, and do not change charge.js or index.js. Report anything in the code that looks wrong instead of fixing it. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}