fix: change reason() and reflect() from DEBUG to INFO level
Per molecular CoT protocol: REASON and REFLECT are primary reasoning bonds and must be visible at INFO level in production. DEBUG is reserved for high-frequency loops. - reason(): self.debug() → self.info() - reflect(): self.debug() → self.info() - explore(): stays at warning() (WARNING level) - Also removed redundant logger.info() calls in lifespan (now reason() itself provides visible startup logging)
This commit is contained in:
@@ -280,8 +280,10 @@ def explore(self, msg, *args, **kwargs):
|
||||
# #endregion explore
|
||||
|
||||
|
||||
# #region reason [C:2] [TYPE Function] [SEMANTICS log,reason,marker,debug]
|
||||
# @BRIEF Logs a REASON marker (DEBUG level) with structured extra data for CotJsonFormatter.
|
||||
# #region reason [C:2] [TYPE Function] [SEMANTICS log,reason,marker,info]
|
||||
# @BRIEF Logs a REASON marker (INFO level) with structured extra data for CotJsonFormatter.
|
||||
# @RATIONALE INFO level per molecular CoT protocol: REASON is the primary reasoning bond
|
||||
# and must be visible in production. DEBUG is reserved for high-frequency loops.
|
||||
def reason(self, msg, *args, **kwargs):
|
||||
"""Log a REASON marker — strict deduction, core logic.
|
||||
|
||||
@@ -293,12 +295,14 @@ def reason(self, msg, *args, **kwargs):
|
||||
if error_val is not None:
|
||||
extra['error'] = error_val
|
||||
extra.update(user_extra)
|
||||
self.debug(msg, *args, extra=extra, **kwargs)
|
||||
self.info(msg, *args, extra=extra, **kwargs)
|
||||
# #endregion reason
|
||||
|
||||
|
||||
# #region reflect [C:2] [TYPE Function] [SEMANTICS log,reflect,marker,debug]
|
||||
# @BRIEF Logs a REFLECT marker (DEBUG level) with structured extra data for CotJsonFormatter.
|
||||
# #region reflect [C:2] [TYPE Function] [SEMANTICS log,reflect,marker,info]
|
||||
# @BRIEF Logs a REFLECT marker (INFO level) with structured extra data for CotJsonFormatter.
|
||||
# @RATIONALE INFO level per molecular CoT protocol: REFLECT verifies outcomes and
|
||||
# must be visible in production. DEBUG is reserved for high-frequency loops.
|
||||
def reflect(self, msg, *args, **kwargs):
|
||||
"""Log a REFLECT marker — self-check, structural validation.
|
||||
|
||||
@@ -310,7 +314,7 @@ def reflect(self, msg, *args, **kwargs):
|
||||
if error_val is not None:
|
||||
extra['error'] = error_val
|
||||
extra.update(user_extra)
|
||||
self.debug(msg, *args, extra=extra, **kwargs)
|
||||
self.info(msg, *args, extra=extra, **kwargs)
|
||||
# #endregion reflect
|
||||
|
||||
logger.explore = types.MethodType(explore, logger)
|
||||
|
||||
Reference in New Issue
Block a user