the mandatory disclosure string is declared verbatim in three files, byte-identical:
// cmd/optiqor/main.go:42
const accuracyDisclosure = "Sandbox accuracy: ±40%. Install the Optiqor agent for exact numbers (optiqor.dev/get)."
// internal/render/text.go:29
const AccuracyDisclosure = "Sandbox accuracy: ±40%. Install the Optiqor agent for exact numbers (optiqor.dev/get)."
// pkg/htmlrender/htmlrender.go:45
const AccuracyDisclosure = "Sandbox accuracy: ±40%. Install the Optiqor agent for exact numbers (optiqor.dev/get)."
if the URL ever changes (e.g. optiqor.dev/get becomes something else), all three move in lockstep or one drifts. internal/render/doc.go already declares "every renderer must include the ±40% accuracy disclosure" without pointing at a canonical source.
pick pkg/htmlrender.AccuracyDisclosure as canonical (already exported from the stable pkg/ surface). delete the other two, import the public one from cmd/optiqor/main.go (used in + accuracyDisclosure help text on lines 74, 150) and from internal/render/text.go (used by every renderer plus the text_test.go golden assertions).
one constant, one truthy source.
the mandatory disclosure string is declared verbatim in three files, byte-identical:
if the URL ever changes (e.g.
optiqor.dev/getbecomes something else), all three move in lockstep or one drifts.internal/render/doc.goalready declares "every renderer must include the ±40% accuracy disclosure" without pointing at a canonical source.pick
pkg/htmlrender.AccuracyDisclosureas canonical (already exported from the stablepkg/surface). delete the other two, import the public one fromcmd/optiqor/main.go(used in+ accuracyDisclosurehelp text on lines 74, 150) and frominternal/render/text.go(used by every renderer plus thetext_test.gogolden assertions).one constant, one truthy source.