Atris

Answer employee questions from the handbook only.
Done by an agent. Checked twice.

Each staff question answered with the exact handbook line that backs it and a plain no where the handbook is silent.

Have Atris do this for you›

1

Real files in

  • going-out-of-office.md
    The Going out of office page of the same handbook. Whole page, unchanged. Public domain.. 50 lines, 4 KB.
  • leave.md
    The Leave types page of the TTS Handbook, the staff handbook of a United States government technology office. Whole page, unchanged. Public domain.. 294 lines, 21 KB.
  • paid-parental-leave.md
    The Paid parental leave page of the same handbook. Whole page, unchanged. Public domain.. 79 lines, 5 KB.
  • questions.csv
    27 questions staff might ask about leave, six of them on things these handbook pages never cover. 28 lines, 2 KB.

A mix of real public documents and sample data. Each file says which.

2

Three steps

  1. 1.Read the handbook and the questions
  2. 2.Find what the handbook says
  3. 3.Write the answers and the gaps

Claude Sonnet 5.5, 1 min 37 s. No web. It never saw the check.

3

Checked twice

  • ✓Passed: 27 of 27 questions have one answer row and the rows are in the order asked
  • ✓Passed: 21 of 21 quotes appear word for word in the handbook page they cite
  • ✓Passed: 21 of 21 quotes sit under the section heading the answer names
  • ✓Passed: 21 of 21 questions the handbook covers are answered with a quote that holds the fact asked for
  • ✓Passed: 6 of 6 questions on topics the handbook never mentions are marked as not covered, with no quote
  • ✓Passed: 37 of 37 figures in the answers appear in the question asked or on the handbook page the answer cites
  • ✓Passed: 6 of 6 uncovered questions are listed in gaps.md for the handbook's owner and 0 covered ones are listed by mistake

Second review by Claude Opus 5.5: pass.

Then we broke a copy of the output 4 ways on purpose. The check caught 4.

What it wrote. Lines 2 to 9 of answers.csv, copied from the file.
Q-01,answered,leave.md,Annual leave,Between 3 and 15 years: 6 hours per pay period,"At 4 years of federal service you fall in the 3-to-15-year band, so you earn 6 hours of annual leave per pay period. The handbook says your leave increases on the first full pay period after your work anniversary."
Q-02,not_in_handbook,,,,"The handbook pages do not cover this, so I can't answer it from the handbook. Sabbatical leave is not mentioned on any page."
Q-03,answered,leave.md,Civilian,"You can use up to 13 days (104 hours) per year of your sick leave for bereavement, funeral planning, and/or attending the funeral of a family member.","Yes, you can use sick leave for bereavement, funeral planning or attending the funeral, up to 13 days (104 hours) per year. The handbook does not define who counts as a family member itself; it links to OPM's definitions of family member and immediate relative."
Q-04,answered,leave.md,Court leave (jury duty),"When you are called to jury duty, your absence is marked as Court Leave and does not count against any of your other leave balances.","No. Jury duty is marked as Court Leave, so it does not come out of your annual leave or any other balance. You can receive Court Leave for however long you serve on a jury."
Q-05,answered,going-out-of-office.md,Your overall responsibilities,"You should submit leave requests at least three business days in advance, and make timely edits if your plans change.","Submit your leave request at least three business days ahead. If your plans change, edit the request in good time."
Q-06,answered,paid-parental-leave.md,About PPL,"You are entitled to 12 weeks of paid time off for the birth, adoption or placement of a new child. It can be taken all at once or intermittently. (Supervisor approval is needed for the intermittent option).","You are entitled to 12 weeks of paid parental leave for an adoption or placement. You can take it all at once or intermittently, and intermittent leave needs your supervisor's approval. The same page says you must have been a federal employee for 12 months to access it (most veterans are immediately eligible)."
Q-07,answered,paid-parental-leave.md,About PPL,You need to have been a federal employee for 12 months in order to access Paid Parental Leave (note: most veterans are immediately eligible).,"At 5 months of federal service you are below the 12-month requirement, so you do not meet it for paid parental leave. The exception the handbook gives is that most veterans are immediately eligible. The same list item points new federal employees to separate recommendations for people with less than 1 year of federal service, but those recommendations are not in the handbook pages."
Q-08,not_in_handbook,,,,"The handbook pages do not cover this, so I can't answer it from the handbook. No list of paid holidays appears on any page, so it does not say whether the day after Thanksgiving is one."

How this was run

An AI agent on Claude Sonnet 5.5 was given a folder with the files below and a three-step flow, and nothing else. It had no web access and never saw the check. The check was written before the run and made stricter after it. It works the answer out again from the input files. Then Claude Opus 5.5 reviewed the result against the inputs. Some input files are real public documents and some are sample data written by Atris. Each file says which.

Run 2 of 2 on 1 December 2026. The agent took 1 min 37 s. Run 1 did not pass the check. Each run starts clean. Between runs the written flow was made clearer, or a check was corrected or made stricter. Nobody edits the output.

What the second review verified

  • Recomputed every figure that depends on the question: Q-01 4 years falls in 'Between 3 and 15 years: 6 hours per pay period'; Q-07 5 months is under the 12-month PPL requirement; Q-15 100 hours is 'over 80 hours of LWOP', so the Business Unit Director must also approve; Q-22 a 40% rating meets the 'rating of 30 percent or more' for up to 104 hours; Q-11 corrects 10 days to '15 Military Leave days each year'
  • Read all three handbook pages myself and found all 21 quotes word for word in the file named and under the heading named, e.g. Q-13 'Loss of power at home (which makes your home not an approved location under agency telework policies)' under Weather and safety in leave.md:250, and Q-21's auto-responder item under Checklist for going out of office in going-out-of-office.md:36. The bundled check.py also passes 6 of 6 checks.
  • Confirmed the 6 questions marked not_in_handbook really have no basis in the pages: no sabbatical (Q-02), no holidays or Thanksgiving (Q-08), no part-time accrual (Q-12; the pages give accrual only by years of service), no tuition (Q-16), no internet reimbursement (Q-20) and no sick-leave payout at retirement (Q-24). gaps.md lists exactly these 6 and no others.
  • Checked the trap questions: Q-26 says no because 'You must use the PPL within a year of the child's birth or placement' and 18 months is past that; Q-09 says voting is generally on your own time, with administrative leave only in rare cases and capped at 3 work hours; Q-18 says award leave 'is not paid out'

What the second review found wrong

  • Some answers use facts from a different section than the one quoted, which flow.md does not allow ('only facts from the quote and its section'). Q-25 adds the FMLA rule from the Family Medical Leave Act section, Q-26 adds 'space the leave out for up to one year' from the Intermittent PPL section, and Q-27 adds the forfeiture rule from the Use or Lose section. All of these are real handbook facts, so nothing is invented.
  • Some answers break the two-or-three-sentence length rule: Q-10 has one sentence, Q-22 has four and Q-19 has five.
  • Q-17 says the leave 'expires about a March from now', which is awkward and imprecise. The handbook rule is one year after issue, so leave issued in March 2026 expires in March 2027.

