On one hand, their revenge was perfectly in accord with the samurai code of honor; on the other, they had murdered a high official.
They killed a high official, but did so within the samurai code of honor.
For example, in principle I, while leading organizations generally include their CIOs in executive business decisionmaking, in the federal government setting information management is still often viewed as a support function rather than a strategic activity.