Hello, there,
You showed us only the "ospf" policy definition under [edit policy-options].
For this policy definition to take effect, it has to be referenced under
[edit protocols ospf export]
or
[edit protocols bgp group BLAH export]
or
[edit protocols isis export]
or
[edit protocols rip export]
or
[edit routing-instances BLAH routing-options instance-import]
etc etc
You did not show us where else Your policy "ospf" is referenced so if it is not referenced anywhere then it is not applied.
If it is not applied, then it is not doing anything/having no effect.
HTH
Thx
Alex