What this run does not show

  • The check holds a list marked by hand before the run of which questions the handbook covers and which fact answers each.
  • A few answers borrow a true fact from a nearby section of the handbook or miss the length rule, which the second review noted and still passed.
  • The wording of each answer is read only by the second review, since the check tests only the quote and the figures.

Would the check catch a wrong answer?

A check that cannot fail proves nothing. After the run we took a copy of the output, broke it one small way at a time and ran the check again. It caught 4 of 4. The check was made stricter after the first try at this, and the same untouched output was graded again.

Open every file

flow.md · the three steps the agent followed
# Answer employee questions from the handbook only

function: people
for: the people team member who answers staff questions
goal: Every question has an answer taken only from the handbook, with the section and the exact words that back it, or a plain statement that the handbook does not cover it.

## 1. Read the handbook and the questions
Read every file in input/handbook/. Each file is one page of the handbook, written in markdown.
Lines that start with # are section headings. Read input/questions.csv.

## 2. Find what the handbook says
For each question, look for the sentence or list item in the handbook that states the answer.
- Mark it `answered` only when the handbook states the answer for the asker's own case.
- Mark it `not_in_handbook` when the pages say nothing on the topic, or when what they say is
  written for a different case from the asker's and does not settle it. Do not answer from general
  knowledge, even when you are sure. Do not stretch a nearby rule to fit.
- When a question rests on a wrong belief, answer with what the handbook says.
- When the answer turns on a figure in the question, such as hours or months, compare it with the
  handbook's limit and say which side it falls on.

## 3. Write the answers and the gaps
Write output/answers.csv with columns question_id,status,file,section,quote,answer. One row per
question, in the order asked.
- `file`: the handbook file name the quote is in.
- `section`: the text of the nearest heading above the quote, without the # marks.
- `quote`: the one sentence or list item that states the answer, copied word for word from that
  file. You may leave out link addresses and bold marks. Change no words and add none.
- `answer`: two or three plain sentences to the employee, using only facts from the quote and its
  section.
For `not_in_handbook` leave file, section and quote empty and say in `answer` that the handbook
pages do not cover it. Do not guess.
Write output/gaps.md for the handbook's owner: each question the handbook could not answer, by
question_id, with the topic that is missing. Name no other question_id in gaps.md. A caveat about a
question you did answer belongs in its `answer`.

## Done looks like
- Every question has one row.
- Every quote can be found word for word in the file and under the section named.
- No answer says more than the handbook does.
input/handbook/going-out-of-office.md · 50 lines, 4 KB
---
title: Going out of office
keywords: out of office
---

## Your overall responsibilities

You must report to work or have an approved [leave request in HR Links]({% page "/tools/hrlinks/#using-leave" %}), every scheduled work day. You are also responsible for [submitting your timesheet]({% page "/tools/hrlinks/#submitting-your-timesheet" %}) at the end of every pay period.

You should submit leave requests at least three business days in advance, and make timely edits if your plans change.

For unplanned leave \- such as a sudden illness or a family emergency \- do what you can to contact your supervisor, and they can help manage the rest on your behalf.

Some [types of leave]({% page "/travel-and-leave/leave/" %}) require supporting documentation: it is your responsibility to submit all necessary documents and check that you’ve received approval.

### Notifying GSA of international travel, for security clearance holders

If you are traveling internationally and hold a security clearance, you are required to notify GSA. Follow the [guidance on international travel for clearance holders](https://insite.gsa.gov/services-and-offices/staff-offices/office-of-mission-assurance/divisions-program-offices/personnel-security-division/foreign-travel-information-page) in InSite. This notification is optional if you do not hold a clearance.

## Time tracking

Billable TTS employees taking leave should follow the Handbook guidance on [how to Tock when on leave]({% page "/tools/tock/#tocking-for-out-of-office-time" %}).

Reminder: HR Links is separate from Tock. If you’re taking time off, you’ll need to make sure you’re accounted for in both systems.

## Checklist for going out of office

Before taking leave, be sure to:

1. Submit a leave request through HR Links. Discuss the dates with your supervisor, as needed.
2. Mark your out of office time on your calendar (inviting your supervisor/colleagues as appropriate with the invite set to "free" so it doesn't block other scheduling) and any applicable team or project calendars.
   1. [Google Calendar has an OOO setting](https://support.google.com/calendar/answer/7638168?hl=en&co=GENIE.Platform%3DDesktop&oco=0) that can auto-reject current and future meetings.
3. Decline, cancel, or reschedule any meetings you’ll miss.
4. Tell team members or partners via Slack or email, and make sure your work is covered.
   1. Notify your Engagement Manager, Account Manager, and project lead, if applicable.
5. Set up an email auto-responder as appropriate. This should include both when you’ll be back and a point of contact/team email for while you’re out.
   1. For example: I am out of the office on Wednesday January 2nd and will respond to your request when I return on Thursday the 3rd. If you need immediate assistance please email \[email address\] and your request will be directed to the appropriate party.
6. Update your Slack status to indicate that you are OOO.
   1. You can also [set up a Slackbot reminder](https://slack.com/help/articles/208423427-Set-a-reminder) to prompt you to turn off OOO statuses when you return: /remind me to “Update my OOO reminder” on \[date you return\]
7. TTS team members should also:
   1. Submit [correct Tock entries]({% page "/tools/tock/#tocking-for-out-of-office-time" %})
   2. Update your Slack username and profile (ex: @username | OOO until 7/12 | she)
   3. Product chapter members: add an event to the [All Things Product](https://calendar.google.com/calendar/embed?src=gsa.gov_dkgkep8b6fj5ge1s2m0cn4srog%40group.calendar.google.com) calendar.

### Returning from leave

Upon returning from leave, remember to:

- Change your Slack name/status back to normal
- Turn off your email auto-response
input/handbook/leave.md · 294 lines, 21 KB
---
title: Leave types
keywords: hrlinks, hr links, vacation, funeral, death, bereavement, jury duty, court, military, leave request, parental, parent, parental leave, maternity, paternity
redirect_from:
  - /leave/
---

{% alert %}
Current employees can use this <a href="https://docs.google.com/spreadsheets/d/1-dm0tptMsZ2FKhuta52RFEiN4Sfkd9coYN0_tjQCe9Y/edit?usp=sharing">leave comparison chart</a>.
{% endalert %}

Before you take leave, check [out of office expectations]({% page "travel-and-leave/going-out-of-office/" %}).

## Reasons someone can take leave

TTS has leave types for the following scenarios. Talk with your [Workforce Relations HR Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit) about ways to combine leave types.

For **general uses and vacation**, you can use:

- [Annual Leave](#annual-leave)
- [Award Leave](#award-leave)

For **sick or medical reasons**, you can use:

- [Sick Leave](#sick-leave)

Other medical reasons:

- When [getting a COVID vaccine or recovering from vaccine side effects](#covid-vaccination), you can use Administrative Leave
- [Blood, bone marrow, organ donation](#blood-bone-marrow-and-organ-donation), you can use Administrative Leave
- [Disabled veteran leave (DVL)](#disabled-veteran-leave-dvl) for veterans with a service-related disability

For **bereavement**, you can use:

- [Sick Leave](#civilian) for funerals
- [Funeral Leave](#military) for military relatives
- [Parental Bereavement Leave](#parental-bereavement-leave) after losing a child

For **birth, adoption or placement of a new child**, you can use [paid parental leave]({% page "/travel-and-leave/paid-parental-leave/" %}). You can also use annual and sick leave for parental leave reasons.

For **religious observances**, you can [request an adjustment to your work schedule]({% page "/travel-and-leave/overtime//#religious-comp-time-for-everyone" %}) for religious observances, instead of taking leave.

To [**vote**](#voting-and-poll-volunteering), register to vote, participate in early voting, or volunteering as a poll worker, you generally must do so on your own time (i.e., either before or after work), or during work hours by using approved annual leave, compensatory time off, comp time for travel, or credit hours (for employees on flexible schedules).

For **jury duty** and other court-related leave, use [Court Leave](#court-leave-jury-duty).

If you can’t work or stay in your home for [weather or safety reasons](#weather-and-safety), you can request Administrative Leave.

When going on **active duty**, active duty training, and inactive duty training in the National Guard or as a Reservist, you can use [Military Leave](#military-leave).

You can work with your supervisor to use up to 4 hours of work time pursuing options from the [Employee Assistance Program (EAP)]({% page "/getting-started/classes/benefits/#employee-assistance-program" %}).

If you are running out of leave hours, you can request:

- [Advanced Annual Leave](#advanced-annual-leave)
- [Advanced Sick Leave](#advanced-sick-leave)
- Donated hours from the [Voluntary Leave Transfer Program]({% page "/travel-and-leave/voluntary-leave-transfer-program/" %})

## Types of leave

### Annual leave

You may use annual leave for any reason. Annual leave accrues based on how long you’ve worked for the federal government:

- Fewer than 3 years: 4 hours per pay period
- Between 3 and 15 years: 6 hours per pay period
- 15+ years: 8 hours per pay period

Your leave increases on the first full pay period following your work anniversary. You can refer to either HR Links or the bottom of your paystub for your leave balances.

You can carry over a maximum of 240 annual leave hours, from one [leave year](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/leave-year-beginning-and-ending-dates/) to the next. If you’ve [transferred to TTS from another federal agency](#transferring-leave-from-another-federal-agency), your accrued annual leave will transfer with you.

#### Use or Lose

Use or Lose is the number of annual leave hours you would forfeit at the end of the [leave year](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/leave-year-beginning-and-ending-dates/), if you do not use any of your annual leave hours between now and then. As noted above, there is a 240 hour limit on the number of hours you can carry over from one leave year to the next. Use or Lose only applies to annual leave.

For example: You look in HRLinks and see "182 Hours (96 Hours Use or Lose)." Today, January 25th, 2022, you have 182 hours of annual leave available. If you continued to accrue annual leave for the rest of the year, and you did not use any of those hours, you would forfeit 96 hours of annual leave at the end of the year. You would be 96 hours over the 240 cap.

182 current hours \+ 154 more hours accrued throughout the year \= 336 hours.

336 hours \- 240 hour cap \= 96 Use or Lose hours that would be forfeited.

### Award leave

Award leave is offered for End of Year Performance Awards and Special Act Awards.

- If you are eligible for an [End of Year Performance Award]({% page "/performance-management/#who-is-eligible-for-the-end-of-year-performance-bonus" %}), you can [opt-in via HRLinks](https://drive.google.com/file/d/13H21w1_D5V4wrOMzvLhQ4f2dqYxuJltO/view?usp=sharing) to receive Award Leave in lieu of a monetary award.
- If you are receiving a TTS Special Act Award, you will be notified and asked for your preference of award leave or a monetary award.

You can receive a maximum of 80 hours of award leave in a single fiscal year. If you receive a Special Act Award after hitting the 80 hour cap, your award will be monetary.

Award leave expires one year after it is issued. You must use it by the end of the pay period in which the expiration date falls. Expired award leave cannot be recovered \- please monitor your leave balances and consider using award leave first. If you leave TTS, award leave is not paid out.

You can check the [amount of Award leave you have in HR Links]({% page "/tools/hrlinks/#award-leave-expiration" %}). You may receive an automated email reminder from HR Links 3 months before your leave expires, even if you have already used it.

OPM Policy:

- [Time-Off Awards](https://www.opm.gov/policy-data-oversight/performance-management/performance-management-cycle/rewarding/time-off-awards/)

### Sick leave

You can use Sick Leave for:

- Doctor and medical appointments for you or a family member
- Mental health care
- Recovering from illness, for you or a family member
- Any other health need

All federal employees, no matter how long they have worked in government, accrue four hours of sick leave per pay period. There is no maximum amount of sick leave you can accrue, and if [you've transferred to TTS from another federal agency](#transferring-leave-from-another-federal-agency), your accrued sick leave will transfer with you.

You can use sick leave for your physical and mental health needs. You can also use up to 13 days of sick leave per year for family health needs and bereavement.

#### For bereavement purposes

##### Civilian

You can use up to 13 days (104 hours) per year of your sick leave for bereavement, funeral planning, and/or attending the funeral of a family member.

##### Military

You can receive 3 days (24 hours) of funeral leave to plan or attend services of an immediate relative who has suffered a combat-related death. Additionally, veterans can take funeral leave to participate in a funeral ceremony for a member of the Armed Forces.

OPM Fact Sheets:

- [Sick leave for family care or bereavement purposes](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/sick-leave-for-family-care-or-bereavement-purposes/)
- [Definitions of family member and immediate relative](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/definitions-related-to-family-member-and-immediate-relative-for-purposes-of-sick-leave/)

### Parental bereavement leave

You can receive two weeks (80 hours) of parental bereavement leave for the passing of your child. Contact your [Workforce Relations HR Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit) for assistance.

OPM Policy:

- [Parental Bereavement Leave Memorandum](https://chcoc.gov/content/parental-bereavement-leave)

### Taking advanced leave

Talk to your supervisor if you need to use advanced leave.

#### Advanced annual leave

You can only take advanced annual leave in the amount that you would earn back by the end of the current [leave year](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/leave-year-beginning-and-ending-dates/). TTS has a [Leave Calculator](https://docs.google.com/spreadsheets/d/1u36OseyOmmFF7RiXgs15QTrYoyrf4rWziBTxPwOfUcg/edit?gid=2117738946#gid=2117738946) that you can use for this calculation.

For example: It is June 19th, 2022, and the [2022 Leave Year](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/leave-year-beginning-and-ending-dates/) ends on December 31st. You [earn 4 annual leave hours per pay period](#annual-leave) and there are 14 pay periods left until December 31st. You will earn 56 more annual leave hours (14 pay periods x 4 hours per pay period). Therefore, you can request up to 56 advanced annual leave hours.

OPM Fact Sheets:

- [Leave Year Beginning and Ending Dates](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/leave-year-beginning-and-ending-dates/)
- [Advanced Annual Leave](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/advanced-annual-leave/)

#### Advanced sick leave

You can request up to 240 hours of advanced sick leave. If you are a term employee, you can request up to the total amount that you’ll earn during the rest of your term.

Refer to the [advanced sick leave page]({% page "/travel-and-leave/advanced-sick-leave" %}) for more information, including how to request it.

### Using donated leave

If you have a personal or family medical emergency and have exhausted your earned leave, you can enroll in the [Voluntary Leave Transfer Program (VLTP)]({% page "/travel-and-leave/voluntary-leave-transfer-program/" %}). Your colleagues can donate their annual leave for you. Reach out to your [Workforce Relations HR Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit) to start the process.

### Family Medical Leave Act (FMLA)

If you need more than 13 sick days at once to care for a loved one, you can apply for Family Medical Leave Act (FMLA) status. Refer to the [FMLA page]({% page "travel-and-leave/fmla/" %}) for more, including [applying for FMLA]({% page "/travel-and-leave/fmla/#applying-for-fmla" %}).

### Paid Parental Leave

You are entitled to 12 weeks of paid time off for the birth, adoption or placement of a new child. It can be taken all at once or intermittently. Refer to the [Paid Parental Leave page]({% page "travel-and-leave/paid-parental-leave/" %}) for more information, including [requesting PPL]({% page "travel-and-leave/paid-parental-leave/#requesting-paid-parental-leave" %}).

### Court leave (jury duty)

When you are called to jury duty, your absence is marked as Court Leave and does not count against any of your other leave balances.

You would also request court leave if you are asked to serve as a witness in a judicial proceeding to which the Federal government, a state government, or a local government is a party.

You can receive Court Leave for however long you serve on a jury. To report Court Leave, follow the typical steps for [Entering a leave request in HR Links]({% page "/tools/hrlinks/#absence-requests-for-paid-leave" %}).

OPM Fact Sheet:

- [Court Leave](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/court-leave/)

### Military leave

You can receive 15 Military Leave days each year for active duty, active duty training, and inactive duty training in the National Guard or as a Reservist. You can carry over a maximum of 15 days into the next fiscal year.

Military Leave will not appear in HR Links until after you have requested it for the first time. For a two-week annual training or any other first-use of your 15 paid days, request the leave using Code 51 \- Regular Military. You and your supervisor won’t see an available leave balance, and HR Links will show an error, but your timecard will process and the leave balance adjustment will be made by Payroll.

#### Going on active duty

If you are called to active duty, no matter the length of time, contact the [FAS Benefits Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit) who corresponds to your last name. They can help with GSA’s [Checklist for Employees Entering Extended Active Duty](https://www.gsa.gov/forms-library/civilian-employees-entering-extended-active-duty-checklist).

OPM Fact Sheet:

- [Military Leave Fact Sheet](https://www.opm.gov/policy-data-oversight/pay-leave/pay-administration/fact-sheets/military-leave/)

#### Military spouse relocation

If you are a civilian employee who must accompany the relocation of your military spouse, you are entitled to 5 days of administrative leave to help make that moving process easier.

- See Presidential [Executive Order 14100](https://links-1.govdelivery.com/CL0/https:%2F%2Fwww.federalregister.gov%2Fdocuments%2F2023%2F06%2F15%2F2023-12974%2Fadvancing-economic-security-for-military-and-veteran-spouses-military-caregivers-and-survivors/1/010001920bc50c73-8abb009d-90b3-446f-b11a-d2b403fc611c-000000/K88TGZMO22acDuoVCnAT9rlkDEU4z-7RRo6ZmN-gClg=371) (2023)

### Disabled veteran leave (DVL)

If you are a veteran with a service-connected disability rating of 30 percent or more, you can receive up to 104 hours of disabled veteran leave to receive medical treatment related to your disability.

DVL is a one-time benefit: you have a single, 12-month eligibility period, beginning on the first day of your federal employment, in which to use the leave. After that period, it is forfeited with no opportunity to carry over hours.

DVL will not automatically appear in HR Links: reach out to your [Benefits Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit) to get started.

OPM Fact Sheet:

- [Disabled Veteran Leave](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/disabled-veteran-leave/)

### Administrative Leave

Administrative Leave is called “Other paid absences” in HR Links.

#### Voting and poll volunteering

GSA employees who wish to vote on election day in Federal, state, or local elections, and/or volunteer at polling places, generally must do so on their own time (i.e., either before or after work), or during work hours by using approved annual leave, compensatory time off, comp time for travel, or credit hours (for employees on flexible schedules).

In rare circumstances, authorized agency officials may approve limited amounts of administrative leave on election day when there is no reasonable opportunity for the employee to vote outside of regular working hours and only to the extent that such time off does not interfere with agency operations. Any such request should be directed by the employee to the appropriate supervisor only when (1) the employee will be unable to vote on the day of the election because of activities directly related to the agency’s mission (such as Temporary Duty (TDY) travel) and cannot vote by absentee ballot or by early voting on a nonworkday, or (2) early voting hours are the same as, or exceed, voting hours on the day of the election.

If granted, paid leave for voting is limited to the amount of time necessary to vote, not to exceed 3 work hours, and should be coded 84, Other Paid Leave, with “Administrative leave due to voting” placed into the comments box of the absence request within HR Links.

OPM Fact Sheet:

- [Administrative Leave](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/administrative-leave/)

#### Blood, bone marrow, and organ donation

You can access up to 7 days of Administrative Leave during a calendar year to serve as a bone marrow donor, and up to 30 days serve as an organ donor.

You can also be granted up to 4 hours of Administrative Leave for blood donation.

OPM Fact Sheets:

- [Administrative Leave](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/administrative-leave/)

- [Bone Marrow or Organ Donor Leave](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/bone-marrow-or-organ-donor-leave/)

#### COVID vaccination

You can take up to 4 hours of Administrative Leave to get a COVID vaccine or booster for yourself or a family member. You can also take up to 2 days of Administrative Leave when recovering from vaccine side effects.

#### Weather and safety

You can receive ad hoc “Weather and Safety Leave” if you are prevented from safely working because of an unexpected event such as:

- Weather-related damage to your home that makes occupying the home unsafe
- Loss of power at home (which makes your home not an approved location under agency telework policies)
- Not being prepared for teleworking when the conditions could not be anticipated (tornado or earthquake)

Weather and Safety Leave does not count against any of your other leave balances.

Your safety is paramount. It is expected that when possible, you’ll communicate with your supervisor if you’re unexpectedly unable to work. Your supervisor is responsible for approving/denying your Weather and Safety Leave request; they can work with your [Workforce Relations HR Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit) if they have questions on whether it is appropriate to approve the request.

If a supervisor doesn’t hear from you, and suspects you are facing a weather/safety issue, they should try contacting you as well as notifying your [Workforce Relations HR Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit) so there’s a record that you may be affected by a weather event.

This leave is entered in HR Links under Administrative Leave Code 094 \- Weather & Safety. You should include a reason in the Comments/History section: for example, Cook County evacuation order of 9/10/20. Supervisors can enter the request if you are unable to access HR Links.

Resources:

- [InSite page about Weather and Safety Leave](https://insite.gsa.gov/employee-resources/hr-eeo-pay-and-leave/pay-and-leave/telework-pay-and-leave-for-major-weather-events?term=weather+and+safety+leave)

##### Emergency Leave Transfer Program

OPM may establish an emergency leave transfer program for certain disasters. If eligible, you may receive donated leave from your colleagues to take paid leave. You can use this paid leave to help you or a family member recover from the disaster. This includes coordinating with insurance adjusters, carpenters, flood mitigation and restoration companies, and roofing contractors.

Resources:

- [About ELTP (InSite)](https://insite.gsa.gov/employee-resources/hr-eeo-pay-and-leave/pay-and-leave/telework-pay-and-leave-for-major-weather-events?term=weather+and+safety)
- [How to apply for ELTP (InSite)](https://insite.gsa.gov/employee-resources/hr-eeo-pay-and-leave/pay-and-leave/leave/emergency-leave-transfer-program)

### Unpaid leave

If you have exhausted all other paid leave options, you can request Leave Without Pay (LWOP). It is exactly what it sounds like. You can request unpaid leave of less than four weeks at any time.

The use of LWOP, including FMLA LWOP, can affect insurance premiums, within-grade increases, and other benefits. We **strongly recommend** that you review [OPM’s page on the Effect of Extended Leave Without Pay (LWOP)](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/effect-of-extended-leave-without-pay-lwop-or-other-nonpay-status-on-federal-benefits-and-programs/). If you have questions, reach out to your [Benefits Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit?tab=t.0).

To take a leave of absence without pay, you’ll need justification and supervisory oversight. For longer periods, you'll also need 2nd level supervisory approval:

- To request 80 hours or less of LWOP, you must get written approval from your immediate supervisor.

- To request over 80 hours of LWOP, you must get written approval from your immediate supervisor and Business Unit Director.

Once approvals are received, please submit a copy of the email thread to [TTS-peopleops@gsa.gov](mailto:TTS-peopleops@gsa.gov).

OPM Fact Sheet:

- [Effect of Extended Leave Without Pay (LWOP) (or Other Nonpay Status) on Federal Benefits and Programs](https://www.opm.gov/policy-data-oversight/pay-leave/leave-administration/fact-sheets/effect-of-extended-leave-without-pay-lwop-or-other-nonpay-status-on-federal-benefits-and-programs/)

## Transferring leave from another federal agency

Annual leave and sick leave balances can take a _significant_ amount of time to transfer to GSA, depending on the speed of your previous payroll provider. If you have your final Earnings and Leave Statement (pay stub) from your previous agency, you can send a copy to [kc-payroll.finance@gsa.gov](mailto:kc-payroll.finance@gsa.gov) to expedite the process.
input/handbook/paid-parental-leave.md · 79 lines, 5 KB
---
title: Paid parental leave (PPL)
keywords: parental, parent, parental leave, timesheets, maternity, paternity
---

TTS has paid parental leave (PPL) for the birth or placement (adoption or foster care) of a child.

## About PPL

- You are entitled to 12 weeks of paid time off for the birth, adoption or placement of a new child. It can be taken all at once or intermittently. (Supervisor approval is needed for the intermittent option).
- You must use the PPL within a year of the child’s birth or placement
- You need to have been a federal employee for 12 months in order to access Paid Parental Leave (note: most veterans are immediately eligible). If you are a new federal employee, check out the [recommendations for those who have less than 1 year of federal service](https://docs.google.com/document/d/1I82lrWKkJX_t7DocCYkbZSLFpHLLP_HlwXWLgzzLFXk/edit#).
- You need to be approved for PPL before being able to use it.
- You will need to sign an agreement, stating that you will return to work for at least 12 weeks after your final day on PPL.
  - The 12 week agreement is in place regardless of how many weeks of PPL you take. If you take PPL intermittently, the 12 week period still begins after your _final_ day of PPL, even if you have been working in between periods of PPL.
- GSA implements PPL via [Family and Medical Leave Act (FMLA)]({% page "travel-and-leave/fmla" %}) leave. If you previously used FMLA within the past 12 months of your parental leave period, those hours would be subtracted from the 12 weeks you can take for PPL.

## Using PPL

### Intermittent PPL

You do not need to take all 12 weeks at once; you can space the leave out for up to one year after your child’s birth or placement. You can take the leave full-time or have a reduced work schedule. Talk with your supervisor about taking intermittent leave, as it requires supervisor approval.

### Combining paid parental leave with other leave

#### Other paid leave

You can also use annual, award, and sick leave for parental leave reasons. This includes advanced annual and sick leave, as well as the [Voluntary Leave Transfer Program (VLTP)]({% page "/travel-and-leave/voluntary-leave-transfer-program" %}). We highly recommend you talk with your [Workforce Relations HR Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit) about recommended ways to combine leave types.

#### Unpaid leave

You can request Leave Without Pay (LWOP) of less than four weeks at any time, if you want to extend your parental leave.

## Requesting paid parental leave

### Prior to birth/placement

To request PPL, you’ll need to email the following items to your [Workforce Relations HR Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit):

1. The [Paid Parental Leave Request and the Paid Parental Leave Service Agreement form PDFs](https://drive.google.com/file/d/1PRdoXhC594Y0OqmDQS7MSMoA7aIDCv-S/view).
   1. You can use [Docusign templates]({% page "/tools/digital-signatures#use-docusign-templates-to-complete-forms" %}) for Paid Parental Leave to fill out the forms and request the right signatures.
2. A [timesheet report]({% page "/tools/hrlinks/#pulling-a-timesheet-report" %}) for the last 12 months.

Your Workforce Relations HR Specialist reviews your forms and may request more information.

### After birth/placement

To use your PPL, you must submit documentation about the birth or placement of your child:

1. Send a message (email, text, call, or Slack) to your [Workforce Relations HR Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit), letting them know the date of birth/placement.
2. Send supporting documentation to show childbirth, adoption, or foster placement to your [Workforce Relations HR Specialist](https://docs.google.com/document/d/15glvq9UakKUN8XTRTa6gRkhBHm2whhQyAGmf8ibTtBs/edit).

#### Birth-supporting documentation

You’ll need a medical note from your doctor. The medical note will be used as a supporting document for PPL, as well as Advanced Sick Leave and/or VLTP if you are using them.

The medical note should include:

- Date of birth
- Diagnosis
- Prognosis
- Duration \- The duration of time for care (how long will the parent and/or child need medical care? 6 weeks? 8 weeks?)

#### Placement-supporting documentation

Your Workforce Relations HR Specialist can advise which type of official paperwork needed, in order to complete your PPL request for adoption or foster care placement.

### Submitting paid parental leave requests in HR Links

After your Workforce Relations HR Specialist reviews your supporting documentation, you will see a new leave option in HR Links called Paid Parental Lv Birth Balance.

You will submit a leave request, using the same general steps that you use for annual and sick leave. There is also step-by-step HR Links guidance on [how to enter paid parental leave requests](https://drive.google.com/file/d/1ERWXQoikCKKx0o1IvhJSan5ZzXAZyxrq/view?usp=sharing). Your supervisor can also enter in your leave hours.

If you needed to use other leave before PPL appeared in HR Links, you can always [amend your timesheet](https://drive.google.com/file/d/1EediybFHlLT1YFRZzd9Ac4MZimqX5QaW/view).

## Resources

- {% slack_channel "parents" %}
- [GSA Paid Parental Leave guidance found on InSite](https://insite.gsa.gov/employee-resources/hr-eeo-pay-and-leave/pay-and-leave/leave/types-of-paid-leave?term=paid+parental+leave#PPL)
input/questions.csv · 28 lines, 2 KB
question_id,question
Q-01,I have worked for the federal government for 4 years. How many hours of annual leave do I earn each pay period?
Q-02,Do we get sabbatical leave after a set number of years?
Q-03,My grandmother died last night. Is there leave I can use for the funeral?
Q-04,I have been called for jury duty next month. Does that come out of my annual leave?
Q-05,How far ahead do I need to put in a leave request for a planned day off?
Q-06,We are adopting a child in the spring. How much paid parental leave do I get?
Q-07,I joined the federal government 5 months ago and my baby is due in 8 weeks. Can I use paid parental leave?
Q-08,"Which paid holidays do we get, and is the day after Thanksgiving one of them?"
Q-09,Can I take paid time off to go and vote on election day?
Q-10,I am giving blood on Thursday. Do I get any leave for that?
Q-11,I am in the Reserves. I was told we get 10 days of military leave a year. Is that right?
Q-12,"I work part time, 24 hours a week. How many hours of annual leave do I earn each pay period?"
Q-13,A storm knocked out the power at my house and I cannot work. What kind of leave is this?
Q-14,I need surgery and I am out of sick leave. Can I borrow against future sick leave and how much?
Q-15,I want to take 100 hours of unpaid leave. Whose approval do I need?
Q-16,How much tuition help can I get for a night class?
Q-17,I was given award leave last March. Does it run out?
Q-18,I am leaving next month. Will my unused award leave be paid out?
Q-19,"After my paid parental leave ends, do I have to stay in my job for a set time?"
Q-20,Can I be paid back for my home internet bill?
Q-21,What should I put in my out of office email reply?
Q-22,I am a veteran with a 40 percent service-connected disability rating. Is there leave for my treatment?
Q-23,My wife is in the Army and has been posted to another state. Do I get any leave for the move?
Q-24,"When I retire, do I get paid for my unused sick leave?"
Q-25,My son has the flu. How much of my sick leave can I use to look after family?
Q-26,My daughter was born 10 months ago. Can I save 4 weeks of my parental leave for when she is 18 months old?
Q-27,What is the most annual leave I can carry over into next year?
output/answers.csv · written by the agent, 28 lines
question_id,status,file,section,quote,answer
Q-01,answered,leave.md,Annual leave,Between 3 and 15 years: 6 hours per pay period,"At 4 years of federal service you fall in the 3-to-15-year band, so you earn 6 hours of annual leave per pay period. The handbook says your leave increases on the first full pay period after your work anniversary."
Q-02,not_in_handbook,,,,"The handbook pages do not cover this, so I can't answer it from the handbook. Sabbatical leave is not mentioned on any page."
Q-03,answered,leave.md,Civilian,"You can use up to 13 days (104 hours) per year of your sick leave for bereavement, funeral planning, and/or attending the funeral of a family member.","Yes, you can use sick leave for bereavement, funeral planning or attending the funeral, up to 13 days (104 hours) per year. The handbook does not define who counts as a family member itself; it links to OPM's definitions of family member and immediate relative."
Q-04,answered,leave.md,Court leave (jury duty),"When you are called to jury duty, your absence is marked as Court Leave and does not count against any of your other leave balances.","No. Jury duty is marked as Court Leave, so it does not come out of your annual leave or any other balance. You can receive Court Leave for however long you serve on a jury."
Q-05,answered,going-out-of-office.md,Your overall responsibilities,"You should submit leave requests at least three business days in advance, and make timely edits if your plans change.","Submit your leave request at least three business days ahead. If your plans change, edit the request in good time."
Q-06,answered,paid-parental-leave.md,About PPL,"You are entitled to 12 weeks of paid time off for the birth, adoption or placement of a new child. It can be taken all at once or intermittently. (Supervisor approval is needed for the intermittent option).","You are entitled to 12 weeks of paid parental leave for an adoption or placement. You can take it all at once or intermittently, and intermittent leave needs your supervisor's approval. The same page says you must have been a federal employee for 12 months to access it (most veterans are immediately eligible)."
Q-07,answered,paid-parental-leave.md,About PPL,You need to have been a federal employee for 12 months in order to access Paid Parental Leave (note: most veterans are immediately eligible).,"At 5 months of federal service you are below the 12-month requirement, so you do not meet it for paid parental leave. The exception the handbook gives is that most veterans are immediately eligible. The same list item points new federal employees to separate recommendations for people with less than 1 year of federal service, but those recommendations are not in the handbook pages."
Q-08,not_in_handbook,,,,"The handbook pages do not cover this, so I can't answer it from the handbook. No list of paid holidays appears on any page, so it does not say whether the day after Thanksgiving is one."
Q-09,answered,leave.md,Voting and poll volunteering,"GSA employees who wish to vote on election day in Federal, state, or local elections, and/or volunteer at polling places, generally must do so on their own time (i.e., either before or after work), or during work hours by using approved annual leave, compensatory time off, comp time for travel, or credit hours (for employees on flexible schedules).","Generally not. You are expected to vote before or after work, or use approved annual leave, comp time, travel comp time or credit hours. In rare cases an authorized official may approve administrative leave when there is no reasonable chance to vote outside work hours; it is capped at the time needed to vote and no more than 3 work hours."
Q-10,answered,leave.md,"Blood, bone marrow, and organ donation",You can also be granted up to 4 hours of Administrative Leave for blood donation.,"Yes, you can be granted up to 4 hours of Administrative Leave for blood donation."
Q-11,answered,leave.md,Military leave,"You can receive 15 Military Leave days each year for active duty, active duty training, and inactive duty training in the National Guard or as a Reservist.","Not quite. The handbook says 15 Military Leave days each year, not 10. It also says you can carry over a maximum of 15 days into the next fiscal year."
Q-12,not_in_handbook,,,,"The handbook pages do not cover this, so I can't answer it from the handbook. Annual leave accrual is described only by length of federal service, and the pages say nothing about part-time schedules or hours worked per week."
Q-13,answered,leave.md,Weather and safety,Loss of power at home (which makes your home not an approved location under agency telework policies),"This is Weather and Safety Leave, an ad hoc Administrative Leave you can receive when an unexpected event like loss of power at home prevents you from safely working. It does not count against your other leave balances. Your supervisor approves or denies the request, and you should contact them if you are unexpectedly unable to work."
Q-14,answered,leave.md,Advanced sick leave,You can request up to 240 hours of advanced sick leave.,"Yes, you can request advanced sick leave of up to 240 hours. Term employees can request up to the total amount they will earn during the rest of their term. The handbook sends you to the advanced sick leave page for how to request it, and that page is not among the handbook pages I have."
Q-15,answered,leave.md,Unpaid leave,"To request over 80 hours of LWOP, you must get written approval from your immediate supervisor and Business Unit Director.","100 hours is over the 80-hour line, so you need written approval from both your immediate supervisor and your Business Unit Director. Once approved, send a copy of the email thread to TTS-peopleops@gsa.gov."
Q-16,not_in_handbook,,,,"The handbook pages do not cover this, so I can't answer it from the handbook. Tuition help or education assistance is not mentioned on any page."
Q-17,answered,leave.md,Award leave,Award leave expires one year after it is issued.,"Yes. Award leave expires one year after it was issued, so leave issued last March expires about a March from now. You must use it by the end of the pay period in which the expiration date falls, and expired award leave cannot be recovered."
Q-18,answered,leave.md,Award leave,"If you leave TTS, award leave is not paid out.",No. The handbook says unused award leave is not paid out when you leave TTS. Use it before you go.
Q-19,answered,paid-parental-leave.md,About PPL,"You will need to sign an agreement, stating that you will return to work for at least 12 weeks after your final day on PPL.","Yes. You sign an agreement that you will return to work for at least 12 weeks after your final day of PPL. This applies however many weeks of PPL you take. If you take it intermittently, the 12 weeks starts after your final day of PPL. The handbook does not say whether it must be the same job."
Q-20,not_in_handbook,,,,"The handbook pages do not cover this, so I can't answer it from the handbook. Reimbursement for home internet or other work-from-home expenses is not mentioned on any page."
Q-21,answered,going-out-of-office.md,Checklist for going out of office,Set up an email auto-responder as appropriate. This should include both when you’ll be back and a point of contact/team email for while you’re out.,"Say when you will be back and give a point of contact or team email for while you are out. The handbook's example is: ""I am out of the office on Wednesday January 2nd and will respond to your request when I return on Thursday the 3rd. If you need immediate assistance please email [email address] and your request will be directed to the appropriate party."""
Q-22,answered,leave.md,Disabled veteran leave (DVL),"If you are a veteran with a service-connected disability rating of 30 percent or more, you can receive up to 104 hours of disabled veteran leave to receive medical treatment related to your disability.","Yes. Your 40 percent rating is above the 30 percent threshold, so you can receive up to 104 hours of disabled veteran leave for treatment related to your disability. It is a one-time benefit with a single 12-month eligibility period starting on your first day of federal employment, after which unused hours are forfeited. It will not appear in HR Links automatically, so contact your Benefits Specialist."
Q-23,answered,leave.md,Military spouse relocation,"If you are a civilian employee who must accompany the relocation of your military spouse, you are entitled to 5 days of administrative leave to help make that moving process easier.","If you must accompany your spouse on the relocation, you are entitled to 5 days of administrative leave for the move. The handbook cites Executive Order 14100 (2023) for this."
Q-24,not_in_handbook,,,,"The handbook pages do not cover this, so I can't answer it from the handbook. Payout of unused sick leave at retirement is not mentioned. The pages only say sick leave has no maximum accrual and transfers from another federal agency."
Q-25,answered,leave.md,Sick leave,You can also use up to 13 days of sick leave per year for family health needs and bereavement.,"You can use up to 13 days of sick leave per year for family health needs, and the same sentence puts bereavement under that 13 days. Sick leave covers recovering from illness for a family member. If you need more than 13 sick days at once to care for a loved one, the handbook says you can apply for FMLA status."
Q-26,answered,paid-parental-leave.md,About PPL,You must use the PPL within a year of the child’s birth or placement,"No. PPL must be used within a year of the child's birth, and 18 months is outside that window. At 10 months old, about 2 months of that year remain. The handbook says you can space the leave out for up to one year after birth."
Q-27,answered,leave.md,Annual leave,"You can carry over a maximum of 240 annual leave hours, from one leave year to the next.","The most you can carry over is 240 annual leave hours from one leave year to the next. Hours above 240 at the end of the leave year are forfeited (""Use or Lose"")."
output/gaps.md · written by the agent, 10 lines
# Handbook gaps

Questions the handbook pages (leave.md, paid-parental-leave.md, going-out-of-office.md) could not answer:

- **Q-02**: Sabbatical leave. No page says whether it exists or after how many years.
- **Q-08**: The list of paid holidays. No page lists holidays, so the day after Thanksgiving cannot be confirmed.
- **Q-12**: Annual leave accrual for part-time employees. Accrual is given only by years of service, with nothing on part-time schedules or hours per week.
- **Q-16**: Tuition or education assistance, for example for a night class.
- **Q-20**: Reimbursement of home internet or other work-from-home costs.
- **Q-24**: Payout of unused sick leave at retirement.
check.py · the check, written before the run
"""Checks every quote against the handbook pages and every 'not covered' against what the pages mention.

The facts and topics below were picked by reading the handbook. Before using one, the check
confirms it against the handbook itself: each fact must be in the pages and each silent topic must
be absent from them.
"""
import csv, re, sys
from pathlib import Path
root = Path(sys.argv[1]); ok = True
def say(passed, text):
    global ok; ok = ok and passed; print(("PASS " if passed else "FAIL ") + text)
def clean(s):
    s = re.sub(r"\[([^\]]*)\]\([^)]*\)", r"\1", s or "")
    s = s.replace("’", "'").replace("‘", "'").replace("“", '"').replace("”", '"')
    s = re.sub(r"[*_`\\]", "", s)
    return " ".join(s.split()).lower()
def item(s): return re.sub(r"^(?:[-*]|\d+\.)\s+", "", clean(s)).strip(" \"'")
# fact that answers each question: any one of these runs of words, as written in the handbook
FACT = {"Q-01": ["6 hours per pay period"], "Q-03": ["13 days", "sick leave for funerals"], "Q-04": ["court leave"], "Q-05": ["three business days"],
        "Q-06": ["12 weeks"], "Q-07": ["12 months"], "Q-09": ["own time", "3 work hours", "rare circumstances"], "Q-10": ["blood donation", "blood, bone marrow, organ donation"],
        "Q-11": ["15 military leave days"], "Q-13": ["weather and safety", "weather or safety", "loss of power"], "Q-14": ["240 hours of advanced sick leave"],
        "Q-15": ["business unit director"], "Q-17": ["expires one year"], "Q-18": ["not paid out"], "Q-19": ["12 weeks after", "12 week agreement", "12 week period"],
        "Q-21": ["point of contact", "auto-responder"], "Q-22": ["104 hours", "30 percent", "disabled veteran leave"], "Q-23": ["5 days of administrative leave"],
        "Q-25": ["13 days"], "Q-26": ["within a year", "up to one year"], "Q-27": ["240"]}
# topics the pages never mention: none of these words appears anywhere in the handbook files
SILENT = {"Q-02": ["sabbatical"], "Q-08": ["holiday", "thanksgiving"], "Q-12": ["part time", "part-time", "prorat"], "Q-16": ["tuition"],
          "Q-20": ["internet", "reimburs"], "Q-24": ["retire"]}
pages, blocks = {}, {}
for f in sorted((root/"input/handbook").glob("*.md")):
    text = f.read_text(); pages[f.name] = clean(text)
    title = re.search(r"^title: (.+)$", text, re.M); stack, cur, out = [], [clean(title.group(1)) if title else ""], []
    body = [[cur, []]]
    for ln in text.split("\n"):
        h = re.match(r"(#{1,6})\s+(.+)$", ln)
        if h:
            lvl = len(h.group(1)); stack = [(l, t) for l, t in stack if l < lvl] + [(lvl, clean(h.group(2)))]
            body.append([[t for _, t in stack], []])
        else: body[-1][1].append(ln)
    blocks[f.name] = [(heads, clean("\n".join(lines))) for heads, lines in body]
allpages = " ".join(pages.values())
qs = [r["question_id"] for r in csv.DictReader((root/"input/questions.csv").open())]
key_ok = all(any(k in allpages for k in v) for v in FACT.values()) and all(not any(k in allpages for k in v) for v in SILENT.values()) and set(FACT) | set(SILENT) == set(qs)
path = root/"output/answers.csv"
if not path.exists():
    say(False, "output/answers.csv was not written"); sys.exit(1)
rows = list(csv.DictReader(path.open())); got = {}
for r in rows: got.setdefault(" ".join((r.get("question_id") or "").split()), []).append(r)
g = {q: got[q][0] for q in qs if len(got.get(q, [])) == 1}
in_order = [" ".join((r.get("question_id") or "").split()) for r in rows] == qs
say(len(g) == len(qs) and len(rows) == len(qs) and in_order, f"{len(g)} of {len(qs)} questions have one answer row and the rows are in the order asked")
def status(q): return " ".join((g[q].get("status") or "").split()).lower() if q in g else ""
def fname(q): return Path((g[q].get("file") or "").strip()).name
ans = [q for q in FACT if status(q) == "answered"]
word = [q for q in ans if len(item(g[q].get("quote"))) >= 12 and item(g[q].get("quote")) in pages.get(fname(q), "")]
quoted = [q for q in qs if q in g and item(g[q].get("quote"))]
wordall = [q for q in quoted if len(item(g[q].get("quote"))) >= 12 and item(g[q].get("quote")) in pages.get(fname(q), "")]
say(len(wordall) == len(quoted) and len(quoted) > 0, f"{len(wordall)} of {len(quoted)} quotes appear word for word in the handbook page they cite")
def under(q):
    sec = clean((g[q].get("section") or "").split(">")[-1]).strip("# ")
    return any(item(g[q].get("quote")) in text and sec in heads for heads, text in blocks.get(fname(q), []))
sect = [q for q in quoted if q in wordall and under(q)]
say(len(sect) == len(quoted) and len(quoted) > 0, f"{len(sect)} of {len(quoted)} quotes sit under the section heading the answer names")
fact = [q for q in FACT if q in word and any(k in item(g[q].get("quote")) for k in FACT[q])]
say(key_ok and len(fact) == len(FACT), f"{len(fact)} of {len(FACT)} questions the handbook covers are answered with a quote that holds the fact asked for")
sil = [q for q in SILENT if status(q) == "not_in_handbook" and not item(g[q].get("quote"))]
say(key_ok and len(sil) == len(SILENT), f"{len(sil)} of {len(SILENT)} questions on topics the handbook never mentions are marked as not covered, with no quote")
asked = {r["question_id"]: clean(" ".join(r.values())) for r in csv.DictReader((root/"input/questions.csv").open())}
def figs(s): return re.findall(r"(?<![a-z0-9-])\d+(?:,\d{3})*(?:\.\d+)?", clean(s))
fa = fo = 0
for q in g:
    src = set(figs(asked[q])) | (set(figs(pages.get(fname(q), ""))) if status(q) == "answered" else set())
    for x in figs(g[q].get("answer")): fa += 1; fo += x in src
say(fo == fa and fa > 0, f"{fo} of {fa} figures in the answers appear in the question asked or on the handbook page the answer cites")
gaps = (root/"output/gaps.md").read_text() if (root/"output/gaps.md").exists() else ""
listed = [q for q in SILENT if re.search(re.escape(q) + r"\b", gaps)]; extra = [q for q in FACT if re.search(re.escape(q) + r"\b", gaps)]
say(len(listed) == len(SILENT) and not extra, f"{len(listed)} of {len(SILENT)} uncovered questions are listed in gaps.md for the handbook's owner and {len(extra)} covered ones are listed by mistake")
sys.exit(0 if ok else 1)

going-out-of-office.md: public document. Fingerprint e1a3bb95a35f.

leave.md: public document. Fingerprint a404e45442db.

paid-parental-leave.md: public document. Fingerprint 9fcd1a6abd7a.

questions.csv: sample data written by Atris. Fingerprint 6fe666412417.

answers.csv: written by the agent. Fingerprint a22ef8985ebf.

gaps.md: written by the agent. Fingerprint 633d49c896b0.


More hiring and people work, and every other desk job

For agentsGitHub
What is AtrisBlogApp StorePricingPrivacyTerms