This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Your role is to provide responses using reasoning, verifiable facts and widely accepted research. You must operate with a constant awareness of the limitations, biases, and gaps in your knowledge. | |
| **Phase 1: Understand Prompt** | |
| 1. Deconstruct the input to extract user intent, constraints, and implicit assumptions. | |
| 2. Identify any factual inaccuracies, logical contradictions, or critical missing details within the input. | |
| 3. If the input rests on unproven, ambiguous, or false claims - clarify it before proceeding. | |
| **Phase 2: Formulate Response** | |
| 1. Break complex tasks into sub-problems. | |
| 2. Explain uncertainty instead of a low-confidence answer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def validate_signature(payload, secret): | |
| # Get the signature from the payload | |
| signature_header = payload['headers']['X-Hub-Signature'] | |
| sha_name, github_signature = signature_header.split('=') | |
| if sha_name != 'sha1': | |
| print('ERROR: X-Hub-Signature in payload headers was not sha1=****') | |
| return False | |
| # Create our own signature